liukangdong
2024-07-30 1a6905045d38bb50b0c6554c3440bdfd339c8d23
wechat_staff/components/disCase/index.js
@@ -24,6 +24,7 @@
  },
  attached() {
    this.getCatelist()
    this.getList()
  },
  methods: {
    getCatelist(){
@@ -35,9 +36,6 @@
          this.setData({
            cateList: res.data
          })
          setTimeout(() => {
            this.getList()
          }, 300)
        }
      })
    },
@@ -45,7 +43,6 @@
      if(this.data.isLoading){
        return
      }
      this.setData({isLoading:true})
      const { sortType, query, tagCodes, pageNum, pageSize,catalogCode } = this.data
      getZhongTaiWholecasePage({
@@ -101,11 +98,10 @@
        return
      } 
      const code = e.currentTarget.dataset.code
      const paramIndex = e.currentTarget.dataset.index
      const paramIndex = e.currentTarget.dataset.index
      const { cateList, tagCodes, activeParam, activeIndex } = this.data
      const index = tagCodes.indexOf(code)
      if(index === -1){
      const index = tagCodes.indexOf(code)
      if( cateList[activeIndex].tempParamIndex==null ||     cateList[activeIndex].tempParamIndex != paramIndex){
        cateList[activeIndex].tempParamIndex = paramIndex
        cateList[activeIndex].tempParamName = activeParam[paramIndex].labelValueName
        cateList[activeIndex].tempParamCode = code