From 5b409a0d3b47fda2859fa8b5b456b575f8aaea33 Mon Sep 17 00:00:00 2001 From: yaojn Date: Mon, 27 Nov 2023 15:05:37 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E7=AE=A1=E7=90=86-=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=BC=82=E5=B8=B8=20=20-=20[=E5=85=B3?= =?UTF-8?q?=E8=81=94]#[1031698165235712]=E6=9C=8D=E5=8A=A1=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E7=AE=A1=E7=90=86-=E7=BC=96=E8=BE=91=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=BC=82=E5=B8=B8=20http://192.168.0.96:8090/demo/rdm?= =?UTF-8?q?.html#/bug-detail/939050947543040/939050947543057/1031698165235?= =?UTF-8?q?712?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pages/process/catalog/catalog-manage.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/pages/process/catalog/catalog-manage.vue b/src/views/pages/process/catalog/catalog-manage.vue index 64f3dc486..c0ef2606e 100644 --- a/src/views/pages/process/catalog/catalog-manage.vue +++ b/src/views/pages/process/catalog/catalog-manage.vue @@ -215,8 +215,15 @@ export default { this.childrenCount = childrenCount; this.currentUuid = uuid; this.treeUuid = uuid; - this.$set(this.channelData, 'uuid', uuid); - this.$set(this.channelData, 'parentUuid', parentUuid); + if (type == 'catalog') { + // 编辑目录 + this.$set(this.catalogData, 'uuid', uuid); + this.$set(this.catalogData, 'parentUuid', parentUuid); + } else if (type == 'channel') { + // 编辑服务 + this.$set(this.channelData, 'uuid', uuid); + this.$set(this.channelData, 'parentUuid', parentUuid); + } } }, treeSelected(uuid) { @@ -257,7 +264,7 @@ export default { }, beforeDrop(tree, treeNodes, targetNode, moveType) { // 不允许将服务拖拽为根目录 - if (targetNode == null) { + if (targetNode == null && (treeNodes[0] && treeNodes[0]?.type && treeNodes[0]?.type != 'catalog')) { return false; } }, -- Gitee