
getListData() {
const thenCallBack = (res) => {
this.radioId = ''
this.currentRow = {}
this.listData = res.data.list.map((v) => {
v.proImg =
(Array.isArray(v.headerImgs) ? v.headerImgs[0] : '') ||
(Array.isArray(v.planImgList) ? v.planImgList[0] : '')
v.proName = v.goodsName || v.planName
v.proPrice = v.discountPrice || v.planPrice
v.proSales = v.sales || v.planSales
return v
})
this.query.total = Number(res.data.total)
}
if (this.activeName == 0) {
goodsPage({
goodsName: this.query.title,
goodsTypeId: this.query.navTabsId,
seriesId: this.query.slideTabsId,
page: this.query.pageNum,
pageSize: this.query.pageSize,
isDelete: 0,
stewardStatus: 1,
}).then(thenCallBack)
}
if (this.activeName == 1) {
stewardPlanPageList({
planName: this.query.title,
classifyId: this.query.navTabsId,
functionId: this.query.slideTabsId,
page: this.query.pageNum,
pageSize: this.query.pageSize,
source: 0,
isDelete: 0,
}).then(thenCallBack)
}
},