事件处理后刷新列表
This commit is contained in:
parent
f9766e1a80
commit
eb56109e9d
|
@ -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;
|
||||
|
|
|
@ -212,7 +212,7 @@ export default {
|
|||
})
|
||||
},
|
||||
handleSuccess(){
|
||||
|
||||
this.$refs.table.refresh();
|
||||
},
|
||||
|
||||
//搜索
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -192,6 +192,7 @@ export default {
|
|||
});
|
||||
},
|
||||
handleSuccess(){
|
||||
this.$refs.table.refresh();
|
||||
this.dialog.handle = false
|
||||
},
|
||||
//搜索
|
||||
|
|
Loading…
Reference in New Issue