diff --git a/web/src/components/selector-table/selector-table.vue b/web/src/components/selector-table/selector-table.vue index 76029c6..e27eef0 100644 --- a/web/src/components/selector-table/selector-table.vue +++ b/web/src/components/selector-table/selector-table.vue @@ -64,7 +64,7 @@ />
-
+
{ - // return item[value] - // }) - // this.$emit('input', result) - // this.$emit('change', result) - // } - // } - // } }, mounted () { // 给currentValue设置初始值 @@ -258,6 +230,7 @@ export default { this.pageConfig.limit = limit this.pageConfig.total = total if (data.data && data.data.length > 0) { + console.log(data.data) this.currentValue = data.data } else { this.currentValue = [] @@ -349,6 +322,9 @@ export default { const result = val.map((item) => { return item[this.dict.value] }) + if (this.dispatch) { + this.dispatch('ElFormItem', 'el.form.blur') + } this.$emit('input', result) this.$emit('change', result) }, @@ -361,6 +337,9 @@ export default { if (!tableConfig.multiple) { this.multipleSelection = val this.$emit('radioChange', val) + if (this.dispatch) { + this.dispatch('ElFormItem', 'el.form.blur') + } this.$emit('input', val[this.dict.value]) this.$emit('change', val[this.dict.value]) }