Authored by 鲁尚清

Merge branch 'master' of http://192.168.1.136:82/monitor_v3/hg-monitor-web into …

…master-v32-lushangqing
@@ -72,15 +72,7 @@ @@ -72,15 +72,7 @@
72 <span>{{item.shortName}}</span> 72 <span>{{item.shortName}}</span>
73 </div> 73 </div>
74 <div class="text-overflow-line2 align-center" style="padding: 0px 25px;"> 74 <div class="text-overflow-line2 align-center" style="padding: 0px 25px;">
75 - <!--<el-tooltip  
76 - effect="light"  
77 - placement="top-start">  
78 - <template #content>  
79 - {{item.taskName}}  
80 - </template>  
81 - {{item.taskName}}  
82 - </el-tooltip>-->  
83 - <el-tooltip :content="item.taskName" placement="bottom" effect="light" :disabled="item.isShowTooltip && item.isShowTooltip == true"> 75 + <el-tooltip :content="item.taskName" placement="top" effect="light" :disabled="item.isShowTooltip == undefined || item.isShowTooltip == false">
84 <span class="member-label member-span text-hidden" @mouseenter="visibilityChange($event,item)"> {{item.taskName}}</span> 76 <span class="member-label member-span text-hidden" @mouseenter="visibilityChange($event,item)"> {{item.taskName}}</span>
85 </el-tooltip> 77 </el-tooltip>
86 </div> 78 </div>
@@ -51,7 +51,7 @@ export default { @@ -51,7 +51,7 @@ export default {
51 store.dispatch('getFaultList', params).then((res) => { 51 store.dispatch('getFaultList', params).then((res) => {
52 if (res.data && res.success) { 52 if (res.data && res.success) {
53 dialTest.value = res.data[0]; 53 dialTest.value = res.data[0];
54 - card.value = dialTest.value.faultFixInfoList; 54 + card.value = res.data[0].faultFixInfoList;
55 } 55 }
56 }).catch(e => { 56 }).catch(e => {
57 console.log(e); 57 console.log(e);
@@ -69,11 +69,10 @@ export default { @@ -69,11 +69,10 @@ export default {
69 resItem.shortName = data[i][j].shortName; 69 resItem.shortName = data[i][j].shortName;
70 resItem.taskName = data[i][j].taskName; 70 resItem.taskName = data[i][j].taskName;
71 resItem.color = data[i][j].color; 71 resItem.color = data[i][j].color;
  72 + cardData.value.push(resItem);
72 } 73 }
73 } 74 }
74 - cardData.value.push(resItem);  
75 } 75 }
76 - console.log(cardData.value)  
77 } 76 }
78 77
79 78
@@ -93,7 +92,7 @@ export default { @@ -93,7 +92,7 @@ export default {
93 } 92 }
94 } 93 }
95 }] 94 }]
96 - service.sendEventDiagnoseBusinessScenarios(emit, props.faultNo,props.targetType.toLocaleLowerCase(),param); 95 + service.sendEventDiagnoseBusinessScenarios(emit, props.faultNo,props.targetType.toLocaleLowerCase(),param,'','诊断业务场景');
97 } 96 }
98 const openKpiList = () => { 97 const openKpiList = () => {
99 service.sendEventDiagnoseKpiList(emit, props.faultNo,props.targetType.toLocaleLowerCase()); 98 service.sendEventDiagnoseKpiList(emit, props.faultNo,props.targetType.toLocaleLowerCase());
@@ -107,12 +106,11 @@ export default { @@ -107,12 +106,11 @@ export default {
107 service.sendEventNormalDialog(emit, proxy.$global, props.faultNo, props.targetType.toLocaleLowerCase(), '',type); 106 service.sendEventNormalDialog(emit, proxy.$global, props.faultNo, props.targetType.toLocaleLowerCase(), '',type);
108 } 107 }
109 108
110 - const visibilityChange = (e,item) => { 109 + const visibilityChange = (e, item) => {
111 const ev = e.target; 110 const ev = e.target;
112 - const ev_weight = ev.scrollWidth;  
113 - const content_weight = ev.target.offsetWidth;  
114 -  
115 - if (ev_weight > content_weight) { 111 + var height = $(ev).scroll().height()
  112 + // 超过2行
  113 + if (height > 33) {
116 // 实际宽度 > 可视宽度 文字溢出 114 // 实际宽度 > 可视宽度 文字溢出
117 item.isShowTooltip = true; 115 item.isShowTooltip = true;
118 } else { 116 } else {
@@ -120,7 +118,6 @@ export default { @@ -120,7 +118,6 @@ export default {
120 item.isShowTooltip = false; 118 item.isShowTooltip = false;
121 } 119 }
122 } 120 }
123 -  
124 // 挂载完 121 // 挂载完
125 Vue.onMounted(() => { 122 Vue.onMounted(() => {
126 getDialtestList(); 123 getDialtestList();
@@ -208,7 +208,7 @@ const resListService = () => { @@ -208,7 +208,7 @@ const resListService = () => {
208 openLine(row); 208 openLine(row);
209 }, 209 },
210 render: function (row) { 210 render: function (row) {
211 - return `<span style="text-decoration: underline;color: blue;">${row.kpiValue}</span>` 211 + return `<span style="text-decoration: underline;color: green;">${row.kpiValue}</span>`
212 } 212 }
213 }, { 213 }, {
214 prop: "collTime", 214 prop: "collTime",