Quellcode durchsuchen

打卡状态优化显示

大厂分支
zhichao lei vor 4 Jahren
Ursprung
Commit
eff5499361
1 geänderte Dateien mit 11 neuen und 3 gelöschten Zeilen
  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 Datei anzeigen

@@ -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>');
}
}
}
});
} },


Laden…
Abbrechen
Speichern