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