美文网首页
记录一下循环更改获取到的内容

记录一下循环更改获取到的内容

作者: 李小白呀 | 来源:发表于2021-08-25 15:07 被阅读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/sczsiltx.html