|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<div class="container yanxuan-special_container">
|
|
|
- <el-card style="margin-bottom: 20px">
|
|
|
+ <el-card style="margin-bottom: 20px" v-if="topLableList.length">
|
|
|
<span @click="tlableClickHandler(item)" :class="['top-table-item', item.value == topLableActive && 'top-table-item-active']" v-for="item in topLableList" :key="item.value">{{ item.name }}</span>
|
|
|
</el-card>
|
|
|
- <el-card>
|
|
|
+ <el-card v-if="topLableList.length">
|
|
|
<template v-if="topLableActive == 1">
|
|
|
<div class="report-stuts-content">
|
|
|
<span
|
|
@@ -75,7 +75,7 @@
|
|
|
<span v-if="item.label != 'PV/UV'" @click="handleRowClick(row, item.key)" :style="handleRowStyle(item.key)">{{ handleRowContent(row, item.key) }}</span>
|
|
|
<div class="pv-uv-download" v-else>
|
|
|
<span>{{ row.Pv }} / {{ row.Uv }}</span>
|
|
|
- <a :href="exportPvUv(row.Id)" download>
|
|
|
+ <a :href="exportPvUv(row.Id)" download v-if="Role == 'rai_admin' || Role == 'admin'">
|
|
|
<img src="~@/assets/img/rai_m/pvuv_download.png" alt="" />
|
|
|
</a>
|
|
|
</div>
|
|
@@ -163,8 +163,10 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- // 头部lable
|
|
|
-
|
|
|
+ Role() {
|
|
|
+ let role = localStorage.getItem("Role") || "";
|
|
|
+ return role;
|
|
|
+ },
|
|
|
// 文章的状态
|
|
|
reportStutsList() {
|
|
|
return ReportStutsList;
|
|
@@ -336,11 +338,14 @@ export default {
|
|
|
async getYanxuanShowButton() {
|
|
|
const res = await raiInterface.getYanxuanShowButton();
|
|
|
if (res.Ret === 200) {
|
|
|
- let { IsShowSpecialAuthor } = res.Data;
|
|
|
- if (IsShowSpecialAuthor) {
|
|
|
- this.topLableList = TopLableList;
|
|
|
- } else {
|
|
|
+ let { IsShowSpecialAuthor, IsShowYanXuanSpecial } = res.Data;
|
|
|
+ if (IsShowSpecialAuthor && !IsShowYanXuanSpecial) {
|
|
|
+ this.topLableList = [TopLableList[1]];
|
|
|
+ this.topLableActive = 2;
|
|
|
+ } else if (!IsShowSpecialAuthor && IsShowYanXuanSpecial) {
|
|
|
this.topLableList = [TopLableList[0]];
|
|
|
+ } else if (IsShowSpecialAuthor && IsShowYanXuanSpecial) {
|
|
|
+ this.topLableList = TopLableList;
|
|
|
}
|
|
|
}
|
|
|
},
|