修復等級重複問題

This commit is contained in:
liaozetao
2024-01-29 17:25:36 +08:00
parent e7e5008ab4
commit 4da40c0c66

View File

@@ -855,15 +855,12 @@ export default {
levelList() { levelList() {
getGiftLevelList().then(res => { getGiftLevelList().then(res => {
let data = res.data; let data = res.data;
this.giftLevel = [{ this.giftLevel = data.map(e => {
text: '无',
value: ''
}].concat(data.map(e => {
return { return {
text: e.levelName, text: e.levelName,
value: e.levelValue value: e.levelValue
}; };
})); });
buildSelectOption('#giftLevel', '', this.giftLevel); buildSelectOption('#giftLevel', '', this.giftLevel);
buildSelectOption('#searchLevel', '', this.giftLevel); buildSelectOption('#searchLevel', '', this.giftLevel);
}); });