修复上传组件问题
This commit is contained in:
@@ -1087,6 +1087,44 @@ export default {
|
|||||||
autoclose: true,
|
autoclose: true,
|
||||||
});
|
});
|
||||||
$("#table").on("click", '.opt-edit', function () {
|
$("#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");
|
console.log("btnEdit");
|
||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -1186,6 +1224,7 @@ export default {
|
|||||||
$("#svgaImgInfo").html('未上传');
|
$("#svgaImgInfo").html('未上传');
|
||||||
}
|
}
|
||||||
// 设置其他视图文件效果图片
|
// 设置其他视图文件效果图片
|
||||||
|
$('#viewUploadFile').val(json.entity.viewUrl);
|
||||||
$('#otherViewType').val(json.entity.otherViewType);
|
$('#otherViewType').val(json.entity.otherViewType);
|
||||||
$('#viewUrl').val(json.entity.viewUrl);
|
$('#viewUrl').val(json.entity.viewUrl);
|
||||||
$('#viewFile').attr("src", json.entity.viewUrl);
|
$('#viewFile').attr("src", json.entity.viewUrl);
|
||||||
|
Reference in New Issue
Block a user