From a3e5b6d0ee6f24ea63d79570838d71687e3362b4 Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 2 Jul 2025 09:11:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(corp):=20=E6=96=B0=E5=A2=9E=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E4=BF=A1=E6=81=AF=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 BusCorpForm 相关的 Controller、Service、Dao 及实体类 - 实现企业信息的分页查询功能 - 新增企业信息添加和编辑功能 - 优化数据字典组件,支持新功能- 更新 API 调用路径,适配新功能 --- .env.development | 2 +- src/components/area_cascader/index.vue | 2 +- src/components/cascader/index.vue | 8 +- src/views/corp/manager/components/app-add.vue | 98 ++++++++++++++++++- src/views/corp/manager/index.vue | 17 +++- .../data_dictionary/components/add.vue | 16 +-- 6 files changed, 126 insertions(+), 17 deletions(-) diff --git a/.env.development b/.env.development index 81cf2b3..2f86c58 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,2 @@ VITE_BASE=/ -VITE_BASE_URL=http://192.168.0.16:8471/qhd-regulatoryV2/ +VITE_BASE_URL=http://192.168.0.18:8059/docking/ diff --git a/src/components/area_cascader/index.vue b/src/components/area_cascader/index.vue index 26b29ff..61aa07a 100644 --- a/src/components/area_cascader/index.vue +++ b/src/components/area_cascader/index.vue @@ -8,7 +8,7 @@ :show-all-levels="false" :level="level" :join-separator="joinSeparator" - value="bianma" + value="code" /> diff --git a/src/components/cascader/index.vue b/src/components/cascader/index.vue index a28b6d6..1cdb300 100644 --- a/src/components/cascader/index.vue +++ b/src/components/cascader/index.vue @@ -52,13 +52,13 @@ const administrativeDivisionProps = { lazy: true, lazyLoad: async (node, resolve) => { const resData = await appFnGetDataDictionary({ - parentId: node.data.dictionariesId || props.id, + parentId: node.data.dictionaryId || props.id, }); resolve( resData.map((item) => { return { - dictionariesId: item.dictionariesId, - bianma: item.bianma, + dictionaryId: item.dictionaryId, + code: item.code, name: item.name, leaf: props.controlLevel ? node.level >= props.level @@ -68,7 +68,7 @@ const administrativeDivisionProps = { ); }, value: props.value, - id: "dictionariesId", + id: "dictionaryId", label: "name", children: "children", checkStrictly: props.checkStrictly, diff --git a/src/views/corp/manager/components/app-add.vue b/src/views/corp/manager/components/app-add.vue index 0aff2fd..3d75591 100644 --- a/src/views/corp/manager/components/app-add.vue +++ b/src/views/corp/manager/components/app-add.vue @@ -1,4 +1,98 @@ - + diff --git a/src/views/corp/manager/index.vue b/src/views/corp/manager/index.vue index a15793c..093fdce 100644 --- a/src/views/corp/manager/index.vue +++ b/src/views/corp/manager/index.vue @@ -17,8 +17,15 @@ + - + diff --git a/src/views/system_management/data_dictionary/components/add.vue b/src/views/system_management/data_dictionary/components/add.vue index 4b9e270..6b6a664 100644 --- a/src/views/system_management/data_dictionary/components/add.vue +++ b/src/views/system_management/data_dictionary/components/add.vue @@ -56,7 +56,7 @@ const props = defineProps({ type: Object, required: false, default: () => ({ - dictionariesId: "0", + dictionaryId: "0", name: "(无)此项为顶级菜单", bianma: "", parentIds: "", @@ -106,25 +106,25 @@ const fnSubmit = debounce( } await setDataDictionaryAdd({ ...form.value, - parentId: props.parent.dictionariesId, + parentId: props.parent.dictionaryId, parentIds: - props.parent.dictionariesId === "0" + props.parent.dictionaryId === "0" ? "" : (props.parent.parentIds ? props.parent.parentIds + "," : "") + - props.parent.dictionariesId, + props.parent.dictionaryId, parentBianmas: - props.parent.dictionariesId === "0" + props.parent.dictionaryId === "0" ? "" : (props.parent.parentBianmas ? props.parent.parentBianmas + "," : "") + props.parent.bianma, parentNames: - props.parent.dictionariesId === "0" + props.parent.dictionaryId === "0" ? "" : (props.parent.parentNames ? props.parent.parentNames + "," : "") + props.parent.name, - rootId: props.parent.dictionariesId === "0" ? "" : props.parent.rootId, - dictionariesId: undefined, + rootId: props.parent.dictionaryId === "0" ? "" : props.parent.rootId, + dictionaryId: undefined, }); } if (props.type === "edit")