From 83cc22ebf85d2a70da2a3b9163e5c6356cb68f2d Mon Sep 17 00:00:00 2001 From: WenShiJun Date: Mon, 26 Feb 2024 18:30:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E4=BE=8B=E4=BC=9A->=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=88=97=E8=A1=A8=E3=80=81=E6=96=B0=E5=A2=9E=E3=80=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/safety_production_related.js | 41 ++- src/request/traffic_driving_log.js | 9 + src/request/traffic_safety_meeting.js | 14 + .../driving_log/add.vue | 229 ++++++++++++ .../driving_log/drivingLog_info.vue | 340 ++++++++++++++++++ .../driving_log/index.vue | 137 +++++++ .../safety_meeting/add.vue | 229 ++++++++++++ .../safety_meeting/details.vue | 140 ++++++++ .../safety_meeting/index.vue | 168 +++++++++ .../safety_meeting/meeting_info.vue | 91 +++++ .../security_notice/add.vue | 5 +- .../security_notice/details.vue | 29 +- .../security_notice/index.vue | 12 +- 13 files changed, 1420 insertions(+), 24 deletions(-) create mode 100644 src/request/traffic_driving_log.js create mode 100644 src/request/traffic_safety_meeting.js create mode 100644 src/views/safety_production_related/driving_log/add.vue create mode 100644 src/views/safety_production_related/driving_log/drivingLog_info.vue create mode 100644 src/views/safety_production_related/driving_log/index.vue create mode 100644 src/views/safety_production_related/safety_meeting/add.vue create mode 100644 src/views/safety_production_related/safety_meeting/details.vue create mode 100644 src/views/safety_production_related/safety_meeting/index.vue create mode 100644 src/views/safety_production_related/safety_meeting/meeting_info.vue diff --git a/src/request/safety_production_related.js b/src/request/safety_production_related.js index 10ef43d..d3a3a77 100644 --- a/src/request/safety_production_related.js +++ b/src/request/safety_production_related.js @@ -1,18 +1,35 @@ -import { post,upload } from "@/request/axios.js"; -import {getLevelsByParentId} from "@/request/data_dictionary.js"; -import {ref} from "vue"; +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 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); + const resData = await getLevelsByParentId({ + parentId: "aaecb47d95524b84904809671e48a777", + }); + return ref(resData); }; +export const layoutFnGetSIGNEDSTATUSClassification = async () => { + const resData = await getLevelsByParentId({ + parentId: "bbecb47d95524b84904809671e48a777", + }); + return ref(resData); +}; +export const layoutFnGetMEETINGTYPEClassification = async () => { + const resData = await getLevelsByParentId({ + parentId: "eeeec1cbabe7406083994447d00d0d4a", + }); + return ref(resData); +}; diff --git a/src/request/traffic_driving_log.js b/src/request/traffic_driving_log.js new file mode 100644 index 0000000..9493712 --- /dev/null +++ b/src/request/traffic_driving_log.js @@ -0,0 +1,9 @@ +import { post } from "@/request/axios.js"; +export const getSafetyDrivingLogList = (params) => + post("/drivinglog/listForSafetyDrivingLog", params); // 行车日志列表 + +export const setDrivingLogDelete = (params) => + post("/drivinglog/delete", params); // 行车日志删除 + +export const getSafetyDrivingLogView = (params) => + post("/drivinglog/goEdit", params); // 安全例会详情 diff --git a/src/request/traffic_safety_meeting.js b/src/request/traffic_safety_meeting.js new file mode 100644 index 0000000..421704b --- /dev/null +++ b/src/request/traffic_safety_meeting.js @@ -0,0 +1,14 @@ +import { post, upload } from "@/request/axios.js"; +export const getSafetyMeetingList = (params) => + post("/safetymeeting/listForSafetyMeeting", params); // 安全例会列表 + +export const setSafetyMeetingDelete = (params) => + post("/safetymeeting/delete", params); // 安全例会删除 + +export const getSafetyMeetingView = (params) => + post("/safetymeeting/goEdit", params); // 安全例会详情 + +export const addSafetyMeetingView = (params) => + upload("/safetymeeting/add", params); // 添加安全通知 +export const getSafetyMeetingRecipient = (params) => + post("/safetymeeting/getAllRecipient", params); // 参会人员 diff --git a/src/views/safety_production_related/driving_log/add.vue b/src/views/safety_production_related/driving_log/add.vue new file mode 100644 index 0000000..a93807e --- /dev/null +++ b/src/views/safety_production_related/driving_log/add.vue @@ -0,0 +1,229 @@ + + + + + diff --git a/src/views/safety_production_related/driving_log/drivingLog_info.vue b/src/views/safety_production_related/driving_log/drivingLog_info.vue new file mode 100644 index 0000000..2d3e7c5 --- /dev/null +++ b/src/views/safety_production_related/driving_log/drivingLog_info.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/safety_production_related/driving_log/index.vue b/src/views/safety_production_related/driving_log/index.vue new file mode 100644 index 0000000..8ebaf79 --- /dev/null +++ b/src/views/safety_production_related/driving_log/index.vue @@ -0,0 +1,137 @@ + + + + + diff --git a/src/views/safety_production_related/safety_meeting/add.vue b/src/views/safety_production_related/safety_meeting/add.vue new file mode 100644 index 0000000..a93807e --- /dev/null +++ b/src/views/safety_production_related/safety_meeting/add.vue @@ -0,0 +1,229 @@ + + + + + diff --git a/src/views/safety_production_related/safety_meeting/details.vue b/src/views/safety_production_related/safety_meeting/details.vue new file mode 100644 index 0000000..75fd07d --- /dev/null +++ b/src/views/safety_production_related/safety_meeting/details.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/src/views/safety_production_related/safety_meeting/index.vue b/src/views/safety_production_related/safety_meeting/index.vue new file mode 100644 index 0000000..1e7a25c --- /dev/null +++ b/src/views/safety_production_related/safety_meeting/index.vue @@ -0,0 +1,168 @@ + + + + + diff --git a/src/views/safety_production_related/safety_meeting/meeting_info.vue b/src/views/safety_production_related/safety_meeting/meeting_info.vue new file mode 100644 index 0000000..89afb86 --- /dev/null +++ b/src/views/safety_production_related/safety_meeting/meeting_info.vue @@ -0,0 +1,91 @@ + + + + + diff --git a/src/views/safety_production_related/security_notice/add.vue b/src/views/safety_production_related/security_notice/add.vue index a4c433a..2b0b69f 100644 --- a/src/views/safety_production_related/security_notice/add.vue +++ b/src/views/safety_production_related/security_notice/add.vue @@ -81,7 +81,6 @@
确定
- { await useFormValidate(formRef); const formData = new FormData(); + Object.keys(data.form).forEach((key) => { formData.append(key, data.form[key]); }); + formData.delete("fileList"); + for (let i = 0; i < data.form.fileList.length; i++) { if (data.form.fileList[i].raw) formData.append("FFILE", data.form.fileList[i].raw); } + await addSecurityNotice(formData); }; const fnSelectRiskSubmit = (list) => { diff --git a/src/views/safety_production_related/security_notice/details.vue b/src/views/safety_production_related/security_notice/details.vue index 14279ca..2f7c82a 100644 --- a/src/views/safety_production_related/security_notice/details.vue +++ b/src/views/safety_production_related/security_notice/details.vue @@ -14,7 +14,14 @@ - + + + @@ -51,9 +58,8 @@ diff --git a/src/views/safety_production_related/security_notice/index.vue b/src/views/safety_production_related/security_notice/index.vue index 18f0713..7982b69 100644 --- a/src/views/safety_production_related/security_notice/index.vue +++ b/src/views/safety_production_related/security_notice/index.vue @@ -28,7 +28,7 @@ @@ -140,7 +140,7 @@