...
|
...
|
@@ -2735,6 +2735,55 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', |
|
|
{field: 'resTypeName', title: '资源类型', minWidth: x_110, align: 'center'},
|
|
|
{field: 'state', title: '资源状态', width: x_110, align: 'center', sort: true, templet: '#resStateTpl'}
|
|
|
],
|
|
|
"TENCENT_CLOUD_PLAT_CLUSTER": [
|
|
|
{
|
|
|
title: '#', width: x_50, childTitle: false,isChild: function(row){return row.childrenNum != 0}, children: [{
|
|
|
title: '节点',
|
|
|
url: function (row) {
|
|
|
return layui.common.domainName + '/api-web/home/virtual-res-list/TENCENT_CLOUD_PLAT_CLUSTER_NODE?access_token=' + layui.sessions.getToken()['access_token'] + '&parentId=' + row.resId;
|
|
|
},
|
|
|
page: true,
|
|
|
limit: 50,
|
|
|
cols: [[
|
|
|
{
|
|
|
field: 'resName', title: '资源名称', minWidth: x_250, sort: true,
|
|
|
templet: '#resindex_resName'
|
|
|
},
|
|
|
{field: 'health', title: '健康状态', width: x_120, align: 'center', sort: true, templet: '#healthTpl'},
|
|
|
{field: 'lastColTime', title: '最近采集时间', width: x_160, align: 'center', sort: true},
|
|
|
{field: 'adminName', title: '负责人', width: x_130, align: 'center', sort: true},
|
|
|
{field: 'adminPhone', title: '负责人电话', width: x_130, align: 'center', sort: true},
|
|
|
{field: 'resTypeName', title: '资源类型', minWidth: x_110, align: 'center'},
|
|
|
{field: 'state', title: '资源状态', width: x_110, align: 'center', sort: true, templet: '#resStateTpl'}]],
|
|
|
done: function () {
|
|
|
layui.soulTable.render(this);
|
|
|
layui.commonCols.colsClickEvent();
|
|
|
}
|
|
|
}]
|
|
|
},
|
|
|
{
|
|
|
field: 'resName', title: '资源名称', minWidth: x_300, sort: true,
|
|
|
templet: '#resindex_resName'
|
|
|
},
|
|
|
{field: 'health', title: '健康状态', width: x_120, align: 'center', sort: true, templet: '#healthTpl'},
|
|
|
{field: 'lastColTime', title: '最近采集时间', width: x_160, align: 'center', sort: true},
|
|
|
{field: 'adminName', title: '负责人', width: x_130, align: 'center', sort: true},
|
|
|
{field: 'adminPhone', title: '负责人电话', width: x_130, align: 'center', sort: true},
|
|
|
{field: 'resTypeName', title: '资源类型', minWidth: x_110, align: 'center'},
|
|
|
{field: 'state', title: '资源状态', width: x_110, align: 'center', sort: true, templet: '#resStateTpl'}
|
|
|
],
|
|
|
"TENCENT_CLOUD_PLAT_CLUSTER_NODE": [
|
|
|
{
|
|
|
field: 'resName', title: '资源名称', minWidth: x_300, sort: true,
|
|
|
templet: '#resindex_resName'
|
|
|
},
|
|
|
{field: 'health', title: '健康状态', width: x_120, align: 'center', sort: true, templet: '#healthTpl'},
|
|
|
{field: 'lastColTime', title: '最近采集时间', width: x_160, align: 'center', sort: true},
|
|
|
{field: 'adminName', title: '负责人', width: x_130, align: 'center', sort: true},
|
|
|
{field: 'adminPhone', title: '负责人电话', width: x_130, align: 'center', sort: true},
|
|
|
{field: 'resTypeName', title: '资源类型', minWidth: x_110, align: 'center'},
|
|
|
{field: 'state', title: '资源状态', width: x_110, align: 'center', sort: true, templet: '#resStateTpl'}
|
|
|
],
|
|
|
},
|
|
|
/**
|
|
|
* 验证是否跳转详情页
|
...
|
...
|
|