Sfoglia il codice sorgente

研报审批-加两个权限按钮

cxmo 4 mesi fa
parent
commit
a0c10a83a0
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 2 0
      src/utils/buttonConfig.js
  2. 2 2
      src/views/approve_manage/approveList.vue

+ 2 - 0
src/utils/buttonConfig.js

@@ -772,6 +772,8 @@ export const approvePermission = {
     reportApprove_rejectreason:'reportApprove:rejectreason',//驳回理由(列表中的按钮)
     reportApprove_return:'reportApprove:return',//返回(审批详情-返回按钮)
     reportApprove_repeal:'reportApprove:repeal',//撤回(列表中的按钮,审批详情-撤回按钮)
+    reportApprove_download_pdf:'reportApprove:download:pdf',//下载PDF
+    reportApprove_download_img:'reportApprove:download:img',//下载长图
 }
 
 /* 图表主题配置 */

+ 2 - 2
src/views/approve_manage/approveList.vue

@@ -88,8 +88,8 @@
                                 <el-button type="text" style="padding:0" @click="handleShowDetail(row)" 
                                     v-if="row.State===3&&permissionBtn.isShowBtn('approvePermission','reportApprove_rejectreason')">{{$t('AprrovalPage.rejection_table')}}</el-button>
                                 <!-- 下载长图 下载pdf按钮 -->
-                                <el-button type="text" style="padding:0" v-if="row.DetailPdfUrl" @click="downloadPdfImg(row,1)">{{$t('ReportManage.smart_btn.download_pdf')}}</el-button>
-                                <el-button type="text" style="padding:0" v-if="row.DetailImgUrl" @click="downloadPdfImg(row,2)">{{$t('ReportManage.smart_btn.download_long_image')}}</el-button>
+                                <el-button type="text" style="padding:0" v-if="row.DetailPdfUrl&&permissionBtn.isShowBtn('approvePermission','reportApprove_download_pdf')" @click="downloadPdfImg(row,1)">{{$t('ReportManage.smart_btn.download_pdf')}}</el-button>
+                                <el-button type="text" style="padding:0" v-if="row.DetailImgUrl&&permissionBtn.isShowBtn('approvePermission','reportApprove_download_img')" @click="downloadPdfImg(row,2)">{{$t('ReportManage.smart_btn.download_long_image')}}</el-button>
                             </template>
                             <template v-if="activeTab==='originate'">
                                 <el-button type="text" style="padding:0;" @click="toApproveDetail(row,'myself')">{{$t('AprrovalPage.details_table')}}</el-button>