浏览代码

优化报告详情页报告详情未获取好显示无权限页的问题

yujinwen 4 天之前
父节点
当前提交
f5371d124e
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/views/report/Detail.vue
  2. 2 2
      src/views/report/PDF.vue

+ 2 - 2
src/views/report/Detail.vue

@@ -348,7 +348,7 @@ function handleTips () {
     </div>
   </div>
   <!-- 无权限  -->
-  <div class="no-auth-wrap" v-if="reportStatus !== 4">
+  <div class="no-auth-wrap" v-if="reportInfo&&reportStatus !== 4">
     <div class="opcity-box"></div>
     <div class="content-box">
       <img class="icon" src="@/assets/imgs/lock-img.png" alt="" />
@@ -380,7 +380,7 @@ function handleTips () {
     </div>
   </div>
   <!-- 未绑定 -->
-  <div class="no-auth-wrap" v-if="reportStatus === 5&&!isBind">
+  <div class="no-auth-wrap" v-if="reportInfo&&reportStatus === 5&&!isBind">
     <div class="opcity-box"></div>
     <div class="content-box">
       <img class="icon" src="@/assets/imgs/lock-img.png" alt="" />

+ 2 - 2
src/views/report/PDF.vue

@@ -189,7 +189,7 @@ function handleTips () {
     </div>
   </div>
   <!-- 无权限  -->
-  <div class="no-auth-wrap" v-if="reportStatus !== 4">
+  <div class="no-auth-wrap" v-if="reportInfo&&reportStatus !== 4">
     <div class="opcity-box"></div>
     <div class="content-box">
       <img class="icon" src="@/assets/imgs/lock-img.png" alt="" />
@@ -221,7 +221,7 @@ function handleTips () {
     </div>
   </div>
   <!-- 未绑定 -->
-  <div class="no-auth-wrap" v-if="reportStatus === 5&&!isBind">
+  <div class="no-auth-wrap" v-if="reportInfo&&reportStatus === 5&&!isBind">
     <div class="opcity-box"></div>
     <div class="content-box">
       <img class="icon" src="@/assets/imgs/lock-img.png" alt="" />