update 字典结构更改. 扩展值可编辑为json
This commit is contained in:
@@ -122,19 +122,23 @@ export default {
|
||||
&& this.body.onGetData
|
||||
&& this.body.onGetData()
|
||||
.then((data) => {
|
||||
this.confirmLoading = true
|
||||
this.action
|
||||
&& this.action(data)
|
||||
if (this.action) {
|
||||
this.confirmLoading = true
|
||||
this.action(data)
|
||||
.then(({ success }) => {
|
||||
if (success) {
|
||||
this.$message.success(this.successMessage || '保存成功');
|
||||
this.$message.success(this.successMessage || '保存成功')
|
||||
this.onClose();
|
||||
this.$emit('ok');
|
||||
this.$emit('ok', data)
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
this.confirmLoading = false
|
||||
})
|
||||
} else {
|
||||
this.onClose()
|
||||
this.$emit('ok', data)
|
||||
}
|
||||
}).catch(() => { })
|
||||
}
|
||||
},
|
||||
|
||||
@@ -174,6 +174,10 @@ export default {
|
||||
this.data.splice(this.data.indexOf(row), 1)
|
||||
}
|
||||
},
|
||||
|
||||
getData() {
|
||||
return this.data
|
||||
},
|
||||
},
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user