forked from github/dataease
Merge pull request #3202 from dataease/pr@dev@fix_template-manage
fix(模板管理): 修复删除模板分类列表未刷新问题
This commit is contained in:
commit
5969ded4a9
@ -24,7 +24,7 @@
|
|||||||
ref="templateList"
|
ref="templateList"
|
||||||
:template-type="currentTemplateType"
|
:template-type="currentTemplateType"
|
||||||
:template-list="templateList"
|
:template-list="templateList"
|
||||||
@templateDelete="templateDelete"
|
@templateDelete="templateFolderDelete"
|
||||||
@templateEdit="templateEdit"
|
@templateEdit="templateEdit"
|
||||||
@showCurrentTemplate="showCurrentTemplate"
|
@showCurrentTemplate="showCurrentTemplate"
|
||||||
@templateImport="templateImport"
|
@templateImport="templateImport"
|
||||||
@ -253,6 +253,14 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
templateFolderDelete(id) {
|
||||||
|
if (id) {
|
||||||
|
templateDelete(id).then((response) => {
|
||||||
|
this.openMessageSuccess("commons.delete_success");
|
||||||
|
this.getTree()
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
templateDelete(id) {
|
templateDelete(id) {
|
||||||
if (id) {
|
if (id) {
|
||||||
templateDelete(id).then((response) => {
|
templateDelete(id).then((response) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user