Ver código fonte

添加已执行

zhulizhen1111 5 anos atrás
pai
commit
fd039ada2f
2 arquivos alterados com 12 adições e 2 exclusões
  1. 1 1
      src/components/strategyLine.vue
  2. 11 1
      src/views/strategy/bomBox.vue

+ 1 - 1
src/components/strategyLine.vue

@@ -18,7 +18,7 @@
                 预测冷量
             </div>
 
-            <div style='width:100%;height:350px;margin-right:24px;'>
+            <div style='width:90%;height:350px;margin-right:24px;'>
                 <div id='RightLine' style='width:100%;height:100%;'></div>
             </div>
         </div>

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

@@ -5,7 +5,7 @@
             <img src='../../assets/close.png' alt />
         </div>
         <div class='bomb-left'>
-            <div class='bomb-left1'>当前策略</div>
+            <div class='bomb-left1'>当前策略 <span v-if="data.isExecuted" class="excute">已执行</span></div>
             <div class='bomb-left2'>
                 应执行时间
                 <span v-if='data.onTime'>{{data.onTime?data.onTime.slice(0,2)+":"+data.onTime.slice(2,4):"--"}}</span>
@@ -164,6 +164,16 @@ export default {
             padding-left: 30px;
             font-size: 16px;
             margin: 0px 0 20px 0;
+            .excute{
+                width:58px;
+                height:24px;
+                background:rgba(217,245,214,1);
+                border-radius:2px;
+                font-size:14px;
+                font-family:MicrosoftYaHei;
+                color:rgba(35,123,25,1);
+                padding: 2px 6px;
+            }
         }
         .bomb-left2 {
             padding-left: 30px;