|
@@ -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();
|