zhaomiao 4 years ago
parent
commit
ee2901796a

+ 2 - 2
src/views/BorderBenchmark/InternationalBenchmark.vue

@@ -535,8 +535,8 @@ export default {
     },
     Inquire_tableDate() {
       var newData = new Date();
-       this.timedate[0] = formateDate1((newData.getTime()-86400000)/1000);
-       this.timedate[1] = formateDate1(newData.getTime()/1000);
+       this.timedate[0] = formateDate1(newData.getTime()/1000);
+       this.timedate[1] = formateDate(newData.getTime()/1000);
       let that = this;
       this.$http.get("/powercompare/windfarmAjax").then((res) => {
         that.FClist = res.data.data;

+ 2 - 2
src/views/BorderBenchmark/YardBenchmark.vue

@@ -505,8 +505,8 @@ export default {
     },
     query_fc() {
        var newData = new Date();
-       this.beginDate = formateDate1((newData.getTime()-86400000)/1000);
-       this.endDate = formateDate1(newData.getTime()/1000);
+       this.beginDate = formateDate1(newData.getTime()/1000);
+       this.endDate = formateDate(newData.getTime()/1000);
       this.$http.get("powercompare/windfarmAjax?").then((res) => {
         this.FClist = res.data.data;
       });

+ 2 - 2
src/views/NormRanking/GoodnessfitRank.vue

@@ -162,8 +162,8 @@ export default {
   methods: {
     query_fc() {
        var newData = new Date();
-       this.beginDate = formateDate1((newData.getTime()-86400000)/1000);
-       this.endDate = formateDate1(newData.getTime()/1000);
+       this.beginDate = formateDate1(newData.getTime()/1000);
+       this.endDate = formateDate(newData.getTime()/1000);
        this.$http.get("powercompare/windfarmAjax?").then((res) => {
        this.FClist = res.data.data;
       });

+ 2 - 2
src/views/NormRanking/Grossgeneration_Rank.vue

@@ -195,8 +195,8 @@ export default {
     },
     query_fc() {
        var newData = new Date();
-       this.beginDate = formateDate1((newData.getTime()-86400000)/1000);
-       this.endDate = formateDate1(newData.getTime()/1000);
+       this.beginDate = formateDate1(newData.getTime()/1000);
+       this.endDate = formateDate(newData.getTime()/1000);
       let that = this;
       let fjj="";
       this.$http.get("powercompare/windfarmAllAjax?").then((res) => {

+ 2 - 2
src/views/NormRanking/PercentageLossrRank.vue

@@ -235,8 +235,8 @@ export default {
   },
   mounted() {
     var newData = new Date();
-    this.beginDate = formateDate1((newData.getTime()-86400000)/1000);
-    this.endDate = formateDate1(newData.getTime()/1000);
+    this.beginDate = formateDate1(newData.getTime()/1000);
+    this.endDate = formateDate(newData.getTime()/1000);
     this.query_fc();
     this.query_table();
   },

+ 2 - 2
src/views/Performance/PerformanceList.vue

@@ -543,8 +543,8 @@ export default {
     onSubmit() {},
     query_wpid() {
        var newData = new Date();
-       this.beginDate = formateDate1((newData.getTime()-86400000)/1000);
-       this.endDate = formateDate1(newData.getTime()/1000);
+       this.beginDate = formateDate1(newData.getTime()/1000);
+       this.endDate = formateDate(newData.getTime()/1000);
        this.$http.get("powercompare/windfarmAjax?").then((res) => {
        this.wpIdslist = res.data.data;
       });

+ 2 - 2
src/views/ProjectBenchmark/ProjectBenchmark.vue

@@ -417,8 +417,8 @@ export default {
     },
     query_wpid() {
       var newData = new Date();
-       this.timedate[0] = formateDate1((newData.getTime()-86400000)/1000);
-       this.timedate[1] = formateDate1(newData.getTime()/1000);
+       this.timedate[0] = formateDate1(newData.getTime()/1000);
+       this.timedate[1] = formateDate(newData.getTime()/1000);
       this.$http.get("powercompare/windfarmAjax?").then((res) => {
         this.wpIdslist = res.data.data;
         

+ 2 - 2
src/views/PropertyBenchnark/PropertBenchmark.vue

@@ -704,8 +704,8 @@ export default {
     },
     FiveLossInformation() {
       var newData = new Date();
-       this.timedate[0] = formateDate1((newData.getTime()-86400000)/1000);
-       this.timedate[1] = formateDate1(newData.getTime()/1000);
+       this.timedate[0] = formateDate1(newData.getTime()/1000);
+       this.timedate[1] = formateDate(newData.getTime()/1000);
       let that = this;
       this.$http.get("/powercompare/windfarmAjax").then((res) => {
         that.options = res.data.data;