From 2324d1110d5770bc5ff4fdfcefc6353eb2aa3211 Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Thu, 1 Feb 2024 17:37:47 +0800 Subject: [PATCH 1/2] init --- src/assets/js/asyncRouter.js | 50 +++ src/assets/js/data_dictionary.js | 8 + src/components/inspection_type/index.vue | 46 +++ src/components/sign/index.vue | 2 +- src/request/data_dictionary.js | 8 +- .../safety_environmental_management.js | 10 + .../safety_environmental/add.vue | 258 +++++++++++++ .../components/defense.vue | 126 +++++++ .../components/flow_chart.vue | 79 ++++ .../safety_environmental/index.vue | 344 ++++++++++++++++++ .../safety_environmental/view.vue | 7 + 11 files changed, 936 insertions(+), 2 deletions(-) create mode 100644 src/components/inspection_type/index.vue create mode 100644 src/request/safety_environmental_management.js create mode 100644 src/views/safety_environmental_management/safety_environmental/add.vue create mode 100644 src/views/safety_environmental_management/safety_environmental/components/defense.vue create mode 100644 src/views/safety_environmental_management/safety_environmental/components/flow_chart.vue create mode 100644 src/views/safety_environmental_management/safety_environmental/index.vue create mode 100644 src/views/safety_environmental_management/safety_environmental/view.vue diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index 8774c3e..4d4d508 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -945,6 +945,56 @@ export default [ }, ], }, + { + path: "/safety_environmental_management", + redirect: "/safety_environmental_management/safety_environmental", + meta: { title: "安全、环保检查管理", model: MODEL["1"] }, + component: "children", + children: [ + { + path: "/safety_environmental_management/safety_environmental", + meta: { title: "安全、环保检查", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: + "safety_environmental_management/safety_environmental/index", + }, + { + path: "/safety_environmental_management/safety_environmental/add", + meta: { + title: "新增", + activeMenu: + "/safety_environmental_management/safety_environmental", + }, + component: + "safety_environmental_management/safety_environmental/add", + }, + { + path: "/safety_environmental_management/safety_environmental/edit", + meta: { + title: "编辑", + activeMenu: + "/safety_environmental_management/safety_environmental", + }, + component: + "safety_environmental_management/safety_environmental/add", + }, + { + path: "/safety_environmental_management/safety_environmental/view", + meta: { + title: "查看", + activeMenu: + "/safety_environmental_management/safety_environmental", + }, + component: + "safety_environmental_management/safety_environmental/view", + }, + ], + }, + ], + }, { 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 3ade1a7..aa1b810 100644 --- a/src/assets/js/data_dictionary.js +++ b/src/assets/js/data_dictionary.js @@ -6,6 +6,7 @@ import { getDepartmentTree, getLevelsCorp, getElectronicFenceTree, + getListSelectTree, } from "@/request/data_dictionary.js"; import { ref } from "vue"; @@ -388,6 +389,13 @@ export const layoutFnGetElectronicFenceTree = async (params) => { const resData = await getElectronicFenceTree(params); return ref(JSON.parse(resData.zTreeNodes)); }; +// 检查类型树 +export const layoutFnGetInspectionTypeTree = async () => { + const resData = await getListSelectTree({ + DICTIONARIES_ID: "60e6481d96e44a5390ff5c347c4d1ffe", + }); + return ref(JSON.parse(resData.zTreeNodes)); +}; // 无法确定DICTIONARIES_ID的数据字典 export const layoutFnGetLevels = async (DICTIONARIES_ID) => { const resData = await getLevels({ DICTIONARIES_ID }); diff --git a/src/components/inspection_type/index.vue b/src/components/inspection_type/index.vue new file mode 100644 index 0000000..0710553 --- /dev/null +++ b/src/components/inspection_type/index.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/components/sign/index.vue b/src/components/sign/index.vue index d9d66f1..2f3586c 100644 --- a/src/components/sign/index.vue +++ b/src/components/sign/index.vue @@ -14,7 +14,7 @@ :height="300" :is-crop="false" :line-width="6" - line-color="red" + line-color="#fff" />