Browse Source

fix🐛: 修复关闭中的job能够启动问题(#638)

zhangwenjian 3 years ago
parent
commit
eb9bc39ae2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/schedule/index.vue

+ 2 - 2
src/views/schedule/index.vue

@@ -156,7 +156,7 @@
                 >修改
                 </el-button>
                 <el-button
-                  v-if="scope.row.entry_id!==0"
+                  v-if="scope.row.entry_id!==0&& scope.row.status!=1"
                   v-permisaction="['job:sysJob:remove']"
                   size="mini"
                   type="text"
@@ -165,7 +165,7 @@
                 >停止
                 </el-button>
                 <el-button
-                  v-if="scope.row.entry_id==0"
+                  v-if="scope.row.entry_id==0 && scope.row.status!=1"
                   v-permisaction="['job:sysJob:start']"
                   size="mini"
                   type="text"