Przeglądaj źródła

模具保养需求

Reiskuchen 5 lat temu
rodzic
commit
249f5eb7de
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      ys_vue/src/views/detection/detection.vue

+ 4 - 1
ys_vue/src/views/detection/detection.vue

@@ -41,7 +41,10 @@
       <el-table-column prop="state" label="当前状态" width="100" sortable></el-table-column>
       <el-table-column label="模具保养" width="100">
         <template slot-scope="scope">
-          <a style="color: #409EFF; cursor: pointer" @click="toMaintenance(scope.row.id)">不需要</a>
+          <a style="color: #409EFF; cursor: pointer" @click="toMaintenance(scope.row.id)">
+            <span v-if="scope.row.runTimes > scope.row.initialModulus">需要</span>
+            <span v-else>不需要</span>
+          </a>
         </template>
       </el-table-column>
     </el-table>