修复解锁礼物回显问题

This commit is contained in:
liaozetao
2024-01-30 14:44:22 +08:00
parent c125c1ad54
commit 1ca7f92c07

View File

@@ -744,7 +744,6 @@ export default {
}, },
created() { created() {
this.$nextTick(function () { this.$nextTick(function () {
this.giftUnlockList();
this.levelList(); this.levelList();
this.initData(); this.initData();
}); });
@@ -865,7 +864,7 @@ export default {
value: e.giftId, value: e.giftId,
}; };
}); });
ComboboxHelper.build(lockGifts, '#baseGiftId', null); ComboboxHelper.build(lockGifts, '#baseGiftId', this.gift.baseGiftId);
}); });
}, },
levelList() { levelList() {
@@ -1207,6 +1206,9 @@ export default {
$('#bannerSkipUrl').val(''); $('#bannerSkipUrl').val('');
$('#sendDressIdBak').val(''); $('#sendDressIdBak').val('');
$('#receiveDressIdBak').val(''); $('#receiveDressIdBak').val('');
setTimeout(() => {
$this.giftUnlockList();
}, 1000);
$("#giftModal").modal('show'); $("#giftModal").modal('show');
}); });
$("#gift-version-save").click(function () { $("#gift-version-save").click(function () {
@@ -1461,6 +1463,7 @@ export default {
$this.gift.giftType = entity.giftType; $this.gift.giftType = entity.giftType;
$this.gift.subGiftType = entity.subGiftType; $this.gift.subGiftType = entity.subGiftType;
$this.gift.baseGiftId = entity.baseGiftId; $this.gift.baseGiftId = entity.baseGiftId;
$this.gift.unlockNum = entity.unlockNum;
$this.gift.sendDressType = entity.sendDressType; $this.gift.sendDressType = entity.sendDressType;
$this.gift.sendDressId = entity.sendDressId; $this.gift.sendDressId = entity.sendDressId;
$this.gift.sendDressTime = entity.sendDressTime; $this.gift.sendDressTime = entity.sendDressTime;
@@ -1588,17 +1591,21 @@ export default {
$('#bannerSkipUrl').val(entity.bannerSkipUrl); $('#bannerSkipUrl').val(entity.bannerSkipUrl);
$('#sendDressIdBak').val(entity.sendDressId); $('#sendDressIdBak').val(entity.sendDressId);
$('#receiveDressIdBak').val(entity.receiveDressId); $('#receiveDressIdBak').val(entity.receiveDressId);
// 打开编辑弹窗 if (entity.giftType == 17) {
$("#giftModal").modal('show');
if (entity.giftType == 16) {
$('#giftType').attr('disabled', 'disabled');
$('#subGiftType').attr('disabled', 'disabled');
$('#baseGiftId').attr('disabled', 'disabled');
$('#unlockNum').attr('disabled', 'disabled');
} else if (entity.giftType == 17) {
$this.changeDressType('send'); $this.changeDressType('send');
$this.changeDressType('receive'); $this.changeDressType('receive');
} }
setTimeout(() => {
if (entity.giftType == 16) {
$('#giftType').attr('disabled', 'disabled');
$('#subGiftType').attr('disabled', 'disabled');
$('#baseGiftId').attr('disabled', 'disabled');
$('#unlockNum').attr('disabled', 'disabled');
}
$this.giftUnlockList();
}, 1000);
// 打开编辑弹窗
$("#giftModal").modal('show');
} else { } else {
$("#tipMsg").text("获取菜单信息出错"); $("#tipMsg").text("获取菜单信息出错");
$("#tipModal").modal('show'); $("#tipModal").modal('show');