From 1a6905045d38bb50b0c6554c3440bdfd339c8d23 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 30 七月 2024 19:13:46 +0800
Subject: [PATCH] ‘’
---
wechat_staff/components/disCase/index.js | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/wechat_staff/components/disCase/index.js b/wechat_staff/components/disCase/index.js
index 5c4fd11..5ae4532 100644
--- a/wechat_staff/components/disCase/index.js
+++ b/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
--
Gitblit v1.9.3