mirror of
https://github.com/yzcheng90/x-springboot-ui
synced 2025-11-09 09:15:37 +08:00
Update template.vue
This commit is contained in:
@@ -171,6 +171,15 @@ export default {
|
|||||||
this.state.tableData.loading = false
|
this.state.tableData.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
updateInfo(row) {
|
||||||
|
useMsgTemplateApi().update(row).then(response => {
|
||||||
|
this.state.submitBtn.loading = false;
|
||||||
|
this.closeDialog();
|
||||||
|
this.fetchData()
|
||||||
|
}).catch(() => {
|
||||||
|
this.state.submitBtn.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
onOpenAddOrEdit(type, row) {
|
onOpenAddOrEdit(type, row) {
|
||||||
if (type === 'edit') {
|
if (type === 'edit') {
|
||||||
this.state.submitBtn.type = 'edit';
|
this.state.submitBtn.type = 'edit';
|
||||||
|
|||||||
Reference in New Issue
Block a user