Преглед на файлове

研究员接口格式调整

cxmo преди 8 месеца
родител
ревизия
18ba5c4f65

+ 13 - 6
src/views/roadshow_manage/feedbackList.vue

@@ -185,12 +185,19 @@ export default {
 
 		// 获取研究员列表
     getResearcherList() {
-      roadshowInterence.getResearcherList().then(res=> {
-				if (res.Ret !== 200) return
-
-				this.researcherList = this.formatResearcherList(res.Data);
-
-			});
+        roadshowInterence.getResearcherList().then(res=> {
+            if (res.Ret !== 200) return
+            //this.researcherList = this.formatResearcherList(res.Data);
+            const ficcList = this.formatResearcherList(res.Data.find(i=>i.GroupName==='ficc').ResearcherList||[]);
+            const raiList = this.formatResearcherList(res.Data.find(i=>i.GroupName==='权益').ResearcherList||[]);
+            this.researcherList = [{
+                label:'ficc',
+                ResearcherList:ficcList
+            },{
+                label:'权益',
+                ResearcherList:raiList
+            }]
+            });
     },
 
 		// 对获取到的研究员列表做处理

+ 10 - 1
src/views/roadshow_manage/researcherBusinessTrip.vue

@@ -104,7 +104,16 @@ export default {
       // 发送请求
       const res = await roadshowInterence.getResearcherList();
       if (res.Ret === 200) {
-        this.researcherList = this.formatResearcherList(res.Data);
+        //this.researcherList = this.formatResearcherList(res.Data);
+        const ficcList = this.formatResearcherList(res.Data.find(i=>i.GroupName==='ficc').ResearcherList||[]);
+        const raiList = this.formatResearcherList(res.Data.find(i=>i.GroupName==='权益').ResearcherList||[]);
+        this.researcherList = [{
+            label:'ficc',
+            ResearcherList:ficcList
+        },{
+            label:'权益',
+            ResearcherList:raiList
+        }]
       }
     },
     // 对获取到的研究员列表做处理

+ 10 - 1
src/views/roadshow_manage/statistics/specialSeller.vue

@@ -149,7 +149,16 @@ export default {
       const res = await roadshowInterence.getResearcherList();
       if (res.Ret === 200) {
         // this.researcherList=res.Data
-        this.researcherList = this.formatResearcherList(res.Data);
+        //this.researcherList = this.formatResearcherList(res.Data);
+        const ficcList = this.formatResearcherList(res.Data.find(i=>i.GroupName==='ficc').ResearcherList||[]);
+        const raiList = this.formatResearcherList(res.Data.find(i=>i.GroupName==='权益').ResearcherList||[]);
+        this.researcherList = [{
+            label:'ficc',
+            ResearcherList:ficcList
+        },{
+            label:'权益',
+            ResearcherList:raiList
+        }]
       }
     },
     // 对获取到的研究员列表做处理