Prechádzať zdrojové kódy

Merge branch 'techPool_861'

hbchen 1 rok pred
rodič
commit
c20ec92d11
1 zmenil súbory, kde vykonal 9 pridanie a 5 odobranie
  1. 9 5
      src/views/report_manage/reportlist.vue

+ 9 - 5
src/views/report_manage/reportlist.vue

@@ -246,14 +246,14 @@
 							<a :href="hostapi+'?ReportId='+parseInt(scope.row.Id)" v-if="scope.row.VideoUrl" :download="scope.row.VideoName" style="cursor:pointer; color:#4099ef;">下载</a>
 						</template>
 					</el-table-column> -->
-          <el-table-column v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_reportList_uv)"
-            label="PV / UV"
+          <el-table-column
+            :label="hasUV?'PV / UV':'PV'"
             align="center"
             :render-header="renderHeader"
             width="140"
           >
             <template slot-scope="scope"
-              >{{ scope.row.Pv }}/{{ scope.row.Uv }}</template
+              >{{ hasUV? scope.row.Pv+'/'+scope.row.Uv:scope.row.Pv }}</template
             >
           </el-table-column>
           <el-table-column label="操作" align="center" min-width="130">
@@ -612,6 +612,10 @@ export default {
       });
       return tag;
     },
+    //是否有UV
+    hasUV(){
+      return this.permissionBtn.checkPermissionBtn(this.permissionBtn.reportManageBtn.reportManage_reportList_uv)
+    }
   },
   data() {
     return {
@@ -729,14 +733,14 @@ export default {
             },
             "pv:报告被打开的次数,每次打开都计算一次(只统计有权限用户)"
           ),
-          h(
+          this.hasUV?h(
             "p",
             {
               slot: "content",
               attrs: { style: "display:block;padding:5px 0;width:420px;" },
             },
             "uv:访问报告的人数,每篇报告同一个人访问只计算一次(只统计有权限用户)"
-          ),
+          ):h(''),
           h(
             "el-button",
             {