integrated_traffic_vue/src/request/safety_production_related.js

19 lines
994 B
JavaScript
Raw Normal View History

import { post,upload } from "@/request/axios.js";
import {getLevelsByParentId} from "@/request/data_dictionary.js";
import {ref} from "vue";
export const getSecurityNoticeList = (params) => post("/securitynotice/listForSecurityNotice", params); // 安全通知列表
export const getSecurityNotice = (params) => post("/securitynotice/getAllReadDetail", params); // 阅读详情
export const dateteSecurityNotice = (params) => post("/securitynotice/delete", params); // 安全通知删除
export const getSecurityNoticeInfo = (params) => post("/securitynotice/goEdit", params); // 安全通知详情
export const addSecurityNotice = (params) => upload("/securitynotice/add", params); // 添加安全通知
export const getUserListAll = (params) => post("/user/listUserByCorp", params);
export const layoutFnGetNotificationsClassification = async () => {
const resData = await getLevelsByParentId({
parentId: "aaecb47d95524b84904809671e48a777",
});
return ref(resData);
};