forked from integrated_whb/integrated_whb_vue
特种作业人员证件临期提醒
parent
b6bc893c88
commit
f5fda138c3
|
@ -66,12 +66,18 @@ import { useRouter } from "vue-router";
|
||||||
import { useMenuStore } from "@/pinia/menu";
|
import { useMenuStore } from "@/pinia/menu";
|
||||||
import { useUserStore } from "@/pinia/user";
|
import { useUserStore } from "@/pinia/user";
|
||||||
import { MENU } from "@/assets/js/constant";
|
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 UpdateInfo from "./components/update_info.vue";
|
||||||
import UpdateAvatar from "./components/update_avatar.vue";
|
import UpdateAvatar from "./components/update_avatar.vue";
|
||||||
import { checkImgExists, addingPrefixToFile } from "@/assets/js/utils.js";
|
import { checkImgExists, addingPrefixToFile } from "@/assets/js/utils.js";
|
||||||
import { useWebSocket } from "@vueuse/core";
|
import { useWebSocket } from "@vueuse/core";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
|
import { ElNotification } from "element-plus";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "LayoutHeader",
|
name: "LayoutHeader",
|
||||||
|
@ -151,6 +157,19 @@ const fnSignOut = async () => {
|
||||||
userStore.$reset();
|
userStore.$reset();
|
||||||
await router.replace("/login");
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
@ -26,3 +26,5 @@ export const setVideo = (params) =>
|
||||||
post("/app/audioOrVideo/createUploadVideo", params); // 阿里云上传视频
|
post("/app/audioOrVideo/createUploadVideo", params); // 阿里云上传视频
|
||||||
export const setVideoRefresh = (params) =>
|
export const setVideoRefresh = (params) =>
|
||||||
post("/app/audioOrVideo/refreshUploadVideo", params); // 阿里云上传视频刷新凭证
|
post("/app/audioOrVideo/refreshUploadVideo", params); // 阿里云上传视频刷新凭证
|
||||||
|
export const getPersonnelManagementWarnAmount = (params) =>
|
||||||
|
post("/personnelmanagement/warnAmount", params); // 特种作业人员管理列表
|
||||||
|
|
Loading…
Reference in New Issue