Forráskód Böngészése

修改可见参考

bding 1 éve
szülő
commit
f5f9ebd1fa
1 módosított fájl, 11 hozzáadás és 9 törlés
  1. 11 9
      src/views/custom_manage/customList/customDetail.vue

+ 11 - 9
src/views/custom_manage/customList/customDetail.vue

@@ -150,12 +150,12 @@
 						<el-button type="primary" @click="addConcat">添加联系人</el-button>
 						<el-button type="primary" @click.native="importHandle">批量导入</el-button>
 						<!-- <span style="fontSize:16px;color:#AAB4CC;">(请至少添加一位联系人)</span> -->
-						<!-- <el-button v-if="RoleType=='admin' || RoleType=='权益'" style="margin-left:20px" type="primary" @click="exportDataIsShow=true">导出数据</el-button> -->
+						<!-- <el-button v-if="RoleType=='admin' || isUserYanXuanButtonShow" style="margin-left:20px" type="primary" @click="exportDataIsShow=true">导出数据</el-button> -->
 						<a :href="downTemplate" download style="fontSize:14px;color:#409eff;margin-left:30px">下载导入模板</a>
 					</div>
 				</div>
 				<div style="display: flex">
-				  <template v-if="RoleType!=='权益'">
+				  <template v-if="!isUserYanXuanButtonShow">
 					<el-select 
 						v-model="IsSubscribe"
 						placeholder="是否关注公众号" 
@@ -250,7 +250,7 @@
 						<template slot-scope="scope"> <span>{{scope.row.IsMaker==1?'是':'否'}}</span> </template>
 					</el-table-column>
 					<!-- crm 14.7 -->
-					<template v-if="RoleType=='权益'">
+					<template v-if="isUserYanXuanButtonShow">
 						<el-table-column
 						prop="IsRegister"
 						label="是否绑定"
@@ -307,7 +307,7 @@
 					</el-table-column>
 					<!-- crm 14.7 -->
 					<el-table-column
-					v-if="RoleType=='权益'"
+					v-if="isUserYanXuanButtonShow"
 					prop="IsRegister"
 					label="互动次数"
 					align="center">
@@ -315,7 +315,7 @@
 					</el-table-column>
 					<!-- crm 14.7 -->
 					<el-table-column
-					v-if="RoleType!=='权益'"
+					v-if="!isUserYanXuanButtonShow"
 					prop="ViewTotal"
 					label="累计阅读次数"
 					align="center">
@@ -329,13 +329,13 @@
 						<template slot-scope="scope"> <span>{{scope.row.ViewTotal?scope.row.LastViewTimeStr:''|formatTime}}</span> </template>
 					</el-table-column>
 					<el-table-column
-					v-if="RoleType!=='权益'"
+					v-if="!isUserYanXuanButtonShow"
 					label="研报统计"
 					align="center">
 						<template slot-scope="scope"> <span v-if="scope.row.ViewTotal!=0" class="editsty" @click="lookReport(scope.row)" :disabled="!isContractButtonShow" >点击查看</span></template>
 					</el-table-column>
 					<el-table-column
-						v-if="ficcform && RoleType!=='权益'"
+						v-if="ficcform && !isUserYanXuanButtonShow"
 						prop="YbProductViewTotal"
 						label="其他统计"
 						min-width="110"
@@ -343,7 +343,7 @@
 						<template slot-scope="scope"> <span :class="scope.row.YbProductViewTotal?'editsty':''" @click="lookReadInfo(scope.row)">{{scope.row.YbProductViewTotal||'0'}}</span> </template>
 					</el-table-column>
 					<!-- crm 14.7 -->
-					<template v-if="RoleType =='权益'">
+					<template v-if="isUserYanXuanButtonShow">
 						<el-table-column
 						prop="IsRegister"
 						label="研选权限"
@@ -390,7 +390,7 @@
 									style="color:#bbb"
 								>图表权限</span>
 								</block> -->
-								<p v-if="RoleType =='权益'" class="editsty" @click="isOpenMfyxStatusHandler(scope.row)">{{scope.row.MfyxStatus =='试用'?'关闭研选试用':'开通研选试用'}} </p>
+								<p v-if="isUserYanXuanButtonShow" class="editsty" @click="isOpenMfyxStatusHandler(scope.row)">{{scope.row.MfyxStatus =='试用'?'关闭研选试用':'开通研选试用'}} </p>
 							</div>
 						</template>
 					</el-table-column>
@@ -852,6 +852,7 @@ export default {
 
 			isShowResearchNumber:false,// 研选服务点数明细 弹框
 			isShowDlgType:'',
+			isUserYanXuanButtonShow:false,//是否显示研选的按钮以及表格
 		};
 	},
 	methods: {
@@ -1043,6 +1044,7 @@ export default {
 				})
 			if(res.Ret!==200) return 
 			this.isContractButtonShow=res.Data.IsContractButtonShow
+			this.isUserYanXuanButtonShow = res.Data.IsUserYanXuanButtonShow
 			this.formatCustomDetail(res)
 		},
 		formatCustomDetail(res){