浏览代码

Merge remote-tracking branch 'origin/master' into github-dev

zhangwenjian 3 年之前
父节点
当前提交
1dafcc53c6
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 0
      scripts/k8s/default.conf
  2. 2 2
      src/views/schedule/index.vue

+ 1 - 0
scripts/k8s/default.conf

@@ -9,6 +9,7 @@ server {
   location / {
       root   /usr/share/nginx/html;
       index  index.html index.htm;
+      try_files $uri $uri/ /index.html;
   }
 
   location /api {

+ 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"