|
@@ -76,8 +76,6 @@
|
|
</froala>
|
|
</froala>
|
|
<ConfigAnnotation picName="emailContentTemplate" @showImage="previewImage" picHintText="" :buttonText="$t('SystemManage.BaseConfig.view_example_text')"/>
|
|
<ConfigAnnotation picName="emailContentTemplate" @showImage="previewImage" picHintText="" :buttonText="$t('SystemManage.BaseConfig.view_example_text')"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </div>
|
|
|
|
- <div class="side">
|
|
|
|
<el-form-item label="备案信息" prop="ICPLicense">
|
|
<el-form-item label="备案信息" prop="ICPLicense">
|
|
<el-input type="text" v-model="formData.ICPLicense" placeholder="文本中输入≥2个空格表示文本分段,小屏时换行展示" />
|
|
<el-input type="text" v-model="formData.ICPLicense" placeholder="文本中输入≥2个空格表示文本分段,小屏时换行展示" />
|
|
<ConfigAnnotation picHintText="" picName="ICPLicense" @showImage="previewImage"/>
|
|
<ConfigAnnotation picHintText="" picName="ICPLicense" @showImage="previewImage"/>
|
|
@@ -86,10 +84,69 @@
|
|
<el-input type="text" v-model="formData.ETATitle" placeholder="请输入登录页标题" />
|
|
<el-input type="text" v-model="formData.ETATitle" placeholder="请输入登录页标题" />
|
|
<ConfigAnnotation picHintText="" picName="ETATitle" @showImage="previewImage"/>
|
|
<ConfigAnnotation picHintText="" picName="ETATitle" @showImage="previewImage"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="网站名称" prop="TabName">
|
|
|
|
- <el-input type="text" v-model="formData.TabName" placeholder="请输入登录页标题" />
|
|
|
|
- <ConfigAnnotation picHintText="" picName="TabName" @showImage="previewImage"/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <div class="inline-form-item-box" v-if="permissionBtn.isShowBtn('baseConfigPermission','etaBaseConfig_login_websiteName_pc') ||
|
|
|
|
+ permissionBtn.isShowBtn('baseConfigPermission','etaBaseConfig_login_websiteName_mobile')">
|
|
|
|
+ <div class="line-form-item-name">{{$t('SystemManage.BaseConfig.website_name')}}</div>
|
|
|
|
+ <div class="line-form-item">
|
|
|
|
+ <el-form-item :label="$t('SystemManage.BaseConfig.pc')" prop="TabName"
|
|
|
|
+ v-permission="permissionBtn.baseConfigPermission.etaBaseConfig_login_websiteName_pc">
|
|
|
|
+ <el-input type="text" v-model="formData.TabName" :placeholder="$t('SystemManage.BaseConfig.pc_website_title_Tip')" />
|
|
|
|
+ <ConfigAnnotation picHintText="" picName="TabName" @showImage="previewImage"
|
|
|
|
+ :buttonText="$t('SystemManage.BaseConfig.view_example_text')"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('SystemManage.BaseConfig.mobile')" prop="TabNameMobile"
|
|
|
|
+ v-permission="permissionBtn.baseConfigPermission.etaBaseConfig_login_websiteName_mobile">
|
|
|
|
+ <el-input type="text" v-model="formData.TabNameMobile" :placeholder="$t('SystemManage.BaseConfig.mobile_website_title_Tip')" />
|
|
|
|
+ <ConfigAnnotation picHintText="" picName="TabNameMobile" @showImage="previewImage"
|
|
|
|
+ :buttonText="$t('SystemManage.BaseConfig.view_example_text')"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="side">
|
|
|
|
+ <div class="inline-form-item-box" v-if="permissionBtn.isShowBtn('baseConfigPermission','etaBaseConfig_login_systemLogo_pc') ||
|
|
|
|
+ permissionBtn.isShowBtn('baseConfigPermission','etaBaseConfig_login_systemLogo_mobile')">
|
|
|
|
+ <div class="line-form-item-name">{{ $t('SystemManage.BaseConfig.system_logo') }}</div>
|
|
|
|
+ <div class="line-form-item-name" style="line-height: 30px;" v-permission="permissionBtn.baseConfigPermission.etaBaseConfig_login_systemLogo_pc">{{ $t('SystemManage.BaseConfig.pc') }}</div>
|
|
|
|
+ <div class="line-form-item" v-permission="permissionBtn.baseConfigPermission.etaBaseConfig_login_systemLogo_pc">
|
|
|
|
+ <el-form-item :label="`${$t('SystemManage.BaseConfig.chinese_version')}(${$t('SystemManage.BaseConfig.recommended_ratio')})`" prop="LogoCN">
|
|
|
|
+ <ImgUpload
|
|
|
|
+ id="logo-image"
|
|
|
|
+ :imgUrl="formData.LogoCN"
|
|
|
|
+ :text="$t('SystemManage.BaseConfig.upload_image_tip')"
|
|
|
|
+ @showImage="showImage"
|
|
|
|
+ @upload="(file)=>handleUploadImage(file,'LogoCN')"
|
|
|
|
+ @remove="deleteFormImg('LogoCN')"
|
|
|
|
+ />
|
|
|
|
+ <ConfigAnnotation picHintText="" picName="LogoCN" @showImage="previewImage" :buttonText="$t('SystemManage.BaseConfig.view_example_text')"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="`${$t('SystemManage.BaseConfig.english_version')}(${$t('SystemManage.BaseConfig.recommended_ratio')})`" prop="LogoEN">
|
|
|
|
+ <ImgUpload
|
|
|
|
+ id="logo-image"
|
|
|
|
+ :imgUrl="formData.LogoEN"
|
|
|
|
+ :text="$t('SystemManage.BaseConfig.upload_image_tip')"
|
|
|
|
+ @showImage="showImage"
|
|
|
|
+ @upload="(file)=>handleUploadImage(file,'LogoEN')"
|
|
|
|
+ @remove="deleteFormImg('LogoEN')"
|
|
|
|
+ />
|
|
|
|
+ <ConfigAnnotation picHintText="" picName="LogoEN" @showImage="previewImage" :buttonText="$t('SystemManage.BaseConfig.view_example_text')"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="line-form-item" v-permission="permissionBtn.baseConfigPermission.etaBaseConfig_login_systemLogo_mobile">
|
|
|
|
+ <el-form-item :label="$t('SystemManage.BaseConfig.mobile')" prop="LogoMobile" style="width: 50%;">
|
|
|
|
+ <ImgUpload
|
|
|
|
+ id="logo-image"
|
|
|
|
+ :imgUrl="formData.LogoMobile"
|
|
|
|
+ :text="$t('SystemManage.BaseConfig.upload_image_tip')"
|
|
|
|
+ @showImage="showImage"
|
|
|
|
+ @upload="(file)=>handleUploadImage(file,'LogoMobile')"
|
|
|
|
+ @remove="deleteFormImg('LogoMobile')"
|
|
|
|
+ />
|
|
|
|
+ <ConfigAnnotation picHintText="" picName="LogoMobile" @showImage="previewImage" :buttonText="$t('SystemManage.BaseConfig.view_example_text')"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <div style="width: 50%;"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 研报设置 -->
|
|
<!-- 研报设置 -->
|
|
@@ -477,7 +534,11 @@ export default {
|
|
ReportApproveType:'eta',//研报审批选项
|
|
ReportApproveType:'eta',//研报审批选项
|
|
ICPLicense:'', //备案信息
|
|
ICPLicense:'', //备案信息
|
|
ETATitle:'', //登录页标题
|
|
ETATitle:'', //登录页标题
|
|
- TabName:'',//网页名称
|
|
|
|
|
|
+ TabName:'',//网页名称-PC端
|
|
|
|
+ TabNameMobile:'',//网页名称-移动端
|
|
|
|
+ LogoCN:'',//logo-中文版
|
|
|
|
+ LogoEN:'',//logo-英文版
|
|
|
|
+ LogoMobile:'',//logo-移动端登录页
|
|
},//表单预设值
|
|
},//表单预设值
|
|
rules: {
|
|
rules: {
|
|
Disclaimer:[{ required: true, message: '请输入免责声明', trigger: 'blur' }],
|
|
Disclaimer:[{ required: true, message: '请输入免责声明', trigger: 'blur' }],
|
|
@@ -507,7 +568,11 @@ export default {
|
|
CnPptCoverImgs:[{ required: true, validator:ListValidator}],
|
|
CnPptCoverImgs:[{ required: true, validator:ListValidator}],
|
|
EnPptCoverImgs:[{ required: true, validator:ListValidator}],
|
|
EnPptCoverImgs:[{ required: true, validator:ListValidator}],
|
|
ETATitle:[{ required: true, message: '请输入登录页标题', trigger: 'blur' }],
|
|
ETATitle:[{ required: true, message: '请输入登录页标题', trigger: 'blur' }],
|
|
- TabName:[{ required: true, message: '请输入网站名称', trigger: 'blur' }],
|
|
|
|
|
|
+ TabName:[{ required: true, message: '请输入PC端网页名称', trigger: 'blur' }],
|
|
|
|
+ TabNameMobile:[{ required: true, message: '请输入移动端网页名称', trigger: 'blur' }],
|
|
|
|
+ LogoCN:[{ required: true, message: '请上传系统中文版Logo', trigger: 'blur' }],
|
|
|
|
+ LogoEN:[{ required: true, message: '请上传系统英文版Logo', trigger: 'blur' }],
|
|
|
|
+ LogoMobile:[{ required: true, message: '请上传系统移动端Logo', trigger: 'blur' }],
|
|
},//表单校验
|
|
},//表单校验
|
|
disclaimerConfig:{
|
|
disclaimerConfig:{
|
|
toolbarButtons:[
|
|
toolbarButtons:[
|
|
@@ -562,7 +627,11 @@ export default {
|
|
'emailContentTemplate':[require('@/assets/img/eta_base_config/email_content_template.png')],
|
|
'emailContentTemplate':[require('@/assets/img/eta_base_config/email_content_template.png')],
|
|
'ICPLicense':[require('@/assets/img/eta_base_config/record_information.jpg')],
|
|
'ICPLicense':[require('@/assets/img/eta_base_config/record_information.jpg')],
|
|
'ETATitle':[require('@/assets/img/eta_base_config/ETA_title.png')],
|
|
'ETATitle':[require('@/assets/img/eta_base_config/ETA_title.png')],
|
|
- 'TabName':[require('@/assets/img/eta_base_config/website_title.png')]
|
|
|
|
|
|
+ 'TabName':[require('@/assets/img/eta_base_config/website_title.png')],
|
|
|
|
+ 'TabNameMobile':[require('@/assets/img/eta_base_config/ETA_mobile_title.png')],
|
|
|
|
+ 'LogoCN':[require('@/assets/img/eta_base_config/Logo_ch.png')],
|
|
|
|
+ 'LogoEN':[require('@/assets/img/eta_base_config/Logo_en.png')],
|
|
|
|
+ 'LogoMobile':[require('@/assets/img/eta_base_config/ETA_mobile_logo.png')],
|
|
},
|
|
},
|
|
/* loading */
|
|
/* loading */
|
|
configLoading:null,
|
|
configLoading:null,
|
|
@@ -735,6 +804,9 @@ export default {
|
|
this.formData.CnPptCoverImgs = CnPptCoverImgs.length?CnPptCoverImgs.split(','):[]
|
|
this.formData.CnPptCoverImgs = CnPptCoverImgs.length?CnPptCoverImgs.split(','):[]
|
|
this.formData.EnPptCoverImgs = EnPptCoverImgs.length?EnPptCoverImgs.split(','):[]
|
|
this.formData.EnPptCoverImgs = EnPptCoverImgs.length?EnPptCoverImgs.split(','):[]
|
|
this.formData.WatermarkReport=res.Data.WatermarkReport==='true'?true:false
|
|
this.formData.WatermarkReport=res.Data.WatermarkReport==='true'?true:false
|
|
|
|
+ this.formData.LogoCN = res.Data.LogoCN || require('@/assets/img/login_logo.png')
|
|
|
|
+ this.formData.LogoEN = res.Data.LogoEN || require('@/assets/img/en/logo.png')
|
|
|
|
+ this.formData.LogoMobile = res.Data.LogoMobile || require('@/assets/img/logo_mobile.png')
|
|
}
|
|
}
|
|
this.configLoading&&this.configLoading.close()
|
|
this.configLoading&&this.configLoading.close()
|
|
})
|
|
})
|
|
@@ -791,6 +863,10 @@ export default {
|
|
}
|
|
}
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
if(res.Ret!==200) return
|
|
if(res.Ret!==200) return
|
|
|
|
+ // 设置logo
|
|
|
|
+ this.$store.commit('SET_BASE_INFO',
|
|
|
|
+ {logoCh:this.formData.LogoCN,logoEn:this.formData.LogoEN}
|
|
|
|
+ )
|
|
this.$message.success(this.$t('SystemManage.BaseConfig.tip_msg01')||'保存成功,请稍后到对应页面/项目查看')
|
|
this.$message.success(this.$t('SystemManage.BaseConfig.tip_msg01')||'保存成功,请稍后到对应页面/项目查看')
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -909,6 +985,17 @@ export default {
|
|
margin-bottom: 10px;
|
|
margin-bottom: 10px;
|
|
margin-top: -3px;
|
|
margin-top: -3px;
|
|
}
|
|
}
|
|
|
|
+ .inline-form-item-box{
|
|
|
|
+ .line-form-item-name{
|
|
|
|
+ color: #606266;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ line-height: 40px;
|
|
|
|
+ }
|
|
|
|
+ .line-form-item{
|
|
|
|
+ display: flex;
|
|
|
|
+ gap: 40px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.ppt-form-item-wrap{
|
|
.ppt-form-item-wrap{
|
|
width:100%;
|
|
width:100%;
|
|
@@ -936,4 +1023,19 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+</style>
|
|
|
|
+<style lang="scss">
|
|
|
|
+#logo-image{
|
|
|
|
+ .el-upload{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 86px;
|
|
|
|
+ .upload-mask{
|
|
|
|
+ line-height: 86px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .upload-box{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|