...
|
...
|
@@ -419,7 +419,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'reslist', 'sessions' |
|
|
editMode: 'true',
|
|
|
resCategory: 'resources'
|
|
|
},
|
|
|
height: 'full-200',
|
|
|
height: 615,
|
|
|
cellMinWidth: 80,
|
|
|
page: {
|
|
|
layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
|
...
|
...
|
@@ -433,11 +433,11 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'reslist', 'sessions' |
|
|
field: 'resName', title: '资源名称', align: 'center',sort:true,
|
|
|
templet: '<div><span resmanage-data-edit="{{d.resId}}" data-zymc="{{ d.resId }}" data-ip="{{ d.ip }}" data-resTypeName="{{ d.resTypeName }}" data-admin="{{ d.admin }}" data-restype="{{d.resType}}" data-name="{{d.resName}}" data-pingenable="{{d.pingEnable}}">{{ d.resName }}</span></div>'
|
|
|
}
|
|
|
, {field: 'ip', title: 'IP地址', align: 'center',sort:true}
|
|
|
, {field: 'port', title: '端口号', align: 'center',sort:true}
|
|
|
, {field: 'adminName', title: '负责人', align: 'center',sort:true}
|
|
|
, {field: 'resTypeName', title: '资源类型', align: 'center',sort:true}
|
|
|
, {field: 'state', title: '资源状态', align: 'center',sort:true, templet: function (d) {
|
|
|
, {field: 'ip', title: 'IP地址', align: 'center',sort:true,width:200}
|
|
|
, {field: 'port', title: '端口号', align: 'center',sort:true,width:200}
|
|
|
, {field: 'adminName', title: '负责人', align: 'center',sort:true,width:180}
|
|
|
, {field: 'resTypeName', title: '资源类型', align: 'center',sort:true,width:230}
|
|
|
, {field: 'state', title: '资源状态', align: 'center',sort:true,width:180, templet: function (d) {
|
|
|
switch (d.state) {
|
|
|
case "new" :
|
|
|
return '<button type="button" class="layui-btn layui-btn-warm layui-bg-gray layui-btn-radius layui-btn-xs p-0-15">未监控</button>'
|
...
|
...
|
@@ -450,7 +450,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'reslist', 'sessions' |
|
|
}
|
|
|
}}
|
|
|
, {
|
|
|
title: '操作', fixed: 'right', align: 'center', fixed: 'right',
|
|
|
title: '操作', fixed: 'right', align: 'center', fixed: 'right',width:100,
|
|
|
templet: '<div><span data-id="{{d.resId}}" class="layui-table-link tem_res_delete_btn">删除</span></div>'
|
|
|
}
|
|
|
]],
|
...
|
...
|
|