|
@@ -17,6 +17,7 @@ import CollectBox from '@/components/CollectBox.vue'
|
|
|
import collectIcon from '@/assets/collect2.png'
|
|
|
import collectSIcon from '@/assets/collect2-s.png'
|
|
|
import {addTokenToIframe} from '@/utils/common.js'
|
|
|
+import reportCancel from './components/reportCancel.vue'
|
|
|
moment.locale('zh-cn')
|
|
|
|
|
|
const route=useRoute()
|
|
@@ -58,6 +59,7 @@ const getReportPPTImgs=async ()=>{
|
|
|
// 获取报告详情
|
|
|
let info=ref(null)
|
|
|
let audioData=ref(null)
|
|
|
+let isReportPublishCancel=ref(false)//报告取消发布了
|
|
|
const getReportDetail=async ()=>{
|
|
|
const res=await apiReportDetail({
|
|
|
report_id:Number(reportId.value)
|
|
@@ -169,6 +171,8 @@ const getReportDetail=async ()=>{
|
|
|
}
|
|
|
wx.miniProgram.postMessage({ data: postData })
|
|
|
|
|
|
+ }else if(res.code===4002){
|
|
|
+ isReportPublishCancel.value=true
|
|
|
}
|
|
|
}
|
|
|
getReportDetail()
|
|
@@ -575,6 +579,7 @@ const formatTitle=(e)=>{
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <report-cancel v-if="isReportPublishCancel"/>
|
|
|
|
|
|
<!-- 图片预览 -->
|
|
|
<el-image-viewer
|