...
|
...
|
@@ -39,57 +39,9 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form', |
|
|
if(bizId!=''){
|
|
|
bizId.substring(0,bizId.length-1);
|
|
|
}
|
|
|
|
|
|
reloadTable();
|
|
|
}
|
|
|
});
|
|
|
var collProtocols = '';
|
|
|
initProtocolSelect()
|
|
|
//获取全部协议
|
|
|
function initProtocolSelect() {
|
|
|
admin.req({
|
|
|
url: domainName + '/api-web/manage/protocol/page',
|
|
|
data: {
|
|
|
access_token: accessToken,
|
|
|
startTime: '',
|
|
|
endTime: '',
|
|
|
keyword: '',
|
|
|
hasParam: '',
|
|
|
limit: -1
|
|
|
}
|
|
|
}).done(function (res) {
|
|
|
xmSelect.render({
|
|
|
el: '#collProtocolSelect'
|
|
|
, filterable: true
|
|
|
, tips: '=采集协议='
|
|
|
, name: 'collProtocols'
|
|
|
, prop: {
|
|
|
name: 'protocolName',
|
|
|
value: 'protocolCode',
|
|
|
}
|
|
|
, model: {
|
|
|
label: {
|
|
|
type: 'block',
|
|
|
block: {
|
|
|
//最大显示数量, 0:不限制
|
|
|
showCount: 1,
|
|
|
//是否显示删除图标
|
|
|
showIcon: true,
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
, data: res.data
|
|
|
,hide: function () {
|
|
|
var selectValue = xmSelect.get('#collProtocolSelect', true).getValue('value');
|
|
|
collProtocols = selectValue.join(',');
|
|
|
form.render()
|
|
|
reloadTable();
|
|
|
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
|
|
|
function autoHeight(el) {
|
|
|
// var height = el.parents('.layui-card').height();
|
|
|
// el.css('min-height', height - 75);
|
...
|
...
|
@@ -842,7 +794,6 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form', |
|
|
, id: 'resManageTable'
|
|
|
, url: common.domainName + '/api-web/home/res-list/' + resType
|
|
|
, where: {
|
|
|
|
|
|
access_token: accessToken,
|
|
|
editMode: 'true',
|
|
|
resName: $("#resManageIndexForm").find("input[name='resName']").val() ? $("#resManageIndexForm").find("input[name='resName']").val() : searchId,
|
...
|
...
|
@@ -852,8 +803,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form', |
|
|
busId: $("#resManageIndexForm").find("input[name='busId']").val(),
|
|
|
state: $("#resManageIndexForm").find("select[name='state']").val(),
|
|
|
parentId: $("#resManageIndexForm").find("select[name='parentId']").val(),
|
|
|
collectionState: $("#resManageIndexForm").find("select[name='collectionState']").val(),
|
|
|
collProtocols: collProtocols
|
|
|
collectionState: $("#resManageIndexForm").find("select[name='collectionState']").val()
|
|
|
}
|
|
|
, height: 'full-200'
|
|
|
, cellMinWidth: 80
|
...
|
...
|
|