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);