mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
Merge remote-tracking branch 'origin/250403-szx-1017-shl' into 250403-szx-1017-shl
This commit is contained in:
@@ -450,6 +450,19 @@ 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) {
|
||||||
@@ -808,7 +821,14 @@ 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: '所属组织 ',
|
||||||
@@ -1454,6 +1474,9 @@ export default {
|
|||||||
createupdialog,
|
createupdialog,
|
||||||
removeList,
|
removeList,
|
||||||
checkMenu,
|
checkMenu,
|
||||||
|
activeTooltip,
|
||||||
|
showTooltip,
|
||||||
|
hideTooltip,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user