From 9b824ea186a07c7d569398e732dc9aa7943057ea Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 21 Feb 2022 14:04:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=AE=A1=E7=90=86=20:=20?= =?UTF-8?q?=E5=85=AC=E5=91=8A=E7=B1=BB=E5=88=AB=E5=8F=AA=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=80=97=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Department/Index.js | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js index 6ea627085..12148972c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js @@ -129,13 +129,32 @@ var bootstrap = function ($, learun) { { label: "公告类别", name: "NoticeCategory", width: 200, align: "left", formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getsAsync('dataItem', { - key: value, - code: 'NoticeCategory', - callback: function (_data) { - callback(_data); + if (value && value.indexOf(',') != -1) { + var content = ''; + var texts = value.split(','); + for (var i = 0; i < texts.length; i++) { + learun.clientdata.getAsync('dataItem', + { + key: texts[i], + code: 'NoticeCategory', + callback: function (_data) { + content += _data.text + ','; + + } + }); } - }); + content = content.substring(0, content.length - 1); + callback(content); + } else { + learun.clientdata.getAsync('dataItem', + { + key: value, + code: 'NoticeCategory', + callback: function (_data) { + callback(_data.text); + } + }); + } } }, { label: "电话号", name: "F_OuterPhone", width: 100, align: "left" },