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 +