mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-24 02:02:55 +08:00
去掉悬浮无用代码
This commit is contained in:
@@ -450,19 +450,6 @@ export default {
|
|||||||
LookInsideLecturer,
|
LookInsideLecturer,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const activeTooltip = ref(null); // 当前显示的提示框对应的记录 ID
|
|
||||||
|
|
||||||
// 显示提示框
|
|
||||||
const showTooltip = (title) => {
|
|
||||||
console.log("================title",title);
|
|
||||||
activeTooltip.value = title;
|
|
||||||
};
|
|
||||||
|
|
||||||
// 隐藏提示框
|
|
||||||
const hideTooltip = () => {
|
|
||||||
activeTooltip.value = null;
|
|
||||||
};
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const search = sessionStorage.getItem('searchLecturer')
|
const search = sessionStorage.getItem('searchLecturer')
|
||||||
if (route.query.activeKey == 1) {
|
if (route.query.activeKey == 1) {
|
||||||
@@ -821,14 +808,7 @@ export default {
|
|||||||
{ value.record.name } / { value.record.userNo }
|
{ value.record.name } / { value.record.userNo }
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
},
|
}
|
||||||
customCell: (record) => {
|
|
||||||
return {
|
|
||||||
style: { userSelect: 'text' },
|
|
||||||
onMouseenter: () => showTooltip(record.name), // 绑定自定义的 showTooltip 方法
|
|
||||||
onMouseleave: hideTooltip, // 绑定自定义的 hideTooltip 方法
|
|
||||||
};
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '所属组织 ',
|
title: '所属组织 ',
|
||||||
@@ -1474,9 +1454,6 @@ export default {
|
|||||||
createupdialog,
|
createupdialog,
|
||||||
removeList,
|
removeList,
|
||||||
checkMenu,
|
checkMenu,
|
||||||
activeTooltip,
|
|
||||||
showTooltip,
|
|
||||||
hideTooltip,
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user