|
@ -2,7 +2,6 @@
|
|
|
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
|
|
|
<script>
|
|
|
var rsResoureManege = {
|
|
|
$element: $('.m-retrieve-area'),
|
|
|
$searchresourceName: $('#inp_search'),//资源名称文本匡对象
|
|
|
$catalogDDL: $('#ipt_catalog'),
|
|
|
$statusDDL: $('#ipt_status'),
|
|
@ -20,7 +19,7 @@
|
|
|
});
|
|
|
//初始化layout
|
|
|
this.$resourcelayout.ligerLayout({
|
|
|
height: "100%",
|
|
|
height: "99%",
|
|
|
leftWidth: 200,
|
|
|
isLeftCollapse: false,//左边区域初始化不可以隐藏
|
|
|
allowLeftCollapse: false//左边区域不可以隐藏
|
|
@ -59,19 +58,22 @@
|
|
|
|
|
|
//初始化树上面的搜索框
|
|
|
this.$searchTreeBox.ligerSearch({
|
|
|
width: 200,onClick: function (value) {
|
|
|
width: 180,onClick: function (value) {
|
|
|
if (value != "" && value != null && value != undefined && value.length > 0)
|
|
|
$.ligerui.get('div_wrapper_left_ul_resourcetree').queryByText(value);
|
|
|
}
|
|
|
});
|
|
|
//初始化sousuokuang
|
|
|
this.$searchresourceName.ligerSearch({onClick:function(value){
|
|
|
rsResoureManege.reloadGridSearch();
|
|
|
}});
|
|
|
this.$element.show();
|
|
|
//初始化搜索按钮
|
|
|
var this$searchresourceName = this.$searchresourceName;
|
|
|
this.$searchBtn.click(function () {
|
|
|
var searchNm = this$searchresourceName.val();
|
|
|
var selectData = resourceTree.getSelected();
|
|
|
rsResoureManege.reloadGrid(selectData ? selectData.data.id : "", searchNm);
|
|
|
})
|
|
|
|
|
|
this.$element.attrScan();
|
|
|
window.form = this.$element;
|
|
|
|
|
|
this.initGrid();
|
|
|
},
|
|
@ -87,14 +89,13 @@
|
|
|
|
|
|
this.grid = $("#div_app_info_grid").ligerGrid({
|
|
|
url: '${contextRoot}/resource/resource/searchRsResource',
|
|
|
cache:false,
|
|
|
parms: {
|
|
|
catalog: catalog,
|
|
|
status: status
|
|
|
},
|
|
|
columns: [
|
|
|
{display: '名称',id:'name', name: 'name', width: '15%', isAllowHide: false},
|
|
|
{display: '数据来源', name: 'code', width: '31.5%',dict:true,dictName: "RESOURCE_CODE"},
|
|
|
{display: '资源名称', name: 'name', width: '15%', isAllowHide: false},
|
|
|
{display: '资源代码', name: 'code', width: '31.5%',dict:true,dictName: "RESOURCE_CODE"},
|
|
|
{
|
|
|
display: '资源类型', name: 'type', width: '15%', resizable: true, render: function (row) {
|
|
|
if (row.type == "1") {
|
|
@ -147,8 +148,7 @@
|
|
|
rsResoureManege.editor(data.id, "modify");
|
|
|
}
|
|
|
});
|
|
|
// 自适应宽度
|
|
|
// this.grid.adjustToWidth();
|
|
|
|
|
|
},
|
|
|
reloadGridTree: function (categoryId, resourcename) {
|
|
|
this.grid.loadServerData({
|
|
@ -200,7 +200,7 @@
|
|
|
url: "${contextRoot}/resource/resource/deleteResource",
|
|
|
data: {"id": id},
|
|
|
success: function (msg) {
|
|
|
rsResoureManege.reloadGridSearch();
|
|
|
rsResoureManege.reloadGrid();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@ -220,9 +220,6 @@
|
|
|
},
|
|
|
dialogCallBack: function (message) {
|
|
|
$.ligerDialog.success(message);
|
|
|
rsResoureManege.grid.set({
|
|
|
parms: {categoryId:rsResoureManege.$resourceTreeId}
|
|
|
});
|
|
|
rsResoureManege.grid.reload();
|
|
|
rsResoureManege.appInfoDialog.close();
|
|
|
}
|