|
|
@ -48,25 +48,40 @@ export default { |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options){ |
|
|
|
/** |
|
|
|
* @param {String} options.brand_id 品牌id |
|
|
|
* @param {String} options.stadium_id 场馆id |
|
|
|
*/ |
|
|
|
async onLoad(options){ |
|
|
|
let _brand_id = options?.brand_id || ''; |
|
|
|
this.brand_id = _brand_id; |
|
|
|
this.getStadiumLs({ brand_id: _brand_id }); |
|
|
|
let _stadiumLs = await this.getStadiumLs({ brand_id: _brand_id }); |
|
|
|
if(options?.stadium_id&&_stadiumLs?.length){ |
|
|
|
// 设置选中场馆 |
|
|
|
let _selected = _stadiumLs.find(ele => +ele.id === +(options?.stadium_id ?? '')); |
|
|
|
if(_selected?.id)this.curStadium = _selected; |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 现场人数 |
|
|
|
toSitePeople(){ |
|
|
|
let { brand_id } = this; |
|
|
|
routeTo(`/subpackage/verification/pages/site_people/index?brand_id=${brand_id}`, 'nT'); |
|
|
|
let { brand_id, curStadium } = this; |
|
|
|
let _qryStr = `brand_id=${brand_id}` |
|
|
|
if(curStadium?.id) _qryStr += `&stadium_id=${curStadium.id}`; |
|
|
|
routeTo(`/subpackage/verification/pages/site_people/index?${_qryStr}`, 'nT'); |
|
|
|
}, |
|
|
|
// 人数异常 |
|
|
|
toAbnormal(){ |
|
|
|
let { brand_id } = this; |
|
|
|
routeTo(`/subpackage/blacklist/pages/abnormal_list/abnormal_list?brand_id=${brand_id}`, 'nT'); |
|
|
|
let { brand_id, curStadium } = this; |
|
|
|
let _qryStr = `brand_id=${brand_id}` |
|
|
|
if(curStadium?.id) _qryStr += `&stadium_id=${curStadium.id}`; |
|
|
|
routeTo(`/subpackage/blacklist/pages/abnormal_list/abnormal_list?${_qryStr}`, 'nT'); |
|
|
|
}, |
|
|
|
toRecord(){ |
|
|
|
let { brand_id } = this; |
|
|
|
routeTo(`/subpackage/verification/pages/record?brand_id=${brand_id}`, 'nT'); |
|
|
|
let { brand_id, curStadium } = this; |
|
|
|
let _qryStr = `brand_id=${brand_id}` |
|
|
|
if(curStadium?.id) _qryStr += `&stadium_id=${curStadium.id}`; |
|
|
|
routeTo(`/subpackage/verification/pages/record?${_qryStr}`, 'nT'); |
|
|
|
}, |
|
|
|
confirmBtn: debounce(function(){ |
|
|
|
let { iptCode } = this; |
|
|
@ -116,8 +131,7 @@ export default { |
|
|
|
let _data = res?.data || {}; |
|
|
|
if(_data.code === 0){ |
|
|
|
let _ls = _data?.data?.list || []; |
|
|
|
this.stadiumList = _ls; |
|
|
|
return _ls; |
|
|
|
return this.stadiumList = _ls; |
|
|
|
}else{ |
|
|
|
return Promise.reject(_data); |
|
|
|
} |
|
|
|