From 7baabe54128a37bb05abfd7955db185ff40ba545 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 6 Nov 2023 14:54:01 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug78198?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customField/AddForm.vue | 4 ++++ src/components/selection/TreeSelection.vue | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index 289d9885..dad99a8e 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -132,6 +132,7 @@ { if (valid) { diff --git a/src/components/selection/TreeSelection.vue b/src/components/selection/TreeSelection.vue index 2c723915..6f50cc00 100644 --- a/src/components/selection/TreeSelection.vue +++ b/src/components/selection/TreeSelection.vue @@ -35,6 +35,11 @@ export default { type: String, default: '' }, + // 修改的字段名 + filedName: { + type: String, + default: '' + }, value: { type: String, default: () => { @@ -46,13 +51,14 @@ export default { nameStr: { immediate: true, handler (val) { + console.log(val) this.checkedValue = val } } }, data () { return { - checkedValue: null + checkedValue: '' } }, methods: { @@ -65,7 +71,7 @@ export default { }, nameChange (value) { this.checkedValue = value - this.$emit('nameChange', value) + this.$emit('nameChange', value, this.filedName) } }, model: { @@ -99,4 +105,4 @@ export default { margin-left: 5px; } } - \ No newline at end of file +