事件处理后刷新列表

This commit is contained in:
caoqianming 2022-10-26 14:21:35 +08:00
parent f9766e1a80
commit eb56109e9d
4 changed files with 6 additions and 5 deletions

View File

@ -306,9 +306,9 @@ export default {
this.total = response.total || 0;
this.summary = response.summary || {};
this.loading = false;
if(!this.hidePagination){
this.$refs.scTable.setScrollTop(0);
}
// if(!this.hidePagination){
// this.$refs.scTable.setScrollTop(0);
// }
this.$emit("dataChange", res, this.tableData);
} catch (error) {
this.loading = false;

View File

@ -212,7 +212,7 @@ export default {
})
},
handleSuccess(){
this.$refs.table.refresh();
},
//

View File

@ -262,7 +262,7 @@ export default {
},
onSubmit() {
this.$API.ecm.event.handle.req(this.form.id, this.form).then((res) => {
this.$router.go(-1);
this.$emit("success");
this.$message.success("操作成功");
return res;
});

View File

@ -192,6 +192,7 @@ export default {
});
},
handleSuccess(){
this.$refs.table.refresh();
this.dialog.handle = false
},
//