From 459af1d9fbb680fb493841909d30381b4ae2456c Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Tue, 20 Aug 2024 17:26:31 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=A0=87=E7=AD=BE=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E7=AE=A1=E7=90=86=EF=BC=8C=E5=AD=97=E5=85=B8=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=A0=91=E5=BD=A2=E7=BB=93=E6=9E=84=E8=8E=B7=E5=8F=96=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8D=A2=E6=8E=A5=E5=8F=A3=EF=BC=8C=E6=A0=91=E5=BD=A2?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91parentId?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=80=BC=E5=B0=B1=E7=BB=990?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/tags/modules/TagContentDictItemModal.vue | 4 ++++ src/views/system/tags/modules/TagContentDictListDrawer.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/system/tags/modules/TagContentDictItemModal.vue b/src/views/system/tags/modules/TagContentDictItemModal.vue index 5f9cdb4..746c619 100644 --- a/src/views/system/tags/modules/TagContentDictItemModal.vue +++ b/src/views/system/tags/modules/TagContentDictItemModal.vue @@ -176,6 +176,10 @@ export default { } else { obj = editDictItem } + // 树形结构没有parentId说明是一级 + if (this.attributeType === TagsAttributeTypeEnums.TREE.value && !params.parentId) { + params.parentId = '0' + } obj(params).then((res) => { if (res.success) { that.$message.success(res.message) diff --git a/src/views/system/tags/modules/TagContentDictListDrawer.vue b/src/views/system/tags/modules/TagContentDictListDrawer.vue index 22e337d..1c975c0 100644 --- a/src/views/system/tags/modules/TagContentDictListDrawer.vue +++ b/src/views/system/tags/modules/TagContentDictListDrawer.vue @@ -150,7 +150,7 @@ export default { }, // 树形结构对应的接口 treeUrl: { - list: 'sys/dictItem/treeList', + list: 'sys/dictItem/treeListByTag', delete: 'sys/dictItem/delete', deleteBatch: 'sys/dictItem/deleteBatch' },