Browse Source

【修改】公告发布权限设置:列表公告类型的显示;

金隅分支
dyy 2 years ago
parent
commit
1df7b50063
2 changed files with 36 additions and 14 deletions
  1. +4
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js
  2. +32
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.js

+ 4
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Department/Index.js View File

@@ -71,9 +71,10 @@ var bootstrap = function ($, learun) {
url: top.$.rootUrl + '/Permission/DepartmentReleasePermissions/Index?departmentId=' + keyValue, url: top.$.rootUrl + '/Permission/DepartmentReleasePermissions/Index?departmentId=' + keyValue,
width: 700, width: 700,
height: 400, height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
btn: null
//callBack: function (id) {
// return top[id].acceptClick(refreshGirdData);
//}
}); });
} }
}); });


+ 32
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.js View File

@@ -6,7 +6,6 @@
*/ */
var refreshGirdData; var refreshGirdData;
var departmentId = request('departmentId'); var departmentId = request('departmentId');
console.log(123 + departmentId);
var bootstrap = function ($, learun) { var bootstrap = function ($, learun) {
"use strict"; "use strict";
var page = { var page = {
@@ -15,7 +14,6 @@ var bootstrap = function ($, learun) {
page.bind(); page.bind();
}, },
bind: function () { bind: function () {
console.log(departmentId);
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson); page.search(queryJson);
}, 220, 400); }, 220, 400);
@@ -82,17 +80,37 @@ var bootstrap = function ($, learun) {
callback(_data['f_realname']); callback(_data['f_realname']);
} }
}); });
}},
}
},
{ label: "公告类型", name: "Permission", width: 100, align: "left", { label: "公告类型", name: "Permission", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) { 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', mainId:'ID',
isPage: true isPage: true
@@ -101,7 +119,10 @@ var bootstrap = function ($, learun) {
}, },
search: function (param) { search: function (param) {
param = 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) }); $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
} }
}; };


Loading…
Cancel
Save