修复解锁礼物回显问题
This commit is contained in:
@@ -744,7 +744,6 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
this.giftUnlockList();
|
|
||||||
this.levelList();
|
this.levelList();
|
||||||
this.initData();
|
this.initData();
|
||||||
});
|
});
|
||||||
@@ -865,7 +864,7 @@ export default {
|
|||||||
value: e.giftId,
|
value: e.giftId,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
ComboboxHelper.build(lockGifts, '#baseGiftId', null);
|
ComboboxHelper.build(lockGifts, '#baseGiftId', this.gift.baseGiftId);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
levelList() {
|
levelList() {
|
||||||
@@ -1207,6 +1206,9 @@ export default {
|
|||||||
$('#bannerSkipUrl').val('');
|
$('#bannerSkipUrl').val('');
|
||||||
$('#sendDressIdBak').val('');
|
$('#sendDressIdBak').val('');
|
||||||
$('#receiveDressIdBak').val('');
|
$('#receiveDressIdBak').val('');
|
||||||
|
setTimeout(() => {
|
||||||
|
$this.giftUnlockList();
|
||||||
|
}, 1000);
|
||||||
$("#giftModal").modal('show');
|
$("#giftModal").modal('show');
|
||||||
});
|
});
|
||||||
$("#gift-version-save").click(function () {
|
$("#gift-version-save").click(function () {
|
||||||
@@ -1461,6 +1463,7 @@ export default {
|
|||||||
$this.gift.giftType = entity.giftType;
|
$this.gift.giftType = entity.giftType;
|
||||||
$this.gift.subGiftType = entity.subGiftType;
|
$this.gift.subGiftType = entity.subGiftType;
|
||||||
$this.gift.baseGiftId = entity.baseGiftId;
|
$this.gift.baseGiftId = entity.baseGiftId;
|
||||||
|
$this.gift.unlockNum = entity.unlockNum;
|
||||||
$this.gift.sendDressType = entity.sendDressType;
|
$this.gift.sendDressType = entity.sendDressType;
|
||||||
$this.gift.sendDressId = entity.sendDressId;
|
$this.gift.sendDressId = entity.sendDressId;
|
||||||
$this.gift.sendDressTime = entity.sendDressTime;
|
$this.gift.sendDressTime = entity.sendDressTime;
|
||||||
@@ -1588,17 +1591,21 @@ export default {
|
|||||||
$('#bannerSkipUrl').val(entity.bannerSkipUrl);
|
$('#bannerSkipUrl').val(entity.bannerSkipUrl);
|
||||||
$('#sendDressIdBak').val(entity.sendDressId);
|
$('#sendDressIdBak').val(entity.sendDressId);
|
||||||
$('#receiveDressIdBak').val(entity.receiveDressId);
|
$('#receiveDressIdBak').val(entity.receiveDressId);
|
||||||
// 打开编辑弹窗
|
if (entity.giftType == 17) {
|
||||||
$("#giftModal").modal('show');
|
$this.changeDressType('send');
|
||||||
|
$this.changeDressType('receive');
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
if (entity.giftType == 16) {
|
if (entity.giftType == 16) {
|
||||||
$('#giftType').attr('disabled', 'disabled');
|
$('#giftType').attr('disabled', 'disabled');
|
||||||
$('#subGiftType').attr('disabled', 'disabled');
|
$('#subGiftType').attr('disabled', 'disabled');
|
||||||
$('#baseGiftId').attr('disabled', 'disabled');
|
$('#baseGiftId').attr('disabled', 'disabled');
|
||||||
$('#unlockNum').attr('disabled', 'disabled');
|
$('#unlockNum').attr('disabled', 'disabled');
|
||||||
} else if (entity.giftType == 17) {
|
|
||||||
$this.changeDressType('send');
|
|
||||||
$this.changeDressType('receive');
|
|
||||||
}
|
}
|
||||||
|
$this.giftUnlockList();
|
||||||
|
}, 1000);
|
||||||
|
// 打开编辑弹窗
|
||||||
|
$("#giftModal").modal('show');
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("获取菜单信息出错");
|
$("#tipMsg").text("获取菜单信息出错");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
Reference in New Issue
Block a user