From 2c4975a416c218196afc909a1b5df931a9b9b9b3 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Thu, 1 Jul 2021 09:30:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=8A=E6=8A=A5=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=A1=AB=E6=8A=A5=E6=97=B6=E9=97=B4=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LR_Desktop/Views/QualityReport/Index.js | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js index a61959e68..c5e53fbf5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js +++ b/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", 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); + } + }); + } } }, {