update 字典结构更改. 扩展值可编辑为json

This commit is contained in:
2021-05-20 20:39:46 +08:00
parent e7fea323bd
commit ad08df1150
25 changed files with 1033 additions and 144 deletions

View File

@@ -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(() => { })
}
},

View File

@@ -174,6 +174,10 @@ export default {
this.data.splice(this.data.indexOf(row), 1)
}
},
getData() {
return this.data
},
},
render() {