From a005a01286346a0f3e15948b1870ae3d2bf3535b Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Wed, 18 May 2022 17:33:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/archivesConfig/dict/dictDetail.vue | 6 +++--- src/views/archivesConfig/dict/index.vue | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/archivesConfig/dict/dictDetail.vue b/src/views/archivesConfig/dict/dictDetail.vue index ad1ee23..8d95a9c 100644 --- a/src/views/archivesConfig/dict/dictDetail.vue +++ b/src/views/archivesConfig/dict/dictDetail.vue @@ -72,7 +72,7 @@ export default { presenter(), header(), form(function() { - return Object.assign({ dic_pid: this.dictId }, defaultForm) + return Object.assign({ dic_pid: this.dicPid }, defaultForm) })], props: { activeAddBtn: { @@ -81,7 +81,7 @@ export default { }, data() { return { - dictId: null, + dicPid: null, rules: { label: [ { required: true, message: '请输入字典名称', trigger: 'blur' } @@ -108,7 +108,7 @@ export default { }, // 获取数据前设置默认参数 [CRUD.HOOK.beforeRefresh]() { - this.crud.query.id = this.dictId + this.crud.query.id = this.dicPid return true } } diff --git a/src/views/archivesConfig/dict/index.vue b/src/views/archivesConfig/dict/index.vue index 1407bf5..3834c30 100644 --- a/src/views/archivesConfig/dict/index.vue +++ b/src/views/archivesConfig/dict/index.vue @@ -107,8 +107,7 @@ export default { this.crud.selectionChangeHandler([]) } this.$refs.dictDetail.query.id = val.id - console.log(1) - this.$refs.dictDetail.dictId = val.id + this.$refs.dictDetail.dicPid = val.id this.$refs.dictDetail.crud.toQuery() this.activeAddBtn = true }