Browse Source

执行时间

lizhuang 5 years ago
parent
commit
aad06b3aa9
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/components/todayStrategy.vue

+ 7 - 3
src/components/todayStrategy.vue

@@ -8,9 +8,13 @@
                 >{{row.pushTime?timestamp2String(row.pushTime).slice(8,10)+":"+timestamp2String(row.pushTime).slice(10,12) : '--'}}</template>
             </el-table-column>
             <el-table-column prop='executeTime' label='策略执行时间' width='105'>
-                <template slot-scope='{row}' v-if="row.onTime">{{row.onTime?row.onTime.slice(0,2)+":"+row.onTime.slice(2,4):"--"}}</template>
-                <template slot-scope='{row}' v-else-if="row.offTime">{{row.offTime?row.offTime.slice(0,2)+":"+row.offTime.slice(2,4):"--"}}</template>
-                <template slot-scope='{row}' v-else>{{row.executeTime?row.executeTime.slice(8,10)+":"+row.executeTime.slice(10,12):"--"}}</template>
+                <template slot-scope='{row}'>
+                    <span v-if="row.onTime">{{row.onTime?row.onTime.slice(0,2)+":"+row.onTime.slice(2,4):"--"}} </span>
+                    <span v-else-if="row.offTime">{{row.offTime?row.offTime.slice(0,2)+":"+row.offTime.slice(2,4):"--"}}</span>
+                    <span v-else>
+                        {{row.executeTime?row.executeTime.slice(8,10)+":"+row.executeTime.slice(10,12):"--"}}
+                    </span>
+                </template>
             </el-table-column>
             <el-table-column prop label='冷水机组开启台数' min-width='85'>
                 <template