Sfoglia il codice sorgente

打卡状态优化显示

大厂分支
zhichao lei 4 anni fa
parent
commit
eff5499361
1 ha cambiato i file con 11 aggiunte e 3 eliminazioni
  1. +11
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ADR_Record/Index.js

+ 11
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ADR_Record/Index.js Vedi File

@@ -135,15 +135,23 @@ var bootstrap = function ($, learun) {
}
});
} },
{ label: "考勤时间", name: "ADTime", width: 100, align: "left" },
{ label: "打卡时间", name: "ClockTime", width: 100, align: "left" },
{ label: "考勤时间", name: "ADTime", width: 150, align: "left" },
{ label: "打卡时间", name: "ClockTime", width: 150, align: "left" },
{
label: "打卡结果", name: "ClockStatus", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'ADStatus',
callback: function (_data) {
callback(_data.text);
//callback(_data.text);
if (_data.text) {
if (_data.text == "正常") {
callback('<span class=\"label label-success\">'+_data.text+'</span>');
} else {
callback('<span class=\"label label-warning\">'+_data.text+'</span>');
}
}
}
});
} },


Caricamento…
Annulla
Salva