Forráskód Böngészése

'转换率修改'

蒋珅 1 éve
szülő
commit
e8dee5ea25
1 módosított fájl, 15 hozzáadás és 15 törlés
  1. 15 15
      src/views/Decision/slgl/ztzhl.vue

+ 15 - 15
src/views/Decision/slgl/ztzhl.vue

@@ -167,10 +167,10 @@ export default {
       that.API.requestData({
         method: "GET",
         baseURL: "http://192.168.1.66:9034/",
-        subUrl: "/api/stats/all?startTs=1682870400000&endTs=1683561600000",
+        subUrl: "/api/stats/all?",
         data:{
-          // beginDate: this.value1,
-          // endDate: this.value2
+          startTs: new Date(this.value1).getTime(),
+          endTs: new Date(this.value2).getTime()
         },
         success(res) {
           console.log(res);
@@ -180,10 +180,10 @@ export default {
             // if (vs == "小于3米风速") {
             that.tableData.data = res.data
            res.data.forEach((ele)=>{
-              ele.rateAll5 = ele.rateAll5.toFixed(2)*100+'%'
-              ele.rateAl20 = ele.rateAl20.toFixed(2)*100+'%'
-              ele.rateAll10 = ele.rateAll10.toFixed(2)*100+'%'
-              ele.rateAll15 = ele.rateAll15.toFixed(2)*100+'%'
+              ele.rateAll5 = (ele.rateAll5*100).toFixed(2)+'%'
+              ele.rateAl20 = (ele.rateAl20*100).toFixed(2)+'%'
+              ele.rateAll10 = (ele.rateAll10*100).toFixed(2)+'%'
+              ele.rateAll15 = (ele.rateAll15*100).toFixed(2)+'%'
             })
 
             // } else if (vs == "大于3米风速") {
@@ -231,14 +231,14 @@ export default {
         return end;
       }
     },
-    handleOpen(vl, index) {
-      this.vshows = "小于3米风速";
-      this.$nextTick(() => {
-        this.cur = index;
-        this.vshows = vl;
-        this.getTable();
-      });
-    }
+    // handleOpen(vl, index) {
+    //   this.vshows = "小于3米风速";
+    //   this.$nextTick(() => {
+    //     this.cur = index;
+    //     this.vshows = vl;
+    //     // this.getTable();
+    //   });
+    // }
   }
 };
 </script>