xiaofei 1 年之前
父节点
当前提交
1adbb3e966
共有 1 个文件被更改,包括 13 次插入2 次删除
  1. 13 2
      src/modules/print/views/PrintTaskManage.vue

+ 13 - 2
src/modules/print/views/PrintTaskManage.vue

@@ -317,14 +317,25 @@
         >
         >
           <template slot-scope="scope">
           <template slot-scope="scope">
             <el-button
             <el-button
-              v-if="checkPrivilege('link', 'download')"
+              v-if="
+                checkPrivilege('link', 'download') &&
+                (scope.row.status === 'READY' ||
+                  scope.row.status === 'WAITING' ||
+                  scope.row.status === 'PRINTING' ||
+                  scope.row.status === 'FINISH' ||
+                  scope.row.status === 'CANCEL')
+              "
               class="btn-primary"
               class="btn-primary"
               type="text"
               type="text"
               @click="toViewPdf(scope.row)"
               @click="toViewPdf(scope.row)"
               >查看pdf</el-button
               >查看pdf</el-button
             >
             >
             <el-button
             <el-button
-              v-if="scope.row.taskId && checkPrivilege('link', 'createpdf')"
+              v-if="
+                scope.row.taskId &&
+                checkPrivilege('link', 'createpdf') &&
+                (scope.row.status === 'READY' || scope.row.status === 'CANCEL')
+              "
               class="btn-primary"
               class="btn-primary"
               type="text"
               type="text"
               @click="toRebuildPdf(scope.row)"
               @click="toRebuildPdf(scope.row)"