...
|
...
|
@@ -64,6 +64,14 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' |
|
|
form.render("select");
|
|
|
});
|
|
|
|
|
|
common.renderDdicSelect('reslist_os','os',function () {
|
|
|
form.render("select");
|
|
|
},"=操作系统=")
|
|
|
|
|
|
common.renderCollProtocolSelect('collProtocol',function () {
|
|
|
form.render("select");
|
|
|
});
|
|
|
|
|
|
form.render();
|
|
|
|
|
|
//回车搜索
|
...
|
...
|
@@ -72,6 +80,8 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' |
|
|
reloadTable(resType);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
//选择框搜索事件
|
|
|
bindSelectEvent();
|
|
|
//渲染表格
|
...
|
...
|
@@ -96,6 +106,8 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' |
|
|
resCategory: 'resources',
|
|
|
state: $("#resManageIndexForm").find("select[name='state']").val(),
|
|
|
collectionstate: $("#resManageIndexForm").find("select[name='collectionState']").val(),
|
|
|
os:$("#resManageIndexForm").find("select[id='reslist_os']").val(),
|
|
|
collProtocolList:$("#resManageIndexForm").find("select[id='collProtocol']").val(),
|
|
|
pageName:'reslist'
|
|
|
}
|
|
|
, height: 'full-350'
|
...
|
...
|
@@ -169,6 +181,18 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' |
|
|
$("#resManageIndexForm").find("select[name='collectionState']").val(data.value);
|
|
|
reloadTable(resType);
|
|
|
});
|
|
|
|
|
|
form.on('select(reslist_os)', function(data){
|
|
|
// 内容变更后设置对应的值
|
|
|
$("#resManageIndexForm").find("select[id='reslist_os']").val(data.value);
|
|
|
reloadTable(resType);
|
|
|
});
|
|
|
|
|
|
form.on('select(collProtocol)', function(data){
|
|
|
// 内容变更后设置对应的值
|
|
|
$("#resManageIndexForm").find("select[id='collProtocol']").val(data.value);
|
|
|
reloadTable(resType);
|
|
|
});
|
|
|
}
|
|
|
//刷新表格
|
|
|
function reloadTable(resType) {
|
...
|
...
|
@@ -189,8 +213,13 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect' |
|
|
protocol:protocol,
|
|
|
state: $("#resManageIndexForm").find("select[name='state']").val(),
|
|
|
collectionstate: $("#resManageIndexForm").find("select[name='collectionState']").val(),
|
|
|
os:$("#resManageIndexForm").find("select[id='reslist_os']").val(),
|
|
|
collProtocolList:$("#resManageIndexForm").find("select[id='collProtocol']").val(),
|
|
|
editMode: 'true'
|
|
|
},
|
|
|
page: {
|
|
|
curr: 1 //重新从第 1 页开始
|
|
|
},
|
|
|
done: function (res) {
|
|
|
//更新table_data数据 joke add 20211206
|
|
|
table_data = res.data;
|
...
|
...
|
|