From 1ca7f92c07f18481db7cbe6d3074e1071991500a Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Tue, 30 Jan 2024 14:44:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A7=A3=E9=94=81=E7=A4=BC?= =?UTF-8?q?=E7=89=A9=E5=9B=9E=E6=98=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/users/GiftManageView.vue | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/views/users/GiftManageView.vue b/src/views/users/GiftManageView.vue index d7aadf8..db24e3f 100644 --- a/src/views/users/GiftManageView.vue +++ b/src/views/users/GiftManageView.vue @@ -744,7 +744,6 @@ export default { }, created() { this.$nextTick(function () { - this.giftUnlockList(); this.levelList(); this.initData(); }); @@ -865,7 +864,7 @@ export default { value: e.giftId, }; }); - ComboboxHelper.build(lockGifts, '#baseGiftId', null); + ComboboxHelper.build(lockGifts, '#baseGiftId', this.gift.baseGiftId); }); }, levelList() { @@ -1207,6 +1206,9 @@ export default { $('#bannerSkipUrl').val(''); $('#sendDressIdBak').val(''); $('#receiveDressIdBak').val(''); + setTimeout(() => { + $this.giftUnlockList(); + }, 1000); $("#giftModal").modal('show'); }); $("#gift-version-save").click(function () { @@ -1461,6 +1463,7 @@ export default { $this.gift.giftType = entity.giftType; $this.gift.subGiftType = entity.subGiftType; $this.gift.baseGiftId = entity.baseGiftId; + $this.gift.unlockNum = entity.unlockNum; $this.gift.sendDressType = entity.sendDressType; $this.gift.sendDressId = entity.sendDressId; $this.gift.sendDressTime = entity.sendDressTime; @@ -1588,17 +1591,21 @@ export default { $('#bannerSkipUrl').val(entity.bannerSkipUrl); $('#sendDressIdBak').val(entity.sendDressId); $('#receiveDressIdBak').val(entity.receiveDressId); - // 打开编辑弹窗 - $("#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) { + if (entity.giftType == 17) { $this.changeDressType('send'); $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 { $("#tipMsg").text("获取菜单信息出错"); $("#tipModal").modal('show');