Parcourir la source

部门管理 : 公告类别只显示逗号

临城职教中职
ndbs il y a 2 ans
Parent
révision
9b824ea186
1 fichiers modifiés avec 25 ajouts et 6 suppressions
  1. +25
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js

+ 25
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js Voir le fichier

@@ -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" },


Chargement…
Annuler
Enregistrer