Jelajahi Sumber

细节处理

zhulizhen 5 tahun lalu
induk
melakukan
a082629b16

+ 3 - 1
src/components/todayStrategy.vue

@@ -13,7 +13,7 @@
       prop="pushTime"
       label="策略推送时间"
       >
-       <template slot-scope='{row}'>{{row.pushTime?row.pushTime.slice(8,10)+":"+row.pushTime.slice(10,12) : '--'}}</template>
+       <template slot-scope='{row}'>{{row.pushTime?timestamp2String(row.pushTime).slice(8,10)+":"+timestamp2String(row.pushTime).slice(10,12) : '--'}}</template>
     </el-table-column>
     <el-table-column
       prop="executeTime"
@@ -81,9 +81,11 @@
 
 <script>
 import { updateCommand } from "@/api/strategy/strategy.js";
+import {timestamp2String} from '@/utils/helper.js'
 export default {
     data() {
         return {
+           timestamp2String,
            dialogVisible:false,
            remarks:'',
            row:""

+ 3 - 3
src/views/evaluate/evIndoorTemperature.vue

@@ -162,19 +162,19 @@ export default {
           {
             name: "按照策略执行",
             type: "bar",
-            barWidth: 30,
+            barWidth: 38,
             data: this.strategy1
           },
           {
             name: "未按照策略执行",
             type: "bar",
-            barWidth: 30,
+            barWidth: 38,
             data: this.strategy2
           },
           {
             name: "未按照策略执行,申诉通过",
             type: "bar",
-            barWidth: 30,
+            barWidth: 38,
             data: this.strategy3
           },
           {

+ 3 - 1
src/views/strategy/bomBox.vue

@@ -7,7 +7,7 @@
       <div class="bomb-left1">当前策略</div>
       <div
         class="bomb-left2"
-      >应执行时间 {{data.executeTime?(data.executeTime.slice(8,10)+":"+ data.executeTime.slice(10,12)):'--'}} - {{data.pushTime?(data.pushTime.slice(8,10)+":"+data.pushTime.slice(10,12)): '--'}}</div>
+      >应执行时间 {{data.executeTime?(data.executeTime.slice(8,10)+":"+ data.executeTime.slice(10,12)):'--'}} - {{data.pushTime?timestamp2String(data.pushTime).slice(8,10)+":"+timestamp2String(data.pushTime).slice(10,12): '--'}}</div>
       <div class="bomb-left3">策略可靠度</div>
       <div id="circleEcharts" style="width:104px;height:104px"></div>
     </div>
@@ -50,9 +50,11 @@
 import echarts from "echarts";
 import waterUnit from "./waterUnit";
 import { updateCommand } from "@/api/strategy/strategy.js";
+import {timestamp2String} from '@/utils/helper.js'
 export default {
   data() {
     return {
+      timestamp2String,
       circle1: 0,
       circle2: 0,
       remarks: ""