只有修改时,才触发接口
This commit is contained in:
parent
3743974f43
commit
8a152e8cea
|
|
@ -418,10 +418,10 @@ export default {
|
||||||
data: postdata,
|
data: postdata,
|
||||||
useBigInt: true,
|
useBigInt: true,
|
||||||
}).then(() => { // 成功回调
|
}).then(() => { // 成功回调
|
||||||
|
if(this.isEdit){
|
||||||
let insertList = [];
|
let insertList = [];
|
||||||
let updateList = [];
|
let updateList = [];
|
||||||
let deleteList = this.deleteList;
|
let deleteList = this.deleteList;
|
||||||
|
|
||||||
this.soilQualityMaterialAliasList.forEach(item => {
|
this.soilQualityMaterialAliasList.forEach(item => {
|
||||||
item.customer_id = this.$mk.toBigInt(item.customer_id);
|
item.customer_id = this.$mk.toBigInt(item.customer_id);
|
||||||
item.price = Number(item.price);
|
item.price = Number(item.price);
|
||||||
|
|
@ -438,6 +438,8 @@ export default {
|
||||||
useBigInt: true,
|
useBigInt: true,
|
||||||
}).then(() => { // 成功回调
|
}).then(() => { // 成功回调
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
this.$mk.success("保存成功");
|
this.$mk.success("保存成功");
|
||||||
if (!this.isEdit) { // 如果是新增模式,关闭当前页面
|
if (!this.isEdit) { // 如果是新增模式,关闭当前页面
|
||||||
this.back();
|
this.back();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue