|
@@ -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()
|
|
|
}
|