|
@@ -2,7 +2,7 @@
|
|
|
<div class="eta-base-config">
|
|
|
<div class="nav-type-box">
|
|
|
<span :class="[sectionType===1?'active':'']" @click="sectionType=1">通用设置</span>
|
|
|
- <span :class="[sectionType===2?'active':'']" @click="sectionType=2">资源库</span>
|
|
|
+ <span :class="[sectionType===2?'active':'']" @click="sectionType=2" v-if="isShowSource">资源库</span>
|
|
|
</div>
|
|
|
<!-- 通用设置 -->
|
|
|
<template v-if="sectionType==1">
|
|
@@ -15,7 +15,7 @@
|
|
|
ref="baseConfigForm"
|
|
|
>
|
|
|
<div class="part-type-box" style="margin-bottom:40px">
|
|
|
- <el-button type="primary" :plain="partType===1?false:true" @click="partType=1" :style="{width:'120px',border:'none',color:partType==1?'#fff':'#333'}">登录设置</el-button>
|
|
|
+ <el-button v-if="isShowLoginConfig" type="primary" :plain="partType===1?false:true" @click="partType=1" :style="{width:'120px',border:'none',color:partType==1?'#fff':'#333'}">登录设置</el-button>
|
|
|
<el-button type="primary" :plain="partType===2?false:true" @click="partType=2" :style="{width:'120px',border:'none',color:partType==2?'#fff':'#333'}">研报设置</el-button>
|
|
|
<el-button type="primary" :plain="partType===3?false:true" v-if="isShowPPT||isShowEnPPT" @click="partType=3" :style="{width:'120px',border:'none',color:partType==3?'#fff':'#333'}">PPT配置</el-button>
|
|
|
<div class="btn-wrap" style="text-align: center;float:right">
|
|
@@ -24,7 +24,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 登录设置模块 -->
|
|
|
- <div class="part" v-show="partType===1">
|
|
|
+ <div class="part" v-show="partType===1&&isShowLoginConfig">
|
|
|
<div class="side">
|
|
|
<!-- <el-form-item label="国内短信模板" prop="LoginSmsTpId" >
|
|
|
<div class="form-item-type-two sms-type">
|
|
@@ -97,7 +97,7 @@
|
|
|
v-model="checkList" >
|
|
|
<el-checkbox label="研报图表"></el-checkbox>
|
|
|
</el-checkbox-group>
|
|
|
- <div>
|
|
|
+ <div v-if="isShowYBShare">
|
|
|
<el-checkbox label="研报分享" v-model="formData.WatermarkReport"></el-checkbox>
|
|
|
<el-tooltip
|
|
|
effect="dark"
|
|
@@ -304,7 +304,7 @@
|
|
|
|
|
|
</template>
|
|
|
<!-- 资源库 -->
|
|
|
- <smartReportImgSet v-if="sectionType==2"/>
|
|
|
+ <smartReportImgSet v-if="sectionType==2&&isShowSource"/>
|
|
|
|
|
|
<el-image-viewer
|
|
|
v-if="showViewer"
|
|
@@ -494,6 +494,32 @@ export default {
|
|
|
return this.permissionBtn.checkPermissionBtn(
|
|
|
this.permissionBtn.baseConfigPermission.etaBaseConfig_watermark_ybChart
|
|
|
)
|
|
|
+ },
|
|
|
+ // 是否有登录设置
|
|
|
+ isShowLoginConfig(){
|
|
|
+ return this.permissionBtn.checkPermissionBtn(
|
|
|
+ this.permissionBtn.baseConfigPermission.etaBaseConfig_login
|
|
|
+ )
|
|
|
+ },
|
|
|
+ isShowYBShare(){
|
|
|
+ return this.permissionBtn.checkPermissionBtn(
|
|
|
+ this.permissionBtn.baseConfigPermission.etaBaseConfig_watermark_ybShare
|
|
|
+ )
|
|
|
+ },
|
|
|
+ isShowSource(){
|
|
|
+ return this.permissionBtn.checkPermissionBtn(
|
|
|
+ this.permissionBtn.baseConfigPermission.etaBaseConfig_source_see
|
|
|
+ )
|
|
|
+ },
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ 'isShowLoginConfig':{
|
|
|
+ handler(){
|
|
|
+ if(!this.isShowLoginConfig&&this.partType==1){
|
|
|
+ this.partType=2
|
|
|
+ }
|
|
|
+ },
|
|
|
+ immediate:true
|
|
|
}
|
|
|
},
|
|
|
methods: {
|