From 479b17687c6f34215ca4992aa3ea231173a79fcf Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Sat, 20 Jan 2024 19:02:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=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 | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/views/users/GiftManageView.vue b/src/views/users/GiftManageView.vue index 2c1ab1c..00a3a28 100644 --- a/src/views/users/GiftManageView.vue +++ b/src/views/users/GiftManageView.vue @@ -1087,6 +1087,44 @@ export default { autoclose: true, }); $("#table").on("click", '.opt-edit', function () { + $('#picUrl').val(''); + $('#picImage').attr("src", ''); + $("#picImgInfo").html(''); + $("#picUploadFile").val(''); + $('#vggUrl').val(''); + $("#vggUploadFile").val(''); + $('#vggImage').attr("src", ''); + $("#vggImgInfo").html(''); + $("#svgaUploadFile").val(''); + $('#luckyGiftSvgaUrl').val(''); + $('#svgaImgInfo').html(''); + $('#giftExplainUrl').val(''); + $("#seqNo").val(''); + $("#giftId").val(''); + $('#viewUploadFile').val(''); + $('#viewUrl').attr(''); + $('#viewFile').attr("src", ''); + $("#viewFileInfo").html(''); + $("#startValidTime").val(''); + $("#endValidTime").val(''); + // $("#giftName").attr('readonly', false); + // $("#goldPrice").attr('readonly', false); + $("#nobleId").btComboBox('disable'); + ComboboxHelper.setDef("#nobleId", '0'); + ComboboxHelper.setDef("#giftType", '2'); + $("input:radio[name='giftStatus']")[0].checked = true; + $("input:radio[name='hasEffect']")[0].checked = true; + $("input:radio[name='hasVggPic']")[0].checked = true; + $("input:radio[name='hasSvga']")[0].checked = true; + $("input:radio[name='isLatest']")[0].checked = true; + $("input:radio[name='isTimeLimit']")[0].checked = true; + $("input:radio[name='roomExclude']")[0].checked = true; + $("#notifyStaySecond").val(''); + $("#isSkipRoom").val(''); + $("#isSendMsg").val(''); + $("#consumeType").removeAttr("disabled"); + window.selectConsumeChange($("#consumeType")); + $('#roomExcludeId').val(''); console.log("btnEdit"); var id = $(this).attr("data-id"); $.ajax({ @@ -1186,6 +1224,7 @@ export default { $("#svgaImgInfo").html('未上传'); } // 设置其他视图文件效果图片 + $('#viewUploadFile').val(json.entity.viewUrl); $('#otherViewType').val(json.entity.otherViewType); $('#viewUrl').val(json.entity.viewUrl); $('#viewFile').attr("src", json.entity.viewUrl);