只有修改时,才触发接口

This commit is contained in:
ljx 2024-06-03 16:44:29 +08:00
parent 3743974f43
commit 8a152e8cea
1 changed files with 21 additions and 19 deletions

View File

@ -418,10 +418,10 @@ export default {
data: postdata,
useBigInt: true,
}).then(() => { //
if(this.isEdit){
let insertList = [];
let updateList = [];
let deleteList = this.deleteList;
this.soilQualityMaterialAliasList.forEach(item => {
item.customer_id = this.$mk.toBigInt(item.customer_id);
item.price = Number(item.price);
@ -438,6 +438,8 @@ export default {
useBigInt: true,
}).then(() => { //
})
}
this.$mk.success("保存成功");
if (!this.isEdit) { //
this.back();