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