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