From ed5b545d2c343c6c910924f3da19d35a7440e504 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Tue, 30 Jan 2024 18:49:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/users/GiftManageView.vue | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/views/users/GiftManageView.vue b/src/views/users/GiftManageView.vue index ad0bf35..0488a3e 100644 --- a/src/views/users/GiftManageView.vue +++ b/src/views/users/GiftManageView.vue @@ -201,7 +201,7 @@
- @@ -211,8 +211,8 @@
- +
@@ -692,7 +692,6 @@ export default { name: "GiftManageView", data() { return { - unlockList: [], giftLevel: [], gift: { giftId: null, @@ -861,13 +860,15 @@ export default { giftUnlockList() { getGiftUnlockList().then(res => { let data = res.data; - let lockGifts = data.map(e => { + let options = data.map(e => { return { text: e.giftName, value: e.giftId, }; }); - this.unlockList = lockGifts; + setTimeout(() => { + ComboboxHelper.build(options, '#baseGiftId', this.gift.baseGiftId); + }, 500); }); }, levelList() { @@ -1192,6 +1193,10 @@ export default { window.selectConsumeChange($("#consumeType")); $('#roomExcludeId').val(''); $('#giftLevel').val(''); + $('#giftTag').val(''); + $('#giftTagImage').attr("src", ''); + $("#giftTagUploadInfo").html(''); + $("#giftTagFile").val(''); $('#giftType').removeAttr('disabled'); $('#subGiftType').removeAttr('disabled'); $('#baseGiftId').removeAttr('disabled'); @@ -1209,9 +1214,7 @@ export default { $('#bannerSkipUrl').val(''); $('#sendDressIdBak').val(''); $('#receiveDressIdBak').val(''); - setTimeout(() => { - $this.giftUnlockList(); - }, 1000); + $this.giftUnlockList(); $("#giftModal").modal('show'); }); $("#gift-version-save").click(function () { @@ -1605,8 +1608,8 @@ export default { $('#baseGiftId').attr('disabled', 'disabled'); $('#unlockNum').attr('disabled', 'disabled'); } - $this.giftUnlockList(); }, 1000); + $this.giftUnlockList(); // 打开编辑弹窗 $("#giftModal").modal('show'); } else { @@ -1672,7 +1675,7 @@ export default { $("#tipModal").modal('show'); TableHelper.doRefresh("#table"); } else { - $("#tipMsg").text("保存失败." + json.msg); + $("#tipMsg").text("保存失败." + json.message); $("#tipModal").modal('show'); } }