Authored by 张凯

chore:腾讯云资源池及节点详情页

@@ -2735,6 +2735,55 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin', @@ -2735,6 +2735,55 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
2735 {field: 'resTypeName', title: '资源类型', minWidth: x_110, align: 'center'}, 2735 {field: 'resTypeName', title: '资源类型', minWidth: x_110, align: 'center'},
2736 {field: 'state', title: '资源状态', width: x_110, align: 'center', sort: true, templet: '#resStateTpl'} 2736 {field: 'state', title: '资源状态', width: x_110, align: 'center', sort: true, templet: '#resStateTpl'}
2737 ], 2737 ],
  2738 + "TENCENT_CLOUD_PLAT_CLUSTER": [
  2739 + {
  2740 + title: '#', width: x_50, childTitle: false,isChild: function(row){return row.childrenNum != 0}, children: [{
  2741 + title: '节点',
  2742 + url: function (row) {
  2743 + 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;
  2744 + },
  2745 + page: true,
  2746 + limit: 50,
  2747 + cols: [[
  2748 + {
  2749 + field: 'resName', title: '资源名称', minWidth: x_250, sort: true,
  2750 + templet: '#resindex_resName'
  2751 + },
  2752 + {field: 'health', title: '健康状态', width: x_120, align: 'center', sort: true, templet: '#healthTpl'},
  2753 + {field: 'lastColTime', title: '最近采集时间', width: x_160, align: 'center', sort: true},
  2754 + {field: 'adminName', title: '负责人', width: x_130, align: 'center', sort: true},
  2755 + {field: 'adminPhone', title: '负责人电话', width: x_130, align: 'center', sort: true},
  2756 + {field: 'resTypeName', title: '资源类型', minWidth: x_110, align: 'center'},
  2757 + {field: 'state', title: '资源状态', width: x_110, align: 'center', sort: true, templet: '#resStateTpl'}]],
  2758 + done: function () {
  2759 + layui.soulTable.render(this);
  2760 + layui.commonCols.colsClickEvent();
  2761 + }
  2762 + }]
  2763 + },
  2764 + {
  2765 + field: 'resName', title: '资源名称', minWidth: x_300, sort: true,
  2766 + templet: '#resindex_resName'
  2767 + },
  2768 + {field: 'health', title: '健康状态', width: x_120, align: 'center', sort: true, templet: '#healthTpl'},
  2769 + {field: 'lastColTime', title: '最近采集时间', width: x_160, align: 'center', sort: true},
  2770 + {field: 'adminName', title: '负责人', width: x_130, align: 'center', sort: true},
  2771 + {field: 'adminPhone', title: '负责人电话', width: x_130, align: 'center', sort: true},
  2772 + {field: 'resTypeName', title: '资源类型', minWidth: x_110, align: 'center'},
  2773 + {field: 'state', title: '资源状态', width: x_110, align: 'center', sort: true, templet: '#resStateTpl'}
  2774 + ],
  2775 + "TENCENT_CLOUD_PLAT_CLUSTER_NODE": [
  2776 + {
  2777 + field: 'resName', title: '资源名称', minWidth: x_300, sort: true,
  2778 + templet: '#resindex_resName'
  2779 + },
  2780 + {field: 'health', title: '健康状态', width: x_120, align: 'center', sort: true, templet: '#healthTpl'},
  2781 + {field: 'lastColTime', title: '最近采集时间', width: x_160, align: 'center', sort: true},
  2782 + {field: 'adminName', title: '负责人', width: x_130, align: 'center', sort: true},
  2783 + {field: 'adminPhone', title: '负责人电话', width: x_130, align: 'center', sort: true},
  2784 + {field: 'resTypeName', title: '资源类型', minWidth: x_110, align: 'center'},
  2785 + {field: 'state', title: '资源状态', width: x_110, align: 'center', sort: true, templet: '#resStateTpl'}
  2786 + ],
2738 }, 2787 },
2739 /** 2788 /**
2740 * 验证是否跳转详情页 2789 * 验证是否跳转详情页
  1 +//tencent_cloud_plat_cluster(腾讯云集群)详情页js
  2 +layui.define(['commonDetail','common'], function (exports) {
  3 + var commonDetail = layui.commonDetail;
  4 + var common = layui.common;
  5 + //对外暴露的接口
  6 + exports('tencent_cloud_plat_cluster', function (data) {
  7 + var resId = '';
  8 + var showFlag = common.getUrlParam("show");
  9 + if(showFlag && showFlag == '0'){
  10 + resId = common.getUrlParam("resId");
  11 + }else{
  12 + resId = data.resId;
  13 + }
  14 + commonDetail.bindTips();
  15 +
  16 + //基本信息指标
  17 + var baseKpi = "KPIE13DD9A3,KPIF74D9D2B,KPI10EC481A,KPI8C2D6E20,KPICBD2A6FA,KPI3BDD08AD";
  18 + //重要信息指标
  19 + var keyKpi = "KPI40E40BBD,KPIA8E17DD2,KPI9FC4B990,KPI04442302,KPIE7A7E3E4";
  20 + //Node信息
  21 + var nodeKpi = "KPIAAD5BFB8,KPI95E996B3,KPI597F8EA4";
  22 + //Pod信息
  23 + var podKpi = "KPIA8E17DD2,KPI95E996B3,KPI597F8EA4";
  24 + //项目信息
  25 + var projectKpi = "KPI299C813C,KPI95E996B3,KPI597F8EA4";
  26 + //应用信息
  27 + var appKpi = "KPI08BF3D28,KPI95E996B3,KPI597F8EA4";
  28 + //cpu信息
  29 + var cpuKpi = "KPIAF2EBA2F,KPI19A7770E,KPIC9967463";
  30 + //内存信息
  31 + var memKpi = "KPI1DA60197,KPI6C04B268,KPIC9967463";
  32 + //磁盘信息
  33 + var diskKpi = "KPIBA50E567,KPI40B5EF02,KPIC9967463";
  34 +
  35 + reload();
  36 +
  37 + //渲染页面
  38 + function reload() {
  39 + //基本信息
  40 + commonDetail.renderText("tencent_cloud_plat_cluster_baseinfo",resId,baseKpi);
  41 + //重要信息
  42 + commonDetail.renderText("tencent_cloud_plat_cluster_keyinfo",resId,keyKpi);
  43 + //Node信息
  44 + commonDetail.renderText("tencent_cloud_plat_cluster_nodeinfo",resId,nodeKpi,null,null,'node');
  45 + //Pod信息
  46 + commonDetail.renderText("tencent_cloud_plat_cluster_podinfo",resId,podKpi,null,null,'pod');
  47 + //项目信息
  48 + commonDetail.renderText("tencent_cloud_plat_cluster_projectinfo",resId,projectKpi,null,null,'project');
  49 + //应用信息
  50 + commonDetail.renderText("tencent_cloud_plat_cluster_appinfo",resId,appKpi,null,null,'app');
  51 + //cpu信息
  52 + commonDetail.renderText("tencent_cloud_plat_cluster_cpuinfo",resId,cpuKpi,null,null,'cpu');
  53 + //内存信息
  54 + commonDetail.renderText("tencent_cloud_plat_cluster_meminfo",resId,memKpi,null,null,'mem');
  55 + //cpu信息
  56 + commonDetail.renderText("tencent_cloud_plat_cluster_diskinfo",resId,diskKpi,null,null,'disk');
  57 + //cpu分配率趋势图
  58 + commonDetail.renderLineCharat("tencent_cloud_plat_cluster_cpu_linechart",resId,"KPIC9967463","CPU分配率","cpu");
  59 + //内存分配率趋势图
  60 + commonDetail.renderLineCharat("tencent_cloud_plat_cluster_mem_linechart",resId,"KPIC9967463","内存分配率","mem");
  61 + //磁盘分配率趋势图
  62 + commonDetail.renderLineCharat("tencent_cloud_plat_cluster_disk_linechart",resId,"KPIC9967463","磁盘分配率","disk");
  63 + //告警信息
  64 + commonDetail.renderActiveAlarms("tencent_cloud_plat_cluster_active_alarm",resId);
  65 + }
  66 +
  67 + //定时任务
  68 + var timer = setInterval(function () {
  69 + reload()
  70 + },commonDetail.timerTime);
  71 + commonDetail.detailTimer.push(timer);
  72 +
  73 + });
  74 +});
  1 +//tencent_cloud_plat_cluster_node(腾讯云集群节点)详情页js
  2 +layui.define(['commonDetail','common'], function (exports) {
  3 + var commonDetail = layui.commonDetail;
  4 + var common = layui.common;
  5 + //对外暴露的接口
  6 + exports('tencent_cloud_plat_cluster_node', function (data) {
  7 + var resId = '';
  8 + var showFlag = common.getUrlParam("show");
  9 + if(showFlag && showFlag == '0'){
  10 + resId = common.getUrlParam("resId");
  11 + }else{
  12 + resId = data.resId;
  13 + }
  14 + commonDetail.bindTips();
  15 +
  16 + //基本信息指标
  17 + var baseKpi = "KPIE13DD9A3,KPIF74D9D2B,KPIB1785EF0,KPI452C0F78,KPI05227E45,KPIEBDBE293,KPI2A028860,KPICFE7F6A5,KPI42C062E1,KPIBB5F4702";
  18 + //重要信息指标
  19 + var keyKpi = "KPIFB844B8B,KPIB86224E0";
  20 +
  21 + //Pod信息
  22 + var podKpi = "KPIA8E17DD2,KPI95E996B3,KPI597F8EA4";
  23 + //应用信息
  24 + var appKpi = "KPI08BF3D28,KPI95E996B3,KPI597F8EA4";
  25 + //项目信息
  26 + var projectKpi = "KPI299C813C,KPI95E996B3,KPI597F8EA4";
  27 + //租户信息
  28 + var tenantKpi = "KPI4E67E561,KPI95E996B3,KPI597F8EA4";
  29 + //cpu信息
  30 + var cpuKpi = "KPIAF2EBA2F,KPI19A7770E,KPIC9967463";
  31 + //内存信息
  32 + var memKpi = "KPI1DA60197,KPI6C04B268,KPIC9967463";
  33 + //磁盘信息
  34 + var diskKpi = "KPIBA50E567,KPI40B5EF02,KPIC9967463";
  35 +
  36 +
  37 +
  38 + reload();
  39 +
  40 + //渲染页面
  41 + function reload() {
  42 + //基本信息
  43 + commonDetail.renderText("tencent_cloud_plat_cluster_node_baseinfo",resId,baseKpi);
  44 + //重要信息
  45 + commonDetail.renderText("tencent_cloud_plat_cluster_node_keyinfo",resId,keyKpi);
  46 + //Pod信息
  47 + commonDetail.renderText("tencent_cloud_plat_cluster_node_podinfo",resId,podKpi,null,null,'pod');
  48 + //应用信息
  49 + commonDetail.renderText("tencent_cloud_plat_cluster_node_appinfo",resId,appKpi,null,null,'app');
  50 + //项目信息
  51 + commonDetail.renderText("tencent_cloud_plat_cluster_node_projectinfo",resId,projectKpi,null,null,'project');
  52 + //租户信息
  53 + commonDetail.renderText("tencent_cloud_plat_cluster_node_tenantinfo",resId,tenantKpi,null,null,'tenantCount');
  54 + //cpu信息
  55 + commonDetail.renderText("tencent_cloud_plat_cluster_node_cpuinfo",resId,cpuKpi,null,null,'cpu');
  56 + //内存信息
  57 + commonDetail.renderText("tencent_cloud_plat_cluster_node_meminfo",resId,memKpi,null,null,'mem');
  58 + //cpu信息
  59 + commonDetail.renderText("tencent_cloud_plat_cluster_node_diskinfo",resId,diskKpi,null,null,'disk');
  60 + //cpu分配率趋势图
  61 + commonDetail.renderLineCharat("tencent_cloud_plat_cluster_node_cpu_linechart",resId,"KPIC9967463","CPU分配率","cpu");
  62 + //内存分配率趋势图
  63 + commonDetail.renderLineCharat("tencent_cloud_plat_cluster_node_mem_linechart",resId,"KPIC9967463","内存分配率","mem");
  64 + //磁盘分配率趋势图
  65 + commonDetail.renderLineCharat("tencent_cloud_plat_cluster_node_disk_linechart",resId,"KPIC9967463","磁盘分配率","disk");
  66 + //告警信息
  67 + commonDetail.renderActiveAlarms("tencent_cloud_plat_cluster_node_active_alarm",resId);
  68 + }
  69 +
  70 + //定时任务
  71 + var timer = setInterval(function () {
  72 + reload()
  73 + },commonDetail.timerTime);
  74 + commonDetail.detailTimer.push(timer);
  75 +
  76 + });
  77 +});
  1 +<!--tencent_cloud_plat_cluster详细页面-->
  2 +<article class="page-container template template_redis">
  3 + <div class="page-panel">
  4 + <div class="main">
  5 + <div class="layui-card">
  6 + <div class="layui-card-body">
  7 + <div class="lay-row">
  8 + <div class="lay-row-item">
  9 + <h5 class="lay-row-title">基本信息<i data-id="tencent_cloud_plat_cluster_baseinfo" class="iconfont detail_base_info">&#xe61e;</i></h5>
  10 + <ul class="info-table" id="tencent_cloud_plat_cluster_baseinfo"></ul>
  11 + </div>
  12 + <div class="lay-row-item">
  13 + <h5 class="lay-row-title">重要信息</h5>
  14 + <ul class="info-table" id="tencent_cloud_plat_cluster_keyinfo"></ul>
  15 + </div>
  16 + </div>
  17 + <div class="lay-row">
  18 + <div class="lay-row-item">
  19 + <h5 class="lay-row-title">Node信息</h5>
  20 + <ul class="info-table" id="tencent_cloud_plat_cluster_nodeinfo"></ul>
  21 + </div>
  22 + <div class="lay-row-item">
  23 + <h5 class="lay-row-title">Pod信息</h5>
  24 + <ul class="info-table" id="tencent_cloud_plat_cluster_podinfo"></ul>
  25 + </div>
  26 + <div class="lay-row-item">
  27 + <h5 class="lay-row-title">项目信息</h5>
  28 + <ul class="info-table" id="tencent_cloud_plat_cluster_projectinfo"></ul>
  29 + </div>
  30 + <div class="lay-row-item">
  31 + <h5 class="lay-row-title">应用信息</h5>
  32 + <ul class="info-table" id="tencent_cloud_plat_cluster_appinfo"></ul>
  33 + </div>
  34 + </div>
  35 + <div class="lay-row">
  36 + <div class="lay-row-item">
  37 + <h5 class="lay-row-title">cpu信息</h5>
  38 + <ul class="info-table" id="tencent_cloud_plat_cluster_cpuinfo"></ul>
  39 + </div>
  40 + <div class="lay-row-item">
  41 + <h5 class="lay-row-title">内存信息</h5>
  42 + <ul class="info-table" id="tencent_cloud_plat_cluster_meminfo"></ul>
  43 + </div>
  44 + <div class="lay-row-item">
  45 + <h5 class="lay-row-title">磁盘信息</h5>
  46 + <ul class="info-table" id="tencent_cloud_plat_cluster_diskinfo"></ul>
  47 + </div>
  48 + </div>
  49 + <div class="lay-row">
  50 + <div class="lay-row-item">
  51 + <h5 class="lay-row-title">CPU分配率</h5>
  52 + <div id="tencent_cloud_plat_cluster_cpu_linechart" class="detail_line_chart"></div>
  53 + </div>
  54 + <div class="lay-row-item">
  55 + <h5 class="lay-row-title">内存分配率</h5>
  56 + <div id="tencent_cloud_plat_cluster_mem_linechart" class="detail_line_chart"></div>
  57 + </div>
  58 + <div class="lay-row-item">
  59 + <h5 class="lay-row-title">磁盘分配率</h5>
  60 + <div id="tencent_cloud_plat_cluster_disk_linechart" class="detail_line_chart"></div>
  61 + </div>
  62 + </div>
  63 + <div class="lay-row">
  64 + <div class="lay-row-item">
  65 + <h5 class="lay-row-title">实时告警动态</h5>
  66 + <div id="tencent_cloud_plat_cluster_active_alarm"></div>
  67 + </div>
  68 + </div>
  69 + </div>
  70 + </div>
  71 + </div>
  72 + </div>
  73 +</article>
  74 +<textarea id="tencent_cloud_plat_cluster_param_id" style="display: none;">{{d}}</textarea>
  75 +<script>
  76 + layui.use('tencent_cloud_plat_cluster', function (fn) {
  77 + var $ = layui.$;
  78 + var parm = $("#tencent_cloud_plat_cluster_param_id").val();
  79 + if(parm.indexOf('{{d') != -1){
  80 + fn();
  81 + }else{
  82 + fn(JSON.parse(parm));
  83 + }
  84 + });
  85 +</script>
  1 +<!--tencent_cloud_plat_cluster_node详细页面-->
  2 +<article class="page-container template template_redis">
  3 + <div class="page-panel">
  4 + <div class="main">
  5 + <div class="layui-card">
  6 + <div class="layui-card-body">
  7 + <div class="lay-row">
  8 + <div class="lay-row-item">
  9 + <h5 class="lay-row-title">基本信息<i data-id="tencent_cloud_plat_cluster_node_baseinfo" class="iconfont detail_base_info">&#xe61e;</i></h5>
  10 + <ul class="info-table" id="tencent_cloud_plat_cluster_node_baseinfo"></ul>
  11 + </div>
  12 + <div class="lay-row-item">
  13 + <h5 class="lay-row-title">重要信息</h5>
  14 + <ul class="info-table" id="tencent_cloud_plat_cluster_node_keyinfo"></ul>
  15 + </div>
  16 + </div>
  17 + <div class="lay-row">
  18 + <div class="lay-row-item">
  19 + <h5 class="lay-row-title">Pod信息</h5>
  20 + <ul class="info-table" id="tencent_cloud_plat_cluster_node_podinfo"></ul>
  21 + </div>
  22 + <div class="lay-row-item">
  23 + <h5 class="lay-row-title">应用信息</h5>
  24 + <ul class="info-table" id="tencent_cloud_plat_cluster_node_appinfo"></ul>
  25 + </div>
  26 + <div class="lay-row-item">
  27 + <h5 class="lay-row-title">项目信息</h5>
  28 + <ul class="info-table" id="tencent_cloud_plat_cluster_node_projectinfo"></ul>
  29 + </div>
  30 + <div class="lay-row-item">
  31 + <h5 class="lay-row-title">租户信息</h5>
  32 + <ul class="info-table" id="tencent_cloud_plat_cluster_node_tenantinfo"></ul>
  33 + </div>
  34 + </div>
  35 + <div class="lay-row">
  36 + <div class="lay-row-item">
  37 + <h5 class="lay-row-title">cpu信息</h5>
  38 + <ul class="info-table" id="tencent_cloud_plat_cluster_node_cpuinfo"></ul>
  39 + </div>
  40 + <div class="lay-row-item">
  41 + <h5 class="lay-row-title">内存信息</h5>
  42 + <ul class="info-table" id="tencent_cloud_plat_cluster_node_meminfo"></ul>
  43 + </div>
  44 + <div class="lay-row-item">
  45 + <h5 class="lay-row-title">磁盘信息</h5>
  46 + <ul class="info-table" id="tencent_cloud_plat_cluster_node_diskinfo"></ul>
  47 + </div>
  48 + </div>
  49 + <div class="lay-row">
  50 + <div class="lay-row-item">
  51 + <h5 class="lay-row-title">CPU分配率</h5>
  52 + <div id="tencent_cloud_plat_cluster_node_cpu_linechart" class="detail_line_chart"></div>
  53 + </div>
  54 + <div class="lay-row-item">
  55 + <h5 class="lay-row-title">内存分配率</h5>
  56 + <div id="tencent_cloud_plat_cluster_node_mem_linechart" class="detail_line_chart"></div>
  57 + </div>
  58 + <div class="lay-row-item">
  59 + <h5 class="lay-row-title">磁盘分配率</h5>
  60 + <div id="tencent_cloud_plat_cluster_node_disk_linechart" class="detail_line_chart"></div>
  61 + </div>
  62 + </div>
  63 + <div class="lay-row">
  64 + <div class="lay-row-item">
  65 + <h5 class="lay-row-title">实时告警动态</h5>
  66 + <div id="tencent_cloud_plat_cluster_node_active_alarm"></div>
  67 + </div>
  68 + </div>
  69 + </div>
  70 + </div>
  71 + </div>
  72 + </div>
  73 +</article>
  74 +<textarea id="tencent_cloud_plat_cluster_node_param_id" style="display: none;">{{d}}</textarea>
  75 +<script>
  76 + layui.use('tencent_cloud_plat_cluster_node', function (fn) {
  77 + var $ = layui.$;
  78 + var parm = $("#tencent_cloud_plat_cluster_node_param_id").val();
  79 + if(parm.indexOf('{{d') != -1){
  80 + fn();
  81 + }else{
  82 + fn(JSON.parse(parm));
  83 + }
  84 + });
  85 +</script>
@@ -898,7 +898,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols @@ -898,7 +898,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols
898 $("#biz_platform_id").hide() 898 $("#biz_platform_id").hide()
899 } 899 }
900 900
901 - if (resType == 'VIRTUALIZATION_VMWARE' || resType == 'VIRTUALIZATION_HUAWEI' || resType == 'MIDDLEWARE_WEBLOGIC') { 901 + if (resType == 'VIRTUALIZATION_VMWARE' || resType == 'VIRTUALIZATION_HUAWEI' || resType == 'MIDDLEWARE_WEBLOGIC' || resType == 'TENCENT_CLOUD_PLAT_CLUSTER') {
902 $("#biz_virtual_platform_div_id").hide(); 902 $("#biz_virtual_platform_div_id").hide();
903 } 903 }
904 if (targetId && searchType) { 904 if (targetId && searchType) {
@@ -476,12 +476,13 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' @@ -476,12 +476,13 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', '
476 }); 476 });
477 477
478 if (data.id != 'VIRTUALIZATION_VMWARE' && data.id != 'VIRTUALIZATION_HUAWEI') { 478 if (data.id != 'VIRTUALIZATION_VMWARE' && data.id != 'VIRTUALIZATION_HUAWEI') {
479 - $("#virtual_platform_div_id").show();  
480 - //绑定虚拟化平台  
481 - common.virtualPlatFormSelect("virtual_platForm_select", "", function () {  
482 - form.render("select");  
483 - }, data.id.match(/(VIRTUALIZATION_((?!_).)+)(.*)/)[1]);  
484 - $('#virtual_platForm_select').val(''); 479 + if (data.id.indexOf('TENCENT_CLOUD_PLAT_CLUSTER') == -1){
  480 + $("#virtual_platform_div_id").show();
  481 + common.virtualPlatFormSelect("virtual_platForm_select", "", function () {
  482 + form.render("select");
  483 + }, data.id.match(/(VIRTUALIZATION_((?!_).)+)(.*)/)[1]);
  484 + $('#virtual_platForm_select').val('');
  485 + }
485 } 486 }
486 //初始化业务下拉数据 487 //初始化业务下拉数据
487 if (busIdSelect) { 488 if (busIdSelect) {
@@ -747,9 +748,10 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' @@ -747,9 +748,10 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', '
747 $("#tree_linkstate_area").hide() 748 $("#tree_linkstate_area").hide()
748 } 749 }
749 750
750 -  
751 - if (resType == 'VIRTUALIZATION_VMWARE' || resType == 'VIRTUALIZATION_HUAWEI' || resType == 'MIDDLEWARE_WEBLOGIC') {  
752 - $("#virtual_platform_div_id").hide(); 751 + if (resType == 'VIRTUALIZATION_VMWARE' || resType == 'VIRTUALIZATION_HUAWEI' || resType == 'MIDDLEWARE_WEBLOGIC' || resType == 'TENCENT_CLOUD_PLAT_CLUSTER') {
  752 + $('#virtual_platForm_select').parent().parent().addClass('hide');
  753 + }else{
  754 + $('#virtual_platForm_select').parent().parent().removeClass('hide');
753 } 755 }
754 756
755 var index = layer.load(2); //加载层 757 var index = layer.load(2); //加载层
@@ -1270,9 +1272,10 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' @@ -1270,9 +1272,10 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', '
1270 if ("MIDDLEWARE_WEBLOGIC" == resType) { 1272 if ("MIDDLEWARE_WEBLOGIC" == resType) {
1271 $("#res_platform_id").hide() 1273 $("#res_platform_id").hide()
1272 } 1274 }
1273 -  
1274 - if (resType == 'VIRTUALIZATION_VMWARE' || resType == 'VIRTUALIZATION_HUAWEI' || resType == 'MIDDLEWARE_WEBLOGIC') {  
1275 - $("#virtual_platform_div_id").hide(); 1275 + if (resType == 'VIRTUALIZATION_VMWARE' || resType == 'VIRTUALIZATION_HUAWEI' || resType == 'MIDDLEWARE_WEBLOGIC' || resType == 'TENCENT_CLOUD_PLAT_CLUSTER') {
  1276 + $('#virtual_platForm_select').parent().parent().addClass('hide');
  1277 + }else{
  1278 + $('#virtual_platForm_select').parent().parent().removeClass('hide');
1276 } 1279 }
1277 1280
1278 if (resType == 'HOST_BMC') { 1281 if (resType == 'HOST_BMC') {
@@ -677,7 +677,8 @@ layui.define(['view'], function(exports){ @@ -677,7 +677,8 @@ layui.define(['view'], function(exports){
677 , toCMDB: function () { 677 , toCMDB: function () {
678 var roles=sessionStorage.getItem('roles'); 678 var roles=sessionStorage.getItem('roles');
679 if (roles.indexOf('zichanyw') != -1 || roles.indexOf('zichanAdmin') != -1){ 679 if (roles.indexOf('zichanyw') != -1 || roles.indexOf('zichanAdmin') != -1){
680 - window.open(sessionStorage.getItem("cmdbWeb")+ '/#/index?access_token=' + localStorage.getItem("access_token")); 680 + // window.open(sessionStorage.getItem("cmdbWeb")+ '/#/index?access_token=' + localStorage.getItem("access_token"));
  681 + window.open(sessionStorage.getItem("cmdbWeb"));
681 }else{ 682 }else{
682 layer.msg('当前用户没有权限', {icon: 0, time: 3000}); 683 layer.msg('当前用户没有权限', {icon: 0, time: 3000});
683 } 684 }