From 7f163a0e676ca7944618f2ecc822b1fdecc7380a Mon Sep 17 00:00:00 2001 From: dengjia Date: Tue, 22 Jul 2025 09:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/info_builder/index.vue | 33 +++++ .../components/editDialog.vue | 27 ++-- .../connect_enterprises_management/index.vue | 18 ++- .../connect_enterprises_management/info.vue | 123 ++++++++++++++++++ .../serve_platform_management/index.vue | 18 ++- .../serve_platform_management/info.vue | 52 ++++++++ .../components/dataItemsDialog.vue | 22 +++- .../components/editDialog.vue | 2 +- .../components/infoDialog.vue | 117 +++++++++++++++++ .../superior_platform_management/index.vue | 34 ++++- .../superior_platform_management/info.vue | 57 ++++++++ 11 files changed, 479 insertions(+), 24 deletions(-) create mode 100644 src/components/info_builder/index.vue create mode 100644 src/views/database/connect_enterprises_management/info.vue create mode 100644 src/views/database/serve_platform_management/info.vue create mode 100644 src/views/database/superior_platform_management/components/infoDialog.vue create mode 100644 src/views/database/superior_platform_management/info.vue diff --git a/src/components/info_builder/index.vue b/src/components/info_builder/index.vue new file mode 100644 index 0000000..01b1a9c --- /dev/null +++ b/src/components/info_builder/index.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/src/views/database/connect_enterprises_management/components/editDialog.vue b/src/views/database/connect_enterprises_management/components/editDialog.vue index 4527b6a..7269769 100644 --- a/src/views/database/connect_enterprises_management/components/editDialog.vue +++ b/src/views/database/connect_enterprises_management/components/editDialog.vue @@ -15,7 +15,7 @@ v-model="form.area" :options="dictionariesList" :props="{ - value: 'dictionaryId', + value: 'name', label: 'name', children: 'list', }" @@ -73,18 +73,13 @@ - + - - - + @@ -393,16 +388,17 @@ const fnSubmitMap = () => { form.value.address = `${form.value.longitude}-${form.value.latitude}`; }; const checkThirdListItem = () => { - thirdList.value.forEach((item) => { + for (let i = 0; i < thirdList.value.length; i++) { + const obj = thirdList.value[i]; if ( - !item.thirdPlatformId || - !item.thirdPlatformCode || - !item.majorHazardCode + !obj.thirdPlatformId || + !obj.thirdPlatformCode || + !obj.majorHazardCode ) { ElMessage.error("上级对接平台、企业编码、重大危险源编码不能为空"); return false; } - }); + } return true; }; const sectorIdRef = ref(""); @@ -410,10 +406,9 @@ const sectorIdRef = ref(""); const fnSubmit = debounce( 1000, async () => { - // setBusCompanyInfoAdd(); await validate(); - const ischeck = checkThirdListItem(); - if (ischeck) { + const check = await checkThirdListItem(); + if (check) { const sectorName = sectorIdRef.value.getCheckedNodes(); const [province = "", city = "", county = ""] = form.value.area; const sectorId = form.value.sectorId.join(","); diff --git a/src/views/database/connect_enterprises_management/index.vue b/src/views/database/connect_enterprises_management/index.vue index b289827..43b132a 100644 --- a/src/views/database/connect_enterprises_management/index.vue +++ b/src/views/database/connect_enterprises_management/index.vue @@ -26,7 +26,21 @@ @@ -74,6 +85,7 @@ import dataItemsDialog from "./components/dataItemsDialog.vue"; import { ElMessage, ElMessageBox } from "element-plus"; import { translationStatus } from "@/assets/js/utils.js"; import { STATUS_LIST } from "@/assets/js/constant.js"; +import viewInfoDialog from "./components/infoDialog.vue"; const platformLevelOptions = [ { name: "国家", id: 1 }, { name: "省平台", id: 2 }, @@ -121,11 +133,31 @@ const fnAddorEdit = (type, row) => { const dataItemVisible = ref({ visible: false, platformName: "", + edit: null, + resourceId: "", + menuId: "", }); const fnDataItems = (row) => { corpInfoId.value = row.id; dataItemVisible.value.visible = true; dataItemVisible.value.platformName = row.platformName; + dataItemVisible.value.edit = 1; +}; +const infoDialog = ref({ + visible: false, + platformName: "", +}); +const fnViewInfo = (row) => { + infoDialog.value.visible = true; + corpInfoId.value = row.id; + infoDialog.value.platformName = row.platformName; +}; +const toDataItemsDialog = (data) => { + dataItemVisible.value.visible = true; + dataItemVisible.value.platformName = infoDialog.value.platformName; + dataItemVisible.value.edit = 0; + dataItemVisible.value.resourceId = data.item.menuId; + dataItemVisible.value.menuId = data.itemChild.menuId; }; const fnDelete = async (id) => { await ElMessageBox.confirm("确定要删除吗?", { diff --git a/src/views/database/superior_platform_management/info.vue b/src/views/database/superior_platform_management/info.vue new file mode 100644 index 0000000..1bcb64a --- /dev/null +++ b/src/views/database/superior_platform_management/info.vue @@ -0,0 +1,57 @@ + + + + +