Commit db1afa43 authored by caixingbing's avatar caixingbing

*

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