|
@@ -344,7 +344,7 @@ export default {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.glbtxmList = this.dataReplacement(this.glbtxmList, this.form.id, formData);
|
|
|
- // this.getList();
|
|
|
+ this.getList();
|
|
|
}).finally(() => this.submitFormLoading = false);
|
|
|
} else {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
@@ -356,13 +356,13 @@ export default {
|
|
|
addGlbtxm(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
- // this.getList();
|
|
|
/****** sks 需要改动的地方 start ******/
|
|
|
if (this.queryParams.pageSize === this.glbtxmList.length) {
|
|
|
this.glbtxmList.pop();
|
|
|
}
|
|
|
this.glbtxmList.unshift({ ...this.form, id: response.data });
|
|
|
this.total++;
|
|
|
+ this.getList();
|
|
|
/****** sks 需要改动的地方 end ******/
|
|
|
}).finally(() => this.submitFormLoading = false);
|
|
|
}
|