From 3c06405a40724d7f841219cfa7c2c20c4d101a5c Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Thu, 25 Jan 2024 18:00:08 +0800 Subject: [PATCH 1/2] init --- src/assets/css/element.scss | 1 + src/assets/js/asyncRouter.js | 156 ++++++ src/assets/js/data_dictionary.js | 14 +- src/assets/js/utils.js | 17 +- src/request/off_duty_management.js | 4 + src/request/security_commitment_pro.js | 27 + src/request/troubleshooting_statistics.js | 10 + .../department/components/add.vue | 6 +- .../off_duty_management/record/index.vue | 154 ++++++ .../off_duty_management/setting/index.vue | 56 ++ .../administration/add.vue | 518 ++++++++++++++++++ .../components/select_template.vue | 99 ++++ .../administration/details.vue | 85 +++ .../administration/index.vue | 193 +++++++ .../administration/view.vue | 136 +++++ .../security_commitment_pro/template/add.vue | 151 +++++ .../template/components/view.vue | 187 +++++++ .../template/index.vue | 162 ++++++ .../inventory_statistics_month/index.vue | 41 +- .../inventory_statistics_month/print.vue | 98 +--- .../day_inspection/index.vue | 188 +++++++ .../day_inspection/inspection_records.vue | 192 +++++++ .../ten_day_inspection/index.vue | 9 + .../ten_day_inspection/inspection_records.vue | 175 ++++++ .../week_inspection/index.vue | 9 + .../week_inspection/inspection_records.vue | 170 ++++++ 26 files changed, 2733 insertions(+), 125 deletions(-) create mode 100644 src/request/security_commitment_pro.js create mode 100644 src/request/troubleshooting_statistics.js create mode 100644 src/views/off_duty_management/record/index.vue create mode 100644 src/views/off_duty_management/setting/index.vue create mode 100644 src/views/security_commitment_pro/administration/add.vue create mode 100644 src/views/security_commitment_pro/administration/components/select_template.vue create mode 100644 src/views/security_commitment_pro/administration/details.vue create mode 100644 src/views/security_commitment_pro/administration/index.vue create mode 100644 src/views/security_commitment_pro/administration/view.vue create mode 100644 src/views/security_commitment_pro/template/add.vue create mode 100644 src/views/security_commitment_pro/template/components/view.vue create mode 100644 src/views/security_commitment_pro/template/index.vue create mode 100644 src/views/troubleshooting_statistics/day_inspection/index.vue create mode 100644 src/views/troubleshooting_statistics/day_inspection/inspection_records.vue create mode 100644 src/views/troubleshooting_statistics/ten_day_inspection/index.vue create mode 100644 src/views/troubleshooting_statistics/ten_day_inspection/inspection_records.vue create mode 100644 src/views/troubleshooting_statistics/week_inspection/index.vue create mode 100644 src/views/troubleshooting_statistics/week_inspection/inspection_records.vue diff --git a/src/assets/css/element.scss b/src/assets/css/element.scss index 4e8e663..6936328 100644 --- a/src/assets/css/element.scss +++ b/src/assets/css/element.scss @@ -11,6 +11,7 @@ --el-fill-color-blank: #081435 !important; // 背景色 --el-border-color-lighter: var(--el-border-color) !important; --el-bullet-frame-bg-color: #08163b !important; + --el-text-color-primary: #fff !important; } .el-button:focus, .el-button:hover { diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index a6a5cb4..bd5a19d 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -112,6 +112,74 @@ export default [ }, ], }, + { + path: "/troubleshooting_statistics", + redirect: "/troubleshooting_statistics/day_inspection", + meta: { title: "排查统计", model: MODEL["1"] }, + component: "children", + children: [ + { + path: "/troubleshooting_statistics/day_inspection", + meta: { title: "清单检查记录(日检)", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "troubleshooting_statistics/day_inspection/index", + }, + { + path: "/troubleshooting_statistics/day_inspection/inspection_records", + meta: { + title: "检查记录", + activeMenu: "/troubleshooting_statistics/day_inspection", + }, + component: + "troubleshooting_statistics/day_inspection/inspection_records", + }, + ], + }, + { + path: "/troubleshooting_statistics/week_inspection", + meta: { title: "清单检查记录(周检)", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "troubleshooting_statistics/week_inspection/index", + }, + { + path: "/troubleshooting_statistics/week_inspection/inspection_records", + meta: { + title: "检查记录", + activeMenu: "/troubleshooting_statistics/week_inspection", + }, + component: + "troubleshooting_statistics/week_inspection/inspection_records", + }, + ], + }, + { + path: "/troubleshooting_statistics/ten_day_inspection", + meta: { title: "清单检查记录(旬检)", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "troubleshooting_statistics/ten_day_inspection/index", + }, + { + path: "/troubleshooting_statistics/ten_day_inspection/inspection_records", + meta: { + title: "检查记录", + activeMenu: "/troubleshooting_statistics/ten_day_inspection", + }, + component: + "troubleshooting_statistics/ten_day_inspection/inspection_records", + }, + ], + }, + ], + }, { path: "/system_operation", redirect: "/system_operation/system_documents", @@ -670,11 +738,21 @@ export default [ meta: { title: "离岗管理", model: MODEL["1"] }, component: "children", children: [ + { + path: "/off_duty_management/setting", + meta: { title: "离岗设置", isSubMenu: false }, + component: "off_duty_management/setting/index", + }, { path: "/off_duty_management/leave", meta: { title: "离岗管理", isSubMenu: false }, component: "off_duty_management/leave/index", }, + { + path: "/off_duty_management/record", + meta: { title: "离岗记录", isSubMenu: false }, + component: "off_duty_management/record/index", + }, { path: "/off_duty_management/login_record", meta: { title: "登录记录", isSubMenu: false }, @@ -1618,4 +1696,82 @@ export default [ }, ], }, + { + path: "/security_commitment_pro", + redirect: "/security_commitment_pro/template", + meta: { title: "安全承诺Pro", model: MODEL["4"] }, + component: "children", + children: [ + { + path: "/security_commitment_pro/template", + meta: { title: "安全承诺书模板", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "security_commitment_pro/template/index", + }, + { + path: "/security_commitment_pro/template/add", + meta: { + title: "新增", + activeMenu: "/security_commitment_pro/template", + }, + component: "security_commitment_pro/template/add", + }, + { + path: "/security_commitment_pro/template/edit", + meta: { + title: "编辑", + activeMenu: "/security_commitment_pro/template", + }, + component: "security_commitment_pro/template/add", + }, + ], + }, + { + path: "/security_commitment_pro/administration", + meta: { title: "安全承诺书管理", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "security_commitment_pro/administration/index", + }, + { + path: "/security_commitment_pro/administration/add", + meta: { + title: "新增", + activeMenu: "/security_commitment_pro/administration", + }, + component: "security_commitment_pro/administration/add", + }, + { + path: "/security_commitment_pro/administration/edit", + meta: { + title: "编辑", + activeMenu: "/security_commitment_pro/administration", + }, + component: "security_commitment_pro/administration/add", + }, + { + path: "/security_commitment_pro/administration/view", + meta: { + title: "查看", + activeMenu: "/security_commitment_pro/administration", + }, + component: "security_commitment_pro/administration/view", + }, + { + path: "/security_commitment_pro/administration/details", + meta: { + title: "详情", + activeMenu: "/security_commitment_pro/administration", + }, + component: "security_commitment_pro/administration/details", + }, + ], + }, + ], + }, ]; diff --git a/src/assets/js/data_dictionary.js b/src/assets/js/data_dictionary.js index 8f9a264..fb86744 100644 --- a/src/assets/js/data_dictionary.js +++ b/src/assets/js/data_dictionary.js @@ -97,13 +97,6 @@ export const layoutFnGetRiskCauses = async () => { }); return ref(resData.list); }; -// 部门级别 -export const layoutFnGetDepartmentLevel = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "4a661fa8aedc4d158c9cddaa9d2ec47e", - }); - return ref(resData.list); -}; // 民族 export const layoutFnGetNation = async () => { const resData = await getLevels({ @@ -237,6 +230,13 @@ export const layoutFnGetRiskClassification = async () => { }); return ref(resData.list); }; +// 承诺书级别 +export const layoutFnGetCommitmentLevel = async () => { + const resData = await getLevels({ + DICTIONARIES_ID: "8c5064693fba4dbca1cbfea631cd097a", + }); + return ref(resData.list); +}; // 部门树 export const layoutFnGetDepartmentTree = async (params) => { const resData = await getDepartmentTree(params); diff --git a/src/assets/js/utils.js b/src/assets/js/utils.js index 81c51b8..2b8c5fc 100644 --- a/src/assets/js/utils.js +++ b/src/assets/js/utils.js @@ -288,12 +288,17 @@ export function addingPrefixToFile(list) { * @param {string} key 验证的字段 * @param {string} id 验证的值 **/ -export function verifyDuplicateSelection(list, index, key, id) { - if (list.some((item) => item[key] === id)) { - ElMessage.warning("不能重复选择"); - } else { - list[index][key] = id; - } +export async function verifyDuplicateSelection(list, index, key, id) { + return new Promise((resolve, reject) => { + if (list.some((item) => item[key] === id)) { + ElMessage.warning("不能重复选择"); + // eslint-disable-next-line prefer-promise-reject-errors + reject(); + } else { + list[index][key] = id; + resolve(); + } + }); } /** diff --git a/src/request/off_duty_management.js b/src/request/off_duty_management.js index a77baad..896944b 100644 --- a/src/request/off_duty_management.js +++ b/src/request/off_duty_management.js @@ -7,4 +7,8 @@ export const getApprovedByList = (params) => post("/app/sys/listUserLeader", params); // 离岗管理获取审批人 export const setLeaveReview = (params) => post("/offduty/review", params); // 离岗管理审批 export const setLeaveCancel = (params) => post("/offduty/cancel", params); // 离岗管理取消 +export const getSettingList = (params) => post("/offdutySetup/list", params); // 离岗设置列表 +export const setSettingChange = (params) => + post("/offdutySetup/editSetup", params); // 离岗设置切换 +export const getRecordList = (params) => post("/offduty/list", params); // 离岗记录列表 export const getLoginRecordList = (params) => post("/fhlog/getList", params); // 登录记录列表 diff --git a/src/request/security_commitment_pro.js b/src/request/security_commitment_pro.js new file mode 100644 index 0000000..fef192c --- /dev/null +++ b/src/request/security_commitment_pro.js @@ -0,0 +1,27 @@ +import { post } from "@/request/axios.js"; + +export const getTemplateList = (params) => post("/promise/list", params); // 安全承诺书模板列表 +export const getTemplateView = (params) => post("/promise/goEdit", params); // 安全承诺书模板查看 +export const setTemplateEnableOrDisable = (params) => + post("/promise/editdelete", params); // 安全承诺书模板启用禁用 +export const setTemplateDelete = (params) => post("/promise/delete", params); // 安全承诺书模板删除 +export const setTemplateEdit = (params) => post("/promise/edit", params); // 安全承诺书模板修改 +export const setTemplateAdd = (params) => post("/promise/add", params); // 安全承诺书模板新增 +export const getAdministrationList = (params) => + post("/corppromise/list", params); // 安全承诺书模板列表 +export const getAdministrationView = (params) => + post("/corppromise/goEdit", params); // 安全承诺书模板查看 +export const setAdministrationEnableOrDisable = (params) => + post("/corppromise/editdelete", params); // 安全承诺书管理启用禁用 +export const setAdministrationEdit = (params) => + post("/corppromise/edit_II", params); // 安全承诺书管理修改 +export const setAdministrationAdd = (params) => + post("/corppromise/add_II", params); // 安全承诺书管理新增 +export const getAdministrationDetailsList = (params) => + post("/corppromise/peopledetails", params); // 安全承诺书模板详情列表 +export const getAdministrationDetailsView = (params) => + post("/corppromise/peopleview", params); // 安全承诺书模板详情查看 +export const getAdministrationSelectTemplateList = (params) => + post("/corppromise/showtemplatetext", params); // 安全承诺书选择模板列表 +export const getAdministrationSelectTemplateCheck = (params) => + post("/corppromise/collateral", params); // 安全承诺书选择模板选择 diff --git a/src/request/troubleshooting_statistics.js b/src/request/troubleshooting_statistics.js new file mode 100644 index 0000000..54852ec --- /dev/null +++ b/src/request/troubleshooting_statistics.js @@ -0,0 +1,10 @@ +import { post } from "@/request/axios.js"; + +export const getChecklistInspectionRecordList = (params) => + post("/listmanager/recordList", params); // 清单检查记录列表 +export const getChecklistInspectionRecordDayInspectionList = (params) => + post("/listmanager/statisticsListCheckDay", params); // 清单检查记录日检列表 +export const getChecklistInspectionRecordWeekInspectionList = (params) => + post("/listmanager/statisticsListCheckWeek", params); // 清单检查记录周检列表 +export const getChecklistInspectionRecordTenDayInspectionList = (params) => + post("/listmanager/statisticsListCheckTenday", params); // 清单检查记录旬检列表 diff --git a/src/views/enterprise_management/department/components/add.vue b/src/views/enterprise_management/department/components/add.vue index de70f2a..5708ea5 100644 --- a/src/views/enterprise_management/department/components/add.vue +++ b/src/views/enterprise_management/department/components/add.vue @@ -14,7 +14,7 @@ { if (event === "1" && form.value.checkedIds.length === 0) { if (props.type === "add") diff --git a/src/views/off_duty_management/record/index.vue b/src/views/off_duty_management/record/index.vue new file mode 100644 index 0000000..fdf7f16 --- /dev/null +++ b/src/views/off_duty_management/record/index.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/src/views/off_duty_management/setting/index.vue b/src/views/off_duty_management/setting/index.vue new file mode 100644 index 0000000..cdfce4a --- /dev/null +++ b/src/views/off_duty_management/setting/index.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/views/security_commitment_pro/administration/add.vue b/src/views/security_commitment_pro/administration/add.vue new file mode 100644 index 0000000..c799e22 --- /dev/null +++ b/src/views/security_commitment_pro/administration/add.vue @@ -0,0 +1,518 @@ + + + + + diff --git a/src/views/security_commitment_pro/administration/components/select_template.vue b/src/views/security_commitment_pro/administration/components/select_template.vue new file mode 100644 index 0000000..a654d9b --- /dev/null +++ b/src/views/security_commitment_pro/administration/components/select_template.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/src/views/security_commitment_pro/administration/details.vue b/src/views/security_commitment_pro/administration/details.vue new file mode 100644 index 0000000..65fa1e3 --- /dev/null +++ b/src/views/security_commitment_pro/administration/details.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/views/security_commitment_pro/administration/index.vue b/src/views/security_commitment_pro/administration/index.vue new file mode 100644 index 0000000..6e21009 --- /dev/null +++ b/src/views/security_commitment_pro/administration/index.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/src/views/security_commitment_pro/administration/view.vue b/src/views/security_commitment_pro/administration/view.vue new file mode 100644 index 0000000..6011eb8 --- /dev/null +++ b/src/views/security_commitment_pro/administration/view.vue @@ -0,0 +1,136 @@ + + + + + diff --git a/src/views/security_commitment_pro/template/add.vue b/src/views/security_commitment_pro/template/add.vue new file mode 100644 index 0000000..58924e5 --- /dev/null +++ b/src/views/security_commitment_pro/template/add.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/src/views/security_commitment_pro/template/components/view.vue b/src/views/security_commitment_pro/template/components/view.vue new file mode 100644 index 0000000..ac4c42d --- /dev/null +++ b/src/views/security_commitment_pro/template/components/view.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/src/views/security_commitment_pro/template/index.vue b/src/views/security_commitment_pro/template/index.vue new file mode 100644 index 0000000..cf50975 --- /dev/null +++ b/src/views/security_commitment_pro/template/index.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/src/views/statistical_analysis/inventory_statistics_month/index.vue b/src/views/statistical_analysis/inventory_statistics_month/index.vue index 4d28ee7..6fe759e 100644 --- a/src/views/statistical_analysis/inventory_statistics_month/index.vue +++ b/src/views/statistical_analysis/inventory_statistics_month/index.vue @@ -66,24 +66,15 @@ -
-
备注:红色日期代表周六日
-
- - 完成检查 -
-
- - 未进行检查 -
-
+
+ 备注:红色日期代表周六日 + √ 完成检查 + × 未进行检查 + 离岗/休班/周期未结束 -
-
- - 未建立 -
+ + - 未建立
- + √ {{ (resMap[row.LISTMANAGER_ID][fnFormatDate(item)] || "") @@ -178,20 +168,18 @@ (resMap[row.LISTMANAGER_ID][fnFormatDate(item)] || '') .TYPE === '2' " - class="flex" > - + × - + - - + @@ -253,11 +241,6 @@ const fnFormatDate = (day) => { diff --git a/src/views/troubleshooting_statistics/day_inspection/inspection_records.vue b/src/views/troubleshooting_statistics/day_inspection/inspection_records.vue new file mode 100644 index 0000000..e834c78 --- /dev/null +++ b/src/views/troubleshooting_statistics/day_inspection/inspection_records.vue @@ -0,0 +1,192 @@ + + + + + diff --git a/src/views/troubleshooting_statistics/ten_day_inspection/index.vue b/src/views/troubleshooting_statistics/ten_day_inspection/index.vue new file mode 100644 index 0000000..e1d9531 --- /dev/null +++ b/src/views/troubleshooting_statistics/ten_day_inspection/index.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/troubleshooting_statistics/ten_day_inspection/inspection_records.vue b/src/views/troubleshooting_statistics/ten_day_inspection/inspection_records.vue new file mode 100644 index 0000000..7da7ea2 --- /dev/null +++ b/src/views/troubleshooting_statistics/ten_day_inspection/inspection_records.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/src/views/troubleshooting_statistics/week_inspection/index.vue b/src/views/troubleshooting_statistics/week_inspection/index.vue new file mode 100644 index 0000000..54d40aa --- /dev/null +++ b/src/views/troubleshooting_statistics/week_inspection/index.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/troubleshooting_statistics/week_inspection/inspection_records.vue b/src/views/troubleshooting_statistics/week_inspection/inspection_records.vue new file mode 100644 index 0000000..8e5c0fc --- /dev/null +++ b/src/views/troubleshooting_statistics/week_inspection/inspection_records.vue @@ -0,0 +1,170 @@ + + + + + From ca7eadbb19d72b6cf69fe5f3f352068a8d4aed49 Mon Sep 17 00:00:00 2001 From: zhangqihang Date: Thu, 25 Jan 2024 18:05:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=87=8D=E7=82=B9=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=EF=BC=88=E4=B8=8D=E5=8C=85=E6=8B=ACAI=E6=8A=A5=E8=AD=A6?= =?UTF-8?q?=E5=92=8C=E8=A7=86=E9=A2=91=E7=9B=91=E6=8E=A7=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/asyncRouter.js | 184 +++++++++ src/assets/js/data_dictionary.js | 8 + src/request/keyprojects.js | 52 +++ src/views/keyprojects/aiwarning/index.vue | 106 +++++ src/views/keyprojects/hidden/index.vue | 91 +++++ src/views/keyprojects/hidden/record_list.vue | 128 ++++++ src/views/keyprojects/hidden/record_view.vue | 71 ++++ src/views/keyprojects/inspection/index.vue | 92 +++++ .../keyprojects/inspection/record_list.vue | 103 +++++ .../keyprojects/inspection/record_view.vue | 85 ++++ src/views/keyprojects/outsourced/add.vue | 366 ++++++++++++++++++ src/views/keyprojects/outsourced/index.vue | 201 ++++++++++ src/views/keyprojects/outsourced/view.vue | 108 ++++++ .../personnelmanagement/components/edit.vue | 172 ++++++++ .../keyprojects/personnelmanagement/index.vue | 216 +++++++++++ src/views/keyprojects/punish/index.vue | 92 +++++ src/views/keyprojects/punish/record_list.vue | 106 +++++ src/views/keyprojects/punish/record_view.vue | 59 +++ src/views/keyprojects/units/add.vue | 107 +++++ src/views/keyprojects/units/index.vue | 179 +++++++++ src/views/keyprojects/videomanager/index.vue | 106 +++++ 21 files changed, 2632 insertions(+) create mode 100644 src/request/keyprojects.js create mode 100644 src/views/keyprojects/aiwarning/index.vue create mode 100644 src/views/keyprojects/hidden/index.vue create mode 100644 src/views/keyprojects/hidden/record_list.vue create mode 100644 src/views/keyprojects/hidden/record_view.vue create mode 100644 src/views/keyprojects/inspection/index.vue create mode 100644 src/views/keyprojects/inspection/record_list.vue create mode 100644 src/views/keyprojects/inspection/record_view.vue create mode 100644 src/views/keyprojects/outsourced/add.vue create mode 100644 src/views/keyprojects/outsourced/index.vue create mode 100644 src/views/keyprojects/outsourced/view.vue create mode 100644 src/views/keyprojects/personnelmanagement/components/edit.vue create mode 100644 src/views/keyprojects/personnelmanagement/index.vue create mode 100644 src/views/keyprojects/punish/index.vue create mode 100644 src/views/keyprojects/punish/record_list.vue create mode 100644 src/views/keyprojects/punish/record_view.vue create mode 100644 src/views/keyprojects/units/add.vue create mode 100644 src/views/keyprojects/units/index.vue create mode 100644 src/views/keyprojects/videomanager/index.vue diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index bd5a19d..3dca741 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -732,6 +732,190 @@ export default [ meta: { title: "排班管理", model: MODEL["1"], isSubMenu: false }, component: "workforce_management/index", }, + { + path: "/keyprojects", + redirect: "/keyprojects/units", + meta: { title: "重点工程", model: MODEL["1"] }, + component: "children", + children: [ + { + path: "/keyprojects/units", + meta: { title: "相关方管理", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "keyprojects/units/index", + }, + { + path: "/keyprojects/units/add", + meta: { + title: "新增", + activeMenu: "/keyprojects/units", + }, + component: "keyprojects/units/add", + }, + { + path: "/keyprojects/units/edit", + meta: { + title: "修改", + activeMenu: "/keyprojects/units", + }, + component: "keyprojects/units/add", + }, + ], + }, + { + path: "/keyprojects/personnelmanagement", + meta: { title: "相关方人员管理", isSubMenu: false }, + component: "keyprojects/personnelmanagement/index", + }, + { + path: "/keyprojects/outsourced", + meta: { title: "重点工程管理", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "keyprojects/outsourced/index", + }, + { + path: "/keyprojects/outsourced/add", + meta: { + title: "新增", + activeMenu: "/keyprojects/outsourced", + }, + component: "keyprojects/outsourced/add", + }, + { + path: "/keyprojects/outsourced/add", + meta: { + title: "编辑", + activeMenu: "/keyprojects/outsourced", + }, + component: "keyprojects/outsourced/add", + }, + { + path: "/keyprojects/outsourced/view", + meta: { + title: "查看", + activeMenu: "/keyprojects/outsourced", + }, + component: "keyprojects/outsourced/view", + }, + ], + }, + { + path: "/keyprojects/inspection", + meta: { title: "安全、环保检查", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "keyprojects/inspection/index", + }, + { + path: "/keyprojects/inspection/record_list", + meta: { + title: "查看列表", + activeMenu: "/keyprojects/inspection" + }, + component: "children", + children: [ + { + path: "", + component: "keyprojects/inspection/record_list" + }, + { + path: "/keyprojects/inspection/record_view", + meta: { + title: "查看详情", + activeMenu: "/keyprojects/inspection", + }, + component: "keyprojects/inspection/record_view", + }, + ] + }, + ] + }, + { + path: "/keyprojects/hidden", + meta: { title: "隐患排查", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "keyprojects/hidden/index", + }, + { + path: "/keyprojects/hidden/record_list", + meta: { + title: "查看列表", + activeMenu: "/keyprojects/hidden" + }, + component: "children", + children: [ + { + path: "", + component: "keyprojects/hidden/record_list" + }, + { + path: "/keyprojects/hidden/record_view", + meta: { + title: "查看详情", + activeMenu: "/keyprojects/hidden", + }, + component: "keyprojects/hidden/record_view", + }, + ] + }, + ] + }, + { + path: "/keyprojects/punish", + meta: { title: "处罚管理", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "keyprojects/punish/index", + }, + { + path: "/keyprojects/punish/record_list", + meta: { + title: "查看列表", + activeMenu: "/keyprojects/punish" + }, + component: "children", + children: [ + { + path: "", + component: "keyprojects/punish/record_list" + }, + { + path: "/keyprojects/punish/record_view", + meta: { + title: "查看详情", + activeMenu: "/keyprojects/punish", + }, + component: "keyprojects/punish/record_view", + }, + ] + }, + ] + }, + { + path: "/keyprojects/aiwarning", + meta: { title: "AI报警", isSubMenu: false }, + component: "keyprojects/aiwarning/index", + }, + { + path: "/keyprojects/videomanager", + meta: { title: "视频监控", isSubMenu: false }, + component: "keyprojects/videomanager/index", + }, + ], + }, { path: "/off_duty_management", redirect: "/off_duty_management/leave", diff --git a/src/assets/js/data_dictionary.js b/src/assets/js/data_dictionary.js index fb86744..38d3569 100644 --- a/src/assets/js/data_dictionary.js +++ b/src/assets/js/data_dictionary.js @@ -252,3 +252,11 @@ export const layoutFnGetLevelsAndChildrenNumber = async (DICTIONARIES_ID) => { const resData = await getLevelsAndChildrenNumber({ DICTIONARIES_ID }); return ref(resData.list); }; + +// 相关方作业类别 +export const layoutFnGetPersonnelmanagementJobType = async () => { + const resData = await getLevels({ + DICTIONARIES_ID: "a8bfd4554af54ee2b816f3007d8baea6", + }); + return ref(resData.list); +}; diff --git a/src/request/keyprojects.js b/src/request/keyprojects.js new file mode 100644 index 0000000..10f690b --- /dev/null +++ b/src/request/keyprojects.js @@ -0,0 +1,52 @@ +import { post, upload } from "@/request/axios.js"; + +export const getUnitsListAll = () => post("/units/listAll"); // 施工相关方全部 +export const getUnitsList = (params) => post("/units/list", params); // 相关方列表 +export const setUnitsAdd = (params) => upload("/units/add", params); // 相关方添加 +export const setUnitsGoEdit = (params) => post("/units/goEdit", params); // 相关方修改获取 +export const setUnitsEdit = (params) => upload("/units/edit", params); // 相关方修改 +export const setUnitsDelete = (params) => post("/units/delete", params); // 相关方删除 +export const setUnitsDeleteAll = (params) => post("/units/deleteAll", params); // 相关方删除(多选) + +export const setIsTrueDelete = (params) => + post("/personnelmanagement/isTrueDelete", params); // 查看是否可删除 +export const setIsTrueDeleteAll = (params) => + post("/personnelmanagement/isTrueDeleteAll", params); // 查看是否可删除(全部) +export const getPersonnelmanagementList = (params) => + post("/personnelmanagement/list", params); // 相关方人员列表 +export const setPersonnelmanagementResetPwd = (params) => + post("/personnelmanagement/resetPwd", params); // 相关方人员重置密码 +export const setPersonnelmanagementAdd = (params) => + post("/personnelmanagement/add", params); // 相关方人员添加 +export const setPersonnelmanagementEdit = (params) => + post("/personnelmanagement/edit", params); // 相关方人员编辑 +export const setPersonnelmanagementGoEdit = (params) => + post("/personnelmanagement/goEdit", params); // 相关方人员编辑获取 +export const setPersonnelmanagementDelete = (params) => + post("/personnelmanagement/delete", params); // 相关方人员删除 +export const setPersonnelmanagementDeleteAll = (params) => + post("/personnelmanagement/deleteAll", params); // 相关方人员批量删除 +export const setPersonnelmanagementListAll = (params) => + post("/personnelmanagement/listAll", params); // 相关方人员列表 + +export const getOutsourcedList = (params) => post("/outsourced/list", params); // 重点工程列表 +export const setOutsourcedAdd = (params) => upload("/outsourced/add", params); // 重点工程添加 +export const setOutsourcedEdit = (params) => upload("/outsourced/edit", params); // 重点工程修改 +export const setOutsourcedGoEdit = (params) => + post("/outsourced/goEdit", params); // 重点工程修改获取 +export const setOutsourcedDelete = (params) => + post("/outsourced/delete", params); // 重点工程修改获取 + +export const getKeyprojectcheckList = (params) => + post("/keyprojectcheck/list", params); // 安全环保检查列表 +export const getKeyprojectcheckGoEdit = (params) => + post("/keyprojectcheck/goEdit", params); // 安全环保检查详情 +export const getKeyprojectcheckListHidden = (params) => + post("/keyprojectcheck/listHidden", params); // 安全环保检查隐患列表 +export const getKeyprojectcheckFindHidden = (params) => + post("/keyprojectcheck/findHidden", params); // 安全环保检查隐患详情 +export const getKeyprojectpunishList = (params) => + post("/keyprojectpunish/list", params); // 处罚列表 +export const getKeyprojectpunishGoEdit = (params) => + post("/keyprojectpunish/goEdit", params); // 处罚列表详情 + diff --git a/src/views/keyprojects/aiwarning/index.vue b/src/views/keyprojects/aiwarning/index.vue new file mode 100644 index 0000000..09bae83 --- /dev/null +++ b/src/views/keyprojects/aiwarning/index.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/src/views/keyprojects/hidden/index.vue b/src/views/keyprojects/hidden/index.vue new file mode 100644 index 0000000..6b586f4 --- /dev/null +++ b/src/views/keyprojects/hidden/index.vue @@ -0,0 +1,91 @@ + + + + + diff --git a/src/views/keyprojects/hidden/record_list.vue b/src/views/keyprojects/hidden/record_list.vue new file mode 100644 index 0000000..5408007 --- /dev/null +++ b/src/views/keyprojects/hidden/record_list.vue @@ -0,0 +1,128 @@ + + + + + diff --git a/src/views/keyprojects/hidden/record_view.vue b/src/views/keyprojects/hidden/record_view.vue new file mode 100644 index 0000000..caf2584 --- /dev/null +++ b/src/views/keyprojects/hidden/record_view.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/src/views/keyprojects/inspection/index.vue b/src/views/keyprojects/inspection/index.vue new file mode 100644 index 0000000..4e4754a --- /dev/null +++ b/src/views/keyprojects/inspection/index.vue @@ -0,0 +1,92 @@ + + + + + diff --git a/src/views/keyprojects/inspection/record_list.vue b/src/views/keyprojects/inspection/record_list.vue new file mode 100644 index 0000000..85261de --- /dev/null +++ b/src/views/keyprojects/inspection/record_list.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/views/keyprojects/inspection/record_view.vue b/src/views/keyprojects/inspection/record_view.vue new file mode 100644 index 0000000..3fc9705 --- /dev/null +++ b/src/views/keyprojects/inspection/record_view.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/views/keyprojects/outsourced/add.vue b/src/views/keyprojects/outsourced/add.vue new file mode 100644 index 0000000..5b2ecea --- /dev/null +++ b/src/views/keyprojects/outsourced/add.vue @@ -0,0 +1,366 @@ + + + + + diff --git a/src/views/keyprojects/outsourced/index.vue b/src/views/keyprojects/outsourced/index.vue new file mode 100644 index 0000000..7b24f0f --- /dev/null +++ b/src/views/keyprojects/outsourced/index.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/src/views/keyprojects/outsourced/view.vue b/src/views/keyprojects/outsourced/view.vue new file mode 100644 index 0000000..3e2f3cd --- /dev/null +++ b/src/views/keyprojects/outsourced/view.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/src/views/keyprojects/personnelmanagement/components/edit.vue b/src/views/keyprojects/personnelmanagement/components/edit.vue new file mode 100644 index 0000000..26abf09 --- /dev/null +++ b/src/views/keyprojects/personnelmanagement/components/edit.vue @@ -0,0 +1,172 @@ + + + + + diff --git a/src/views/keyprojects/personnelmanagement/index.vue b/src/views/keyprojects/personnelmanagement/index.vue new file mode 100644 index 0000000..459e378 --- /dev/null +++ b/src/views/keyprojects/personnelmanagement/index.vue @@ -0,0 +1,216 @@ + + + + + diff --git a/src/views/keyprojects/punish/index.vue b/src/views/keyprojects/punish/index.vue new file mode 100644 index 0000000..f04ab8b --- /dev/null +++ b/src/views/keyprojects/punish/index.vue @@ -0,0 +1,92 @@ + + + + + diff --git a/src/views/keyprojects/punish/record_list.vue b/src/views/keyprojects/punish/record_list.vue new file mode 100644 index 0000000..883f7fd --- /dev/null +++ b/src/views/keyprojects/punish/record_list.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/src/views/keyprojects/punish/record_view.vue b/src/views/keyprojects/punish/record_view.vue new file mode 100644 index 0000000..888cc3b --- /dev/null +++ b/src/views/keyprojects/punish/record_view.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/views/keyprojects/units/add.vue b/src/views/keyprojects/units/add.vue new file mode 100644 index 0000000..1a0ac62 --- /dev/null +++ b/src/views/keyprojects/units/add.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/views/keyprojects/units/index.vue b/src/views/keyprojects/units/index.vue new file mode 100644 index 0000000..6441e09 --- /dev/null +++ b/src/views/keyprojects/units/index.vue @@ -0,0 +1,179 @@ + + + + + diff --git a/src/views/keyprojects/videomanager/index.vue b/src/views/keyprojects/videomanager/index.vue new file mode 100644 index 0000000..09bae83 --- /dev/null +++ b/src/views/keyprojects/videomanager/index.vue @@ -0,0 +1,106 @@ + + + + +