|
@@ -317,14 +317,25 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<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"
|
|
|
type="text"
|
|
|
@click="toViewPdf(scope.row)"
|
|
|
>查看pdf</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"
|
|
|
type="text"
|
|
|
@click="toRebuildPdf(scope.row)"
|