特种作业人员证件临期提醒(迁表)

pull/1/head
wangpeng 2024-02-21 11:45:23 +08:00
parent 7e8ac114fe
commit 91457d22d4
3 changed files with 7 additions and 11 deletions

View File

@ -66,12 +66,8 @@ 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 { import { getInfo, getUserInfo, logout } from "@/request/api";
getInfo, import { getSpecialOperationsWarnAmount } from "@/request/special_operations";
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";
@ -157,8 +153,8 @@ const fnSignOut = async () => {
userStore.$reset(); userStore.$reset();
await router.replace("/login"); await router.replace("/login");
}; };
const fnPersonnelManagementWarnAmount = async () => { const fnSpecialOperationsWarnAmount = async () => {
const resData = await getPersonnelManagementWarnAmount(); const resData = await getSpecialOperationsWarnAmount();
if (resData.message) { if (resData.message) {
ElNotification({ ElNotification({
title: "温馨提示", title: "温馨提示",
@ -169,7 +165,7 @@ const fnPersonnelManagementWarnAmount = async () => {
}); });
} }
}; };
fnPersonnelManagementWarnAmount(); fnSpecialOperationsWarnAmount();
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -26,5 +26,3 @@ 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); // 特种作业人员管理列表

View File

@ -14,3 +14,5 @@ export const setPersonnelManagementEdit = (params) =>
post("/specialoperations/edit", params); // 特种作业人员管理批量修改 post("/specialoperations/edit", params); // 特种作业人员管理批量修改
export const getVerifyDeduplicationCertificateNum = (params) => export const getVerifyDeduplicationCertificateNum = (params) =>
post("/specialoperations/hasCertificate", params); // 特种作业证书编号验证 post("/specialoperations/hasCertificate", params); // 特种作业证书编号验证
export const getSpecialOperationsWarnAmount = (params) =>
post("/specialoperations/warnAmount", params); // 特种作业人员管理列表