修复保存接口先后顺序

This commit is contained in:
Dragon
2024-03-22 10:06:57 +08:00
parent af112d5278
commit 1841157b67

View File

@@ -419,7 +419,7 @@ export default {
if (this.dialogBool) {
if (this.dialog.value1 == 1) {
obj = {
rewardType: this.dialog.value1,
rewardType: this.dialog.value1 == "钻石" || this.dialog.value1 == 1 ? 1 : 2,
rewardValue: this.dialog.diamond,
rewardRate: this.dialog.gitChance,
showRate: this.dialog.showChance,
@@ -429,7 +429,7 @@ export default {
};
} else {
obj = {
rewardType: this.dialog.value1,
rewardType: this.dialog.value1 == "钻石" || this.dialog.value1 == 1 ? 1 : 2,
rewardValue: this.dialog.gifts2[this.dialog.value2].giftId,
rewardRate: this.dialog.gitChance,
showRate: this.dialog.showChance,
@@ -483,16 +483,16 @@ export default {
});
}
this.detailsDialog = false;
luckyGiftRewardList({
giftId: this.inquire.value1,
rangeId: this.inquire.value2,
}).then((res) => {
this.inquire.diamond = res.data.giftPrice;
this.inquire.giftExpectation = res.data.expectValue;
this.tableData = res.data.list;
this.loading = false;
});
});
luckyGiftRewardList({
giftId: this.inquire.value1,
rangeId: this.inquire.value2,
}).then((res) => {
this.inquire.diamond = res.data.giftPrice;
this.inquire.giftExpectation = res.data.expectValue;
this.tableData = res.data.list;
this.loading = false;
});
},
//删除
del(val) {