瀏覽代碼

Merge branch '金隅分支' of 123.57.209.16:bjquanjiang/DigitalScholl into 金隅分支

金隅分支
liangkun 3 年之前
父節點
當前提交
55b81fd72a
共有 1 個檔案被更改,包括 24 行新增6 行删除
  1. +24
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js

+ 24
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js 查看文件

@@ -83,13 +83,31 @@ var bootstrap = function ($, learun) {
{ {
label: "填报时间", name: "FillingTime", width: 100, align: "left", label: "填报时间", name: "FillingTime", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) { formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'CycleTime',
callback: function (_data) {
callback(_data.text);
if (value.indexOf(',') != -1) {
var content = '';
var timearr = value.split(',');
for (var i = 0; i < timearr.length; i++) {
learun.clientdata.getAsync('dataItem',
{
key: timearr[i],
code: 'CycleTime',
callback: function (_data) {
content += _data.text + ',';
}
});
} }
});
content = content.substring(0, content.length - 1);
callback(content);
} else {
learun.clientdata.getAsync('dataItem',
{
key: value,
code: 'CycleTime',
callback: function (_data) {
callback(_data.text);
}
});
}
} }
}, },
{ {


Loading…
取消
儲存