Browse Source

取默认日调整

xiaost 2 years ago
parent
commit
6e826a74d3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/echart/bottom/bottomRightChart/index.vue

+ 2 - 1
src/components/echart/bottom/bottomRightChart/index.vue

@@ -57,7 +57,8 @@ export default {
       this.cdata.year = dateBase.getFullYear();
       this.cdata.year = dateBase.getFullYear();
       this.cdata.nowdate = (dateBase.getMonth() + 1 < 10 ? "0" + (dateBase.getMonth() + 1) : dateBase.getMonth() + 1)
       this.cdata.nowdate = (dateBase.getMonth() + 1 < 10 ? "0" + (dateBase.getMonth() + 1) : dateBase.getMonth() + 1)
                            +"/"
                            +"/"
-                           +(dateBase.getDay() + 1 < 10 ? "0" + (dateBase.getDay() + 1) : dateBase.getDay() + 1);
+                           +(dateBase.getDate()  < 10 ? "0" + (dateBase.getDate()) : dateBase.getDate() );
+      console.log(this.cdata.nowdate);
       //良率直通图
       //良率直通图
       await this.$http.get("kanban/datalist.action?caller=DAYTURNOUT&_noc=1&page=1&pageSize=100&condition=1=1")
       await this.$http.get("kanban/datalist.action?caller=DAYTURNOUT&_noc=1&page=1&pageSize=100&condition=1=1")
               .then((result)=>{
               .then((result)=>{