Browse Source

Merge branch 'bug-fix_3291'

hbchen 1 year ago
parent
commit
6317656d6e

+ 1 - 1
src/api/modules/dataApi.js

@@ -199,7 +199,7 @@ const dataInterence = {
 		return http.get('/entry/data/ine',params)
 	},
 
-	// 获取研究所分类 Exchange
+	// 获取研究所分类 Exchange DataTime
 	/* 	cffex 中金所
 		shanghai 上期所
 		ine 上海能源交易所

+ 8 - 3
src/views/dataEntry_manage/thirdBase/dlExchangeData.vue

@@ -128,7 +128,8 @@ export default {
 
         // 时间切换
         handleTimeChange(){
-            this.getData();
+            // this.getData();
+            this.getClassifyList()
         },
 
         // 计算合计
@@ -143,11 +144,15 @@ export default {
         // 获取分类
         async getClassifyList(){
             const res=await dataInterence.getResearcherClassifyList({
-                Exchange:'dalian'
+                Exchange:'dalian',
+                DataTime:this.time
             })
             if(res.Ret===200){
                 this.typeList=res.Data&&res.Data[0]||[]
-                this.time=res.Data&&res.Data[1][0]||''
+                if(!this.time){
+                    // 第一次取 后端返回的最新日期
+                    this.time=res.Data&&res.Data[1][0]||''
+                }
                 this.type=this.typeList[0]
                 this.getNumList()
             }