跳转到BI页关闭持证作业人员到期提示

pull/3/head
LiuJiaNan 2024-02-28 10:27:08 +08:00
parent f0590c087c
commit a863a386e0
1 changed files with 7 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<div class="logo" />
<div class="menu">
<ul>
<li @click="router.push({ path: '/large_screen_data_display' })">
<li @click="fnNavigationBI">
<div class="title">BI</div>
</li>
<template v-for="(item, index) in MENU" :key="index">
@ -79,6 +79,7 @@ defineOptions({
name: "LayoutHeader",
});
const FILE_URL = import.meta.env.VITE_FILE_URL;
let notify;
const router = useRouter();
const menuStore = useMenuStore();
const userStore = useUserStore();
@ -156,7 +157,7 @@ const fnSignOut = async () => {
const fnSpecialOperationsWarnAmount = async () => {
const resData = await getSpecialOperationsWarnAmount();
if (resData.message) {
ElNotification({
notify = ElNotification({
title: "温馨提示",
dangerouslyUseHTMLString: true,
message: resData.message,
@ -166,6 +167,10 @@ const fnSpecialOperationsWarnAmount = async () => {
}
};
fnSpecialOperationsWarnAmount();
const fnNavigationBI = () => {
notify && notify.close();
router.push({ path: "/large_screen_data_display" });
};
</script>
<style lang="scss" scoped>