diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index e68baf5..f62b427 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -71,6 +71,17 @@ export default [ }, ], }, + { + path: "/enterprise_management/information/electronic_fence", + meta: { title: "电子围栏", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "enterprise_management/electronic_fence/index", + }, + ], + }, ], }, { diff --git a/src/assets/js/data_dictionary.js b/src/assets/js/data_dictionary.js index f70f418..b3a37ce 100644 --- a/src/assets/js/data_dictionary.js +++ b/src/assets/js/data_dictionary.js @@ -5,6 +5,7 @@ import { getRegulatoryType, getDepartmentTree, getLevelsCorp, + getElectronicFenceTree, } from "@/request/data_dictionary.js"; import { ref } from "vue"; @@ -354,6 +355,11 @@ export const layoutFnGetDepartmentTree = async (params) => { const resData = await getDepartmentTree(params); return ref(JSON.parse(resData.zTreeNodes)); }; +// 电子围栏树 +export const layoutFnGetElectronicFenceTree = async (params) => { + const resData = await getElectronicFenceTree(params); + return ref(JSON.parse(resData.zTreeNodes)); +}; // 无法确定DICTIONARIES_ID的数据字典 export const layoutFnGetLevels = async (DICTIONARIES_ID) => { const resData = await getLevels({ DICTIONARIES_ID }); diff --git a/src/views/risk_control/identifying_parts/components/electronic_fence.vue b/src/components/electronic_fence/index.vue similarity index 96% rename from src/views/risk_control/identifying_parts/components/electronic_fence.vue rename to src/components/electronic_fence/index.vue index bcb30c5..a34761e 100644 --- a/src/views/risk_control/identifying_parts/components/electronic_fence.vue +++ b/src/components/electronic_fence/index.vue @@ -74,8 +74,8 @@ const props = defineProps({ const emits = defineEmits(["update:visible", "update:form"]); const { visible, form } = useVModels(props, emits); const handleJoin = (row) => { - form.value.ELECTRONIC_FENCE = row.regName; - form.value.ELECTRONIC_FENCE_ID = row.uuid; + form.value.ELECTRONIC_FENCE_NAME = row.regName; + form.value.ELECTRONIC_FENCE_ID = row.id; visible.value = false; }; diff --git a/src/components/electronic_fence_tree/index.vue b/src/components/electronic_fence_tree/index.vue new file mode 100644 index 0000000..54bad01 --- /dev/null +++ b/src/components/electronic_fence_tree/index.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/src/request/data_dictionary.js b/src/request/data_dictionary.js index 87b830e..8be8ac9 100644 --- a/src/request/data_dictionary.js +++ b/src/request/data_dictionary.js @@ -45,6 +45,12 @@ export const getDepartmentTree = (params) => loading: false, ...params, }); +// 部门树 +export const getElectronicFenceTree = (params) => + post("/electronicfence/listTree", { + loading: false, + ...params, + }); // 获取岗位 export const getPostListAll = (params) => post("/post/listAll", { diff --git a/src/request/enterprise_management.js b/src/request/enterprise_management.js index b94cfbc..c529ae5 100644 --- a/src/request/enterprise_management.js +++ b/src/request/enterprise_management.js @@ -43,3 +43,14 @@ export const setDictionaryDelete = (params) => export const setUserAdd = (params) => post("/user/saveUser", params); // 用户管理添加 export const setUserEdit = (params) => post("/user/editUser", params); // 用户管理修改 export const getUserView = (params) => post("/user/goEditUser", params); // 用户管理查看 +export const getElectronicFenceList = (params) => + post("/electronicfence/list", params); // 电子围栏区域列表 +export const setElectronicFenceData = (params) => + post("/electronicfence/save", params); // 电子围栏区域新增 +export const setElectronicFenceDelete = (params) => + post("/electronicfence/removeByIds", params); // 电子围栏区域新增 +export const setElectronicFenceEdit = (params) => + post("/electronicfence/edit", params); // 电子围栏区域新增 +export const getElectronicFenceView = (params) => + post("/electronicfence/goEdit", params); // 电子围栏区域详情 + diff --git a/src/views/enterprise_management/electronic_fence/components/add.vue b/src/views/enterprise_management/electronic_fence/components/add.vue new file mode 100644 index 0000000..abd966a --- /dev/null +++ b/src/views/enterprise_management/electronic_fence/components/add.vue @@ -0,0 +1,143 @@ + + + + + diff --git a/src/views/enterprise_management/electronic_fence/components/structural_diagram.vue b/src/views/enterprise_management/electronic_fence/components/structural_diagram.vue new file mode 100644 index 0000000..74d0491 --- /dev/null +++ b/src/views/enterprise_management/electronic_fence/components/structural_diagram.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/src/views/enterprise_management/electronic_fence/index.vue b/src/views/enterprise_management/electronic_fence/index.vue new file mode 100644 index 0000000..63a0222 --- /dev/null +++ b/src/views/enterprise_management/electronic_fence/index.vue @@ -0,0 +1,225 @@ + + + + + diff --git a/src/views/risk_control/identifying_parts/components/add.vue b/src/views/risk_control/identifying_parts/components/add.vue index d36104b..5e194d6 100644 --- a/src/views/risk_control/identifying_parts/components/add.vue +++ b/src/views/risk_control/identifying_parts/components/add.vue @@ -29,7 +29,7 @@ @@ -67,7 +67,7 @@ import { setIdentifyingPartsEdit, } from "@/request/risk_control.js"; import LayoutUpload from "@/components/upload/index.vue"; -import ElectronicFence from "./electronic_fence.vue"; +import ElectronicFence from "@/components/electronic_fence/index.vue"; const props = defineProps({ visible: {