修复新增选项问题

This commit is contained in:
liaozetao
2024-01-30 15:05:35 +08:00
parent 2c472f77f2
commit 8a3affa968

View File

@@ -212,6 +212,7 @@
<label for="baseGiftId" class="col-sm-3 control-label">需要的基础解锁礼物</label>
<div class="col-sm-8">
<select name="baseGiftId" id="baseGiftId" data-btn-class="btn-warning" class="form-control" v-model="gift.baseGiftId">
<option v-for="(baseGift, index) in unlockList" :key="baseGift" :data-index="index" :value="baseGift.value">{{ baseGift.text }}</option>
</select>
</div>
</div>
@@ -691,6 +692,7 @@ export default {
name: "GiftManageView",
data() {
return {
unlockList: [],
giftLevel: [],
gift: {
giftId: null,
@@ -744,6 +746,7 @@ export default {
},
created() {
this.$nextTick(function () {
this.giftUnlockList();
this.levelList();
this.initData();
});
@@ -864,7 +867,7 @@ export default {
value: e.giftId,
};
});
ComboboxHelper.build(lockGifts, '#baseGiftId', this.gift.baseGiftId);
this.unlockList = lockGifts;
});
},
levelList() {