特种作业人员证件临期提醒

pull/1/head
wangpeng 2024-02-21 08:39:20 +08:00
parent b6bc893c88
commit f5fda138c3
2 changed files with 22 additions and 1 deletions

View File

@ -66,12 +66,18 @@ import { useRouter } from "vue-router";
import { useMenuStore } from "@/pinia/menu";
import { useUserStore } from "@/pinia/user";
import { MENU } from "@/assets/js/constant";
import { getInfo, getUserInfo, logout } from "@/request/api";
import {
getInfo,
getUserInfo,
logout,
getPersonnelManagementWarnAmount,
} from "@/request/api";
import UpdateInfo from "./components/update_info.vue";
import UpdateAvatar from "./components/update_avatar.vue";
import { checkImgExists, addingPrefixToFile } from "@/assets/js/utils.js";
import { useWebSocket } from "@vueuse/core";
import { nanoid } from "nanoid";
import { ElNotification } from "element-plus";
defineOptions({
name: "LayoutHeader",
@ -151,6 +157,19 @@ const fnSignOut = async () => {
userStore.$reset();
await router.replace("/login");
};
const fnPersonnelManagementWarnAmount = async () => {
const resData = await getPersonnelManagementWarnAmount();
if (resData.message) {
ElNotification({
title: "温馨提示",
dangerouslyUseHTMLString: true,
message: resData.message,
duration: 0,
type: "warning",
});
}
};
fnPersonnelManagementWarnAmount();
</script>
<style lang="scss" scoped>

View File

@ -26,3 +26,5 @@ export const setVideo = (params) =>
post("/app/audioOrVideo/createUploadVideo", params); // 阿里云上传视频
export const setVideoRefresh = (params) =>
post("/app/audioOrVideo/refreshUploadVideo", params); // 阿里云上传视频刷新凭证
export const getPersonnelManagementWarnAmount = (params) =>
post("/personnelmanagement/warnAmount", params); // 特种作业人员管理列表