修复新增选项问题
This commit is contained in:
@@ -212,6 +212,7 @@
|
|||||||
<label for="baseGiftId" class="col-sm-3 control-label">需要的基础解锁礼物</label>
|
<label for="baseGiftId" class="col-sm-3 control-label">需要的基础解锁礼物</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="baseGiftId" id="baseGiftId" data-btn-class="btn-warning" class="form-control" v-model="gift.baseGiftId">
|
<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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -691,6 +692,7 @@ export default {
|
|||||||
name: "GiftManageView",
|
name: "GiftManageView",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
unlockList: [],
|
||||||
giftLevel: [],
|
giftLevel: [],
|
||||||
gift: {
|
gift: {
|
||||||
giftId: null,
|
giftId: null,
|
||||||
@@ -744,6 +746,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
|
this.giftUnlockList();
|
||||||
this.levelList();
|
this.levelList();
|
||||||
this.initData();
|
this.initData();
|
||||||
});
|
});
|
||||||
@@ -864,7 +867,7 @@ export default {
|
|||||||
value: e.giftId,
|
value: e.giftId,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
ComboboxHelper.build(lockGifts, '#baseGiftId', this.gift.baseGiftId);
|
this.unlockList = lockGifts;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
levelList() {
|
levelList() {
|
||||||
|
Reference in New Issue
Block a user