Commit db1afa43 authored by caixingbing's avatar caixingbing

*

parent 5c78a12c
# 页面标题
VUE_APP_TITLE = 央企经营系统
VUE_APP_TITLE = 数字化经营履约全生命链路管理系统
# 开发环境配置
ENV = 'development'
# 央企经营系统/开发环境
# 数字化经营履约全生命链路管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'
# 路由懒加载
......
# 页面标题
VUE_APP_TITLE = 央企经营系统
VUE_APP_TITLE = 数字化经营履约全生命链路管理系统
# 生产环境配置
ENV = 'production'
# 央企经营系统/生产环境
# 数字化经营履约全生命链路管理系统/生产环境
VUE_APP_BASE_API = '/prod-api'
# 页面标题
VUE_APP_TITLE = 央企经营系统
VUE_APP_TITLE = 数字化经营履约全生命链路管理系统
NODE_ENV = production
# 测试环境配置
ENV = 'staging'
# 央企经营系统/测试环境
# 数字化经营履约全生命链路管理系统/测试环境
VUE_APP_BASE_API = '/stage-api'
{
"name": "ruoyi",
"version": "3.8.5",
"description": "央企经营系统",
"description": "数字化经营履约全生命链路管理系统",
"author": "若依",
"license": "MIT",
"scripts": {
......
......@@ -7,7 +7,7 @@
</router-link>
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
<img v-if="logo" :src="logo" class="sidebar-logo" />
<h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }} </h1>
<h1 class="text-cl1 sidebar-title" :style="{ width: '98px', color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }} </h1>
</router-link>
</transition>
</div>
......@@ -35,7 +35,7 @@ export default {
},
data() {
return {
title: '央企经营系统',
title: '数字化经营履约全生命链路管理系统',
logo: logoImg
}
}
......@@ -70,7 +70,7 @@ export default {
width: 16px;
height: 23px;
vertical-align: middle;
margin-right: 12px;
margin-right: 3px;
}
& .sidebar-title {
......
......@@ -281,7 +281,6 @@ export default {
<style lang="scss" scoped>
.part-container{
min-width: 1300px;
padding: 0;
}
.part-main{
......
......@@ -12,10 +12,9 @@ export default {
},
data() {
return {
loading: false, // 是否加载
navHeight: 68, // iframe距离顶部距离px
loading: false, // 是否加载完成
navHeight: 68, // iframe以为的高度px
iframeHight: window.innerHeight, // iframe高度
scrollTop: 0, // 滚动条距离内部页面顶部距离
domain: 'https://pre-plug.jiansheku.com',
// domain: 'http://192.168.60.30:3300',
ak: 'aec7b3ff2y2q8x6t49a7e2c463ce21912' // 需要携带的sdkId
......@@ -51,11 +50,11 @@ export default {
_this.iframeHight = data.height
_this.loading = false
}
// 点击栏目名及子标签动态设置滚动高度
// 点击企业详情页 栏目名动态设置滚动高度
if (data.scrollHeight) {
window.scrollTo(sc, parseInt(data.scrollHeight) + _this.navHeight + 15)
}
// 点击下拉子标签动态设置滚动高度
// 点击企业详情页 栏目下子标签动态设置滚动高度
if (data.clientHeight) {
window.scrollTo(sc, sc - 30)
}
......@@ -63,17 +62,20 @@ export default {
if (data.initHeight || data.initHeight===0) {
window.scrollTo(sc, data.initHeight)
}
// 根据子页面弹窗显示隐藏控制当前页面是否固定不可滚动
if (data.scrollDisabled) {
document.body.style.overflow = data.scrollDisabled
}
}
})
},
scrolling() {
// 滚动条距文档顶部的距离
const scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
this.scrollTop = scrollTop
// 准备传值
this.$nextTick(() => {
const ifa = this.$refs.companyIframe
ifa.contentWindow.postMessage({ 'scrollTop': this.scrollTop, 'navHeight': this.navHeight }, '*')
ifa.contentWindow.postMessage({ 'scrollTop': scrollTop }, '*')
})
}
}
......
......@@ -7,7 +7,7 @@ function resolve(dir) {
const CompressionPlugin = require('compression-webpack-plugin')
const name = process.env.VUE_APP_TITLE || '央企经营系统' // 网页标题
const name = process.env.VUE_APP_TITLE || '数字化经营履约全生命链路管理系统' // 网页标题
const port = process.env.port || process.env.npm_config_port || 80 // 端口
// vue.config.js 配置说明
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment