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

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 { useUserStore } from "@/pinia/user";
import { MENU } from "@/assets/js/constant";
import {
getInfo,
getUserInfo,
logout,
getPersonnelManagementWarnAmount,
} from "@/request/api";
import { getInfo, getUserInfo, logout } from "@/request/api";
import { getSpecialOperationsWarnAmount } from "@/request/special_operations";
import UpdateInfo from "./components/update_info.vue";
import UpdateAvatar from "./components/update_avatar.vue";
import { checkImgExists, addingPrefixToFile } from "@/assets/js/utils.js";
@ -157,8 +153,8 @@ const fnSignOut = async () => {
userStore.$reset();
await router.replace("/login");
};
const fnPersonnelManagementWarnAmount = async () => {
const resData = await getPersonnelManagementWarnAmount();
const fnSpecialOperationsWarnAmount = async () => {
const resData = await getSpecialOperationsWarnAmount();
if (resData.message) {
ElNotification({
title: "温馨提示",
@ -169,7 +165,7 @@ const fnPersonnelManagementWarnAmount = async () => {
});
}
};
fnPersonnelManagementWarnAmount();
fnSpecialOperationsWarnAmount();
</script>
<style lang="scss" scoped>

View File

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

View File

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