Browse Source

Merge branch 'master' of http://gogs.gisvg.com/YDM/museums-ui

wwj 2 months ago
parent
commit
a8f8c3e4cc
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/views/Home/echarts-data.ts

+ 5 - 4
src/views/Home/echarts-data.ts

@@ -85,11 +85,12 @@ const returnNum = return1.map(return1 => return1.number);
 enterNumber.value = enter[monthNum].number;
 outNumber.value = out[monthNum].number;
 returnNumber.value = return1[monthNum].number;
-enterNumber1.value = enter[monthNum-1].number;
-outNumber1.value = out[monthNum-1].number;
-console.log(out)
+enterNumber1.value = enter[monthNum].number;
+outNumber1.value = out[monthNum].number;
+
+console.log('out',enter,out,return1,outNumber1.value,enterNumber1.value)
 // TODO 这里
-returnNumber1.value = return1[monthNum-1].number;
+returnNumber1.value = return1[monthNum].number;
 
 //月环比
 enterRatio.value = (enterNumber.value-enterNumber1.value)/enterNumber.value*100;