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 29741f684..7156e59da 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 @@ -71,9 +71,10 @@ var bootstrap = function ($, learun) { url: top.$.rootUrl + '/Permission/DepartmentReleasePermissions/Index?departmentId=' + keyValue, width: 700, height: 400, - callBack: function (id) { - return top[id].acceptClick(refreshGirdData); - } + btn: null + //callBack: function (id) { + // return top[id].acceptClick(refreshGirdData); + //} }); } }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.js index a687275c3..b7a79981c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.js @@ -6,7 +6,6 @@ */ var refreshGirdData; var departmentId = request('departmentId'); -console.log(123 + departmentId); var bootstrap = function ($, learun) { "use strict"; var page = { @@ -15,7 +14,6 @@ var bootstrap = function ($, learun) { page.bind(); }, bind: function () { - console.log(departmentId); $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 220, 400); @@ -82,17 +80,37 @@ var bootstrap = function ($, learun) { callback(_data['f_realname']); } }); - }}, + } + }, { label: "公告类型", name: "Permission", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getsAsync('dataItem', { - key: value, - code: 'NoticeCategory', - callback: function (_data) { - callback(_data); + if (value.indexOf(',') > 0) { + var valueTemp = value.split(','); + var html = ''; + for (var i = 0; i < valueTemp.length; i++) { + learun.clientdata.getAsync('dataItem', { + key: valueTemp[i], + code: 'NoticeCategory', + callback: function (_data) { + html += _data.text; + } + }); + if (i < valueTemp.length - 1) { + html += ','; + } } - }); - }}, + callback(html); + } else { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'NoticeCategory', + callback: function (_data) { + callback(_data.text); + } + }); + } + } + }, ], mainId:'ID', isPage: true @@ -101,7 +119,10 @@ var bootstrap = function ($, learun) { }, search: function (param) { param = param || {}; - param.DepartmentID = departmentId; + if (departmentId) { + param.DepartmentID = departmentId; + } + param.DepartmentID = param.DepartmentID == "-1" ? "" : param.DepartmentID; $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); } };