|
|
@ -99,7 +99,7 @@ export default { |
|
|
|
let { curStadium, optionsQuery, curScene, curDate, curType, page } = this; |
|
|
|
let _query = { |
|
|
|
brand_id: optionsQuery.brand_id, |
|
|
|
stadium_id: optionsQuery.stadium_id == 0 ? -1 : curStadium.id, |
|
|
|
stadium_id: curStadium.val || '', |
|
|
|
time_str: curDate, |
|
|
|
scene: curScene.scene, |
|
|
|
type: curType == 1 ? '退款' : '全部', |
|
|
@ -119,8 +119,7 @@ export default { |
|
|
|
this.$nextTick(_=>this.refreshList()); |
|
|
|
}, |
|
|
|
async initPage(options){ |
|
|
|
let _stadiumLs = []; |
|
|
|
if(!!options.stadium_id)_stadiumLs = await this.getStoreList(options.stadium_id); |
|
|
|
let _stadiumLs = await this.getStoreList(options.stadium_id); |
|
|
|
let _sceneLs = await this.getSceneList(); |
|
|
|
this.curDate = util.formatDate({}); |
|
|
|
this.$nextTick(_=>this.refreshList()); |
|
|
@ -132,7 +131,7 @@ export default { |
|
|
|
|
|
|
|
let _query = { |
|
|
|
brand_id: optionsQuery.brand_id, |
|
|
|
stadium_id: optionsQuery.stadium_id == 0 ? -1 : curStadium.id, |
|
|
|
stadium_id: curStadium.val || '', |
|
|
|
time_str: curDate, |
|
|
|
scene: curScene.scene, |
|
|
|
type: curType == 1 ? '退款' : '全部' |
|
|
@ -196,7 +195,7 @@ export default { |
|
|
|
getStoreList(stadium_id = ''){ |
|
|
|
let { optionsQuery } = this; |
|
|
|
return servers.get({ |
|
|
|
url: API.stadiumList, |
|
|
|
url: API.consumeCountStadiumList, |
|
|
|
data: { |
|
|
|
brand_id: optionsQuery.brand_id, |
|
|
|
}, |
|
|
@ -204,18 +203,16 @@ export default { |
|
|
|
|
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
let _list = res.list || []; |
|
|
|
let _all = { name: '全部', id: -2, } |
|
|
|
_list.unshift(_all); |
|
|
|
let _list = res || []; |
|
|
|
let _cur = null; |
|
|
|
if(!!stadium_id){ |
|
|
|
let _fiLs = _list.filter(e=>e.id == stadium_id); |
|
|
|
let _fiLs = _list.filter(e=> +e.val == stadium_id); |
|
|
|
if(_fiLs.length)_cur = _fiLs[0]; |
|
|
|
} |
|
|
|
if(_cur&&_cur.id){ |
|
|
|
if(_cur&&_cur.val){ |
|
|
|
this.curStadium = _cur; |
|
|
|
}else{ |
|
|
|
this.curStadium = _all; |
|
|
|
this.curStadium = _list[0] || {}; |
|
|
|
} |
|
|
|
return this.stadiumList = _list; |
|
|
|
}) |
|
|
|