事件处理后刷新列表
This commit is contained in:
parent
f9766e1a80
commit
eb56109e9d
|
|
@ -306,9 +306,9 @@ export default {
|
||||||
this.total = response.total || 0;
|
this.total = response.total || 0;
|
||||||
this.summary = response.summary || {};
|
this.summary = response.summary || {};
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if(!this.hidePagination){
|
// if(!this.hidePagination){
|
||||||
this.$refs.scTable.setScrollTop(0);
|
// this.$refs.scTable.setScrollTop(0);
|
||||||
}
|
// }
|
||||||
this.$emit("dataChange", res, this.tableData);
|
this.$emit("dataChange", res, this.tableData);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSuccess(){
|
handleSuccess(){
|
||||||
|
this.$refs.table.refresh();
|
||||||
},
|
},
|
||||||
|
|
||||||
//搜索
|
//搜索
|
||||||
|
|
|
||||||
|
|
@ -262,7 +262,7 @@ export default {
|
||||||
},
|
},
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
this.$API.ecm.event.handle.req(this.form.id, this.form).then((res) => {
|
this.$API.ecm.event.handle.req(this.form.id, this.form).then((res) => {
|
||||||
this.$router.go(-1);
|
this.$emit("success");
|
||||||
this.$message.success("操作成功");
|
this.$message.success("操作成功");
|
||||||
return res;
|
return res;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -192,6 +192,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleSuccess(){
|
handleSuccess(){
|
||||||
|
this.$refs.table.refresh();
|
||||||
this.dialog.handle = false
|
this.dialog.handle = false
|
||||||
},
|
},
|
||||||
//搜索
|
//搜索
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue