guoyujia 1 年之前
父节点
当前提交
ba85e368f2
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/views/business/daywork/index.vue

+ 6 - 4
src/views/business/daywork/index.vue

@@ -225,7 +225,7 @@
             >
               <template #default="scope">
                 <el-button
-                  v-if="
+                  v-show="
                     scope.row.deptProcessStatus &&
                     (scope.row.status == 2 || scope.row.status == 3) &&
                     scope.row.processId == latestProcessId
@@ -237,7 +237,9 @@
                   >编辑
                 </el-button>
                 <el-button
-                  v-else
+                  v-show="!(scope.row.deptProcessStatus &&
+                    (scope.row.status == 2 || scope.row.status == 3) &&
+                    scope.row.processId == latestProcessId)"
                   link
                   type="primary"
                   icon="View"
@@ -245,12 +247,12 @@
                   >查看
                 </el-button>	
                 <el-button
-                v-hasPermi="['business:daywork:remove']"
-                  v-if="
+                  v-show="
                     scope.row.deptProcessStatus &&
                     (scope.row.status == 2 || scope.row.status == 3) &&
                     scope.row.processId == latestProcessId
                   "
+                  v-hasPermi="['business:daywork:remove']"
                   link
                   type="danger"
                   icon="Delete"