循环拼接路径
作者:
李小白呀 | 来源:发表于
2021-05-17 16:16 被阅读0次 async zpPlanLists() {
const { data: res } = await zpPlanList(this.zpPlanList)
this.swiperList = res.data
// console.log(res.data)
if (this.swiperList !== null) {
//循环拼接路径
this.swiperList.forEach((item) => {
item.bgImage = changeFileViewUrl(item.bgImage)
//循环判断
if (item.planStatus === '0') {
item.planStatus = '编辑中'
} else if (item.planStatus === '1') {
item.planStatus = '审批中'
} else if (item.planStatus === '2') {
item.planStatus = '发布中'
} else if (item.planStatus === '3') {
item.planStatus = '处理中'
} else {
item.planStatus = '招聘结束'
}
})
}
}
本文标题:循环拼接路径
本文链接:https://www.haomeiwen.com/subject/muvjjltx.html
网友评论