Selaa lähdekoodia

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

金隅分支
dyy 2 vuotta sitten
vanhempi
commit
1df7b50063
2 muutettua tiedostoa jossa 36 lisäystä ja 14 poistoa
  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 Näytä tiedosto

@@ -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);
//}
});
}
});


+ 32
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/DepartmentReleasePermissions/Index.js Näytä tiedosto

@@ -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) });
}
};


Ladataan…
Peruuta
Tallenna