|
@@ -38,7 +38,7 @@
|
|
|
class="qrcode"
|
|
|
></vue-qr>
|
|
|
</div>
|
|
|
- <div class="item" v-if="reportInfo.State == 2" @click="handleGetReportImg" v-permission="permissionBtn.smartReportManageBtn.reportManage_reportView_exportImg">
|
|
|
+ <div class="item" v-if="(reportInfo.State == 2&&!isApprove)||(reportInfo.State == 4&&isApprove)" @click="handleGetReportImg" v-permission="permissionBtn.smartReportManageBtn.reportManage_reportView_exportImg">
|
|
|
<img src="~@/assets/img/smartReport/icon16.png" alt="" style="width:30px;height:30px;marginRight:10px;">
|
|
|
<span>导 图</span>
|
|
|
</div>
|
|
@@ -63,8 +63,15 @@ export default {
|
|
|
str=`${baseUrl}/reportshare_smart_report?code=${this.$route.query.code}`
|
|
|
}
|
|
|
return str
|
|
|
- }
|
|
|
- },
|
|
|
+ },
|
|
|
+ //是否开启审批流,若开启,导图按钮在非已审批的状态不显示
|
|
|
+ isApprove(){
|
|
|
+ const type = this.$setting.dynamicOutLinks.ApprovalFlow ||
|
|
|
+ this.$store.state.dynamicOutLinks.ApprovalFlow ||
|
|
|
+ JSON.parse(localStorage.getItem('dynamicOutLinks')).ApprovalFlow||''
|
|
|
+ return ['2','3'].includes(type)
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
reportInfo:null,
|