From 02de5ba9108c4562520838e085d7f5f0213c428e Mon Sep 17 00:00:00 2001 From: guoyue Date: Thu, 3 Nov 2022 14:50:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E6=A0=87=E7=AD=BE=E5=8C=96?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ability/components/tag-directory.vue | 26 ++++++++++--------- .../ability/components/tag-sys-build.vue | 2 +- back/src/views/modules/ability/tag-data.vue | 4 +-- .../ability/tag-type-add-or-update.vue | 6 ++--- back/src/views/modules/ability/tag.vue | 4 +-- 5 files changed, 22 insertions(+), 20 deletions(-) diff --git a/back/src/views/modules/ability/components/tag-directory.vue b/back/src/views/modules/ability/components/tag-directory.vue index a4debe40..772709da 100644 --- a/back/src/views/modules/ability/components/tag-directory.vue +++ b/back/src/views/modules/ability/components/tag-directory.vue @@ -3,10 +3,10 @@
- + - 标签检索 + 标签检索
-
标签详情
- +
标签详情查看
+ - + - + - + - + @@ -66,6 +66,7 @@ export default { label: 'dictName' }, defaultNode: '', + rowData: {}, } }, watch: { @@ -76,12 +77,12 @@ export default { handler(newVal) { this.dataListCopy = []; this.defaultNode = null; - this.dataForm = {}; + this.rowData = {}; newVal.map((v, i) => { v.id = `${v.id}`; if (i == 0) { this.defaultNode = v.id; - this.dataForm = v; + this.rowData = v; this.$nextTick(() => { this.$refs.treeDom.setCurrentKey(this.defaultNode); //一定要加这个选中了否则样式没有出来 }); @@ -95,7 +96,8 @@ export default { } this.dataListCopy.push(v) }) - } + }, + deep: true, } }, methods: { @@ -104,7 +106,7 @@ export default { return data.label.indexOf(value) !== -1; }, handleNodeClick(data) { - this.dataForm = data + this.rowData = data }, }, diff --git a/back/src/views/modules/ability/components/tag-sys-build.vue b/back/src/views/modules/ability/components/tag-sys-build.vue index 863e26cd..911576c4 100644 --- a/back/src/views/modules/ability/components/tag-sys-build.vue +++ b/back/src/views/modules/ability/components/tag-sys-build.vue @@ -9,7 +9,7 @@ {{ $t('query') }} - 新增分类 + 新增标签分类
import mixinViewModule from '@/mixins/view-module' -// import AddOrUpdate from './dict-data-add-or-update' +import AddOrUpdate from './tag-type-add-or-update' export default { mixins: [mixinViewModule], data() { @@ -79,7 +79,7 @@ export default { } }, components: { - // AddOrUpdate + AddOrUpdate }, created() { this.dataForm.dictTypeId = this.$route.params.dictTypeId || '0' diff --git a/back/src/views/modules/ability/tag-type-add-or-update.vue b/back/src/views/modules/ability/tag-type-add-or-update.vue index 5b438514..7c53d74c 100644 --- a/back/src/views/modules/ability/tag-type-add-or-update.vue +++ b/back/src/views/modules/ability/tag-type-add-or-update.vue @@ -1,10 +1,10 @@