...
|
...
|
@@ -117,7 +117,19 @@ export default { |
|
|
const openDiagnosticItem = (type) => {
|
|
|
service.sendEventNormalDialog(emit, proxy.$global, props.faultNo, props.targetType.toLocaleLowerCase(), '',type);
|
|
|
}
|
|
|
|
|
|
const visibilityChange = (e, item) => {
|
|
|
const ev = e.target;
|
|
|
var ev_width = $(ev).scroll().width();//文本实际宽度
|
|
|
const content_width=proxy.$refs.tlp.$el.parentNode.clientWidth;//文本容器宽度
|
|
|
// 超过1行,显示悬浮
|
|
|
if (ev_width > content_width) {
|
|
|
// 文本实际宽度 > 文本容器宽度 文字溢出
|
|
|
item.isShowTooltip = true;
|
|
|
} else {
|
|
|
// 否则为不溢出
|
|
|
item.isShowTooltip = false;
|
|
|
}
|
|
|
}
|
|
|
// 挂载完
|
|
|
Vue.onMounted(() => {
|
|
|
getNpmList();
|
...
|
...
|
@@ -137,7 +149,8 @@ export default { |
|
|
openBusScenarios,
|
|
|
openKpiList,
|
|
|
openResPonse,
|
|
|
openDiagnosticItem
|
|
|
openDiagnosticItem,
|
|
|
visibilityChange
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|