Authored by 王涛

Merge branch 'master-V32-XuHaoJie' into 'master'

杭州-乙方运维-如果是日常资料,不能点击



See merge request !47
@@ -692,7 +692,7 @@ layui.define(['xmSelect', 'md5'], function (exports) { @@ -692,7 +692,7 @@ layui.define(['xmSelect', 'md5'], function (exports) {
692 resType = this.detailPathByProviderAndModel(resType,resId); 692 resType = this.detailPathByProviderAndModel(resType,resId);
693 } 693 }
694 //如果是虚拟化相关资源类型,则根据采集协议判断去那个页面 694 //如果是虚拟化相关资源类型,则根据采集协议判断去那个页面
695 - var resTypeList = ['VIRTUALIZATION_VMWARE_VHOST','VIRTUALIZATION_HUAWEI_VHOST','HUAWEI_CLOUD_VIRTUALHOST','ALL_CLOUD_ECS']; 695 + var resTypeList = ['VIRTUALIZATION_VMWARE_VHOST','VIRTUALIZATION_HUAWEI_VHOST','ALL_CLOUD_ECS'];
696 if (resTypeList.indexOf(resType) != -1) { 696 if (resTypeList.indexOf(resType) != -1) {
697 if (protocol == 'SSH' || protocol == 'SNMP') { 697 if (protocol == 'SSH' || protocol == 'SNMP') {
698 resType = 'HOST_X86VIRTUAL'; 698 resType = 'HOST_X86VIRTUAL';
@@ -7847,4 +7847,10 @@ form[lay-filter="activewarning-form"] .layui-inline { @@ -7847,4 +7847,10 @@ form[lay-filter="activewarning-form"] .layui-inline {
7847 7847
7848 .info-table .layui-badge-dot { 7848 .info-table .layui-badge-dot {
7849 width: 8px !important; 7849 width: 8px !important;
  7850 +}
  7851 +.info-ali-cloud-ecs {
  7852 + text-align: center!important;
  7853 +}
  7854 +.info-ali-cloud-ecs span{
  7855 + width: 16%!important;
7850 } 7856 }
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 <div class="lay-row"> 7 <div class="lay-row">
8 <div class="lay-row-item lay-row-item--auto-width"> 8 <div class="lay-row-item lay-row-item--auto-width">
9 <h5 class="lay-row-title">基本信息<i data-id="ali_cloud_ecs_baseinfo" class="iconfont detail_base_info">&#xe61e;</i></h5> 9 <h5 class="lay-row-title">基本信息<i data-id="ali_cloud_ecs_baseinfo" class="iconfont detail_base_info">&#xe61e;</i></h5>
10 - <ul class="info-table" id="ali_cloud_ecs_baseinfo"></ul> 10 + <ul class="info-table info-ali-cloud-ecs" id="ali_cloud_ecs_baseinfo"></ul>
11 </div> 11 </div>
12 </div> 12 </div>
13 <div class="lay-row"> 13 <div class="lay-row">
@@ -45,6 +45,10 @@ export default { @@ -45,6 +45,10 @@ export default {
45 let initFlg = Vue.ref(false); 45 let initFlg = Vue.ref(false);
46 46
47 let init = () => { 47 let init = () => {
  48 + //如果是日常资料,不能点击
  49 + if("TWO_DAY_MATERIAL"== props.treeNode.map.nodeType.code){
  50 + return true;
  51 + }
48 // 查询绑定的文件列表 52 // 查询绑定的文件列表
49 let params = { 53 let params = {
50 opsId: props.projectId, 54 opsId: props.projectId,