修復等級重複問題
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user