Browse Source

Merge branch 'master' of http://47.100.37.243:10080/ZHOU/yunsu

5 năm trước cách đây
mục cha
commit
2a83fcd854
1 tập tin đã thay đổi với 10 bổ sung1 xóa
  1. 10 1
      ys_vue/src/views/mold/moldDetail.vue

+ 10 - 1
ys_vue/src/views/mold/moldDetail.vue

@@ -12,7 +12,16 @@
         </el-form-item>
         <el-form-item class="state">
           当前状态:
-          <a style="color: #409EFF; cursor: pointer" @click="toDetection">运行</a>
+          <a
+            style="color: #409EFF; cursor: pointer"
+            @click="toDetection"
+            v-if="moldDetail.state == 0"
+          >静止</a>
+          <a
+            style="color: #409EFF; cursor: pointer"
+            @click="toDetection"
+            v-if="moldDetail.state == 1"
+          >运行</a>
           <span class="tips">(点击查看运行状态)</span>
         </el-form-item>
       </el-form>