...
|
...
|
@@ -107,6 +107,20 @@ export default { |
|
|
service.sendEventNormalDialog(emit, proxy.$global, props.faultNo, props.targetType.toLocaleLowerCase(), '',type);
|
|
|
}
|
|
|
|
|
|
const visibilityChange = (e,item) => {
|
|
|
const ev = e.target;
|
|
|
const ev_weight = ev.scrollWidth;
|
|
|
const content_weight = ev.target.offsetWidth;
|
|
|
|
|
|
if (ev_weight > content_weight) {
|
|
|
// 实际宽度 > 可视宽度 文字溢出
|
|
|
item.isShowTooltip = true;
|
|
|
} else {
|
|
|
// 否则为不溢出
|
|
|
item.isShowTooltip = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 挂载完
|
|
|
Vue.onMounted(() => {
|
|
|
getDialtestList();
|
...
|
...
|
@@ -124,7 +138,8 @@ export default { |
|
|
openBusScenarios,
|
|
|
openKpiList,
|
|
|
getFaultItemValue: service.getFaultItemValue,
|
|
|
openDiagnosticItem
|
|
|
openDiagnosticItem,
|
|
|
visibilityChange
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|