Browse Source

优化问题

master
ZhaoTongYao 4 years ago
parent
commit
065ffd8f3b
  1. 4
      public/index.html
  2. 44
      src/assets/scss/common.scss
  3. 1
      src/assets/scss/variables.scss
  4. 2
      src/i18n/zh-CN.js
  5. 2
      src/store/index.js
  6. 4
      src/views/main-navbar.vue
  7. 10
      src/views/main.vue
  8. 7
      src/views/modules/productIframe/base-community-community.vue
  9. 7
      src/views/modules/productIframe/base-resi.vue
  10. 9
      src/views/modules/productIframe/communityParty-elegant-index.vue
  11. 7
      src/views/modules/productIframe/communityParty-regionalParty-activitys.vue
  12. 7
      src/views/modules/productIframe/communityParty-regionalParty-units.vue
  13. 7
      src/views/modules/productIframe/communityService-dqfwzx-index.vue
  14. 7
      src/views/modules/productIframe/communityService-measure-index.vue
  15. 7
      src/views/modules/productIframe/communityService-ninePlaces-inspect-inspect.vue
  16. 7
      src/views/modules/productIframe/communityService-ninePlaces-places-places.vue
  17. 7
      src/views/modules/productIframe/communityService-ninePlaces-team-team.vue
  18. 7
      src/views/modules/productIframe/communityService-shzz-index.vue
  19. 7
      src/views/modules/productIframe/communityService-sqzzz-index.vue
  20. 10
      src/views/modules/productIframe/productIframe.vue
  21. 9
      src/views/modules/productIframe/shequ-index.vue
  22. 3
      src/views/pages/login.vue

4
public/index.html

@ -31,13 +31,13 @@
window.SITE_CONFIG['dynamicMenuRoutes'] = [] // 动态(菜单)路由列表 window.SITE_CONFIG['dynamicMenuRoutes'] = [] // 动态(菜单)路由列表
window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false // 动态(菜单)路由是否已经添加的状态标示(用于判断是否需要重新拉取数据并进行动态添加操作) window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false // 动态(菜单)路由是否已经添加的状态标示(用于判断是否需要重新拉取数据并进行动态添加操作)
window.SITE_CONFIG['iframeBaseUrl'] = 'http://120.27.18.76/epmet-oper-gov/#/main' window.SITE_CONFIG['iframeBaseUrl'] = 'https://epdc-shibei.elinkservice.cn/epmet-oper-gov/#/main'
</script> </script>
<!-- 开发环境 --> <!-- 开发环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'https://epdc-shibei-test.elinkservice.cn/epdc-api' window.SITE_CONFIG['apiURL'] = 'https://epdc-shibei.elinkservice.cn/epdc-api'
</script> </script>
<% } %> <% } %>
<!-- 集成测试环境 --> <!-- 集成测试环境 -->

44
src/assets/scss/common.scss

@ -246,6 +246,50 @@ img {
} }
} }
.aui-sidebar--hide {
.aui-navbar {
&__header,
&__brand {
width: $sidebar--width-hide;
}
&__brand {
&-lg {
display: none;
}
&-mini {
display: inline-block;
}
}
&__icon-menu--switch {
transform: rotateZ(180deg);
}
}
.aui-sidebar {
&__inner {
width: $sidebar--width-hide + 20px;
}
&,
&__menu {
width: $sidebar--width-hide;
}
&__menu > li {
text-align: center;
}
&__menu-icon {
margin-right: 0;
font-size: 18px;
}
}
.aui-content {
&__wrapper {
margin-left: $sidebar--width-hide;
}
&--tabs > .el-tabs > .el-tabs__header {
left: $sidebar--width-hide;
}
}
}
/* Navbar /* Navbar
------------------------------ */ ------------------------------ */

1
src/assets/scss/variables.scss

@ -10,6 +10,7 @@ $sidebar--width-fold: 64px;
$sidebar--background-color-dark: #263238; $sidebar--background-color-dark: #263238;
$sidebar--text-color-dark: #8a979e; $sidebar--text-color-dark: #8a979e;
$sidebar--menu-item-height: 48px; $sidebar--menu-item-height: 48px;
$sidebar--width-hide: 0px;
// Content // Content
$content--padding: 15px; $content--padding: 15px;

2
src/i18n/zh-CN.js

@ -4,7 +4,7 @@ t.loading = '加载中...'
t.brand = {} t.brand = {}
t.brand.lg = '党建引领基层治理互联平台' t.brand.lg = '党建引领基层治理互联平台'
t.brand.mini = '党建' t.brand.mini = ''
t.add = '新增' t.add = '新增'
t.delete = '删除' t.delete = '删除'

2
src/store/index.js

@ -14,6 +14,8 @@ export default new Vuex.Store({
sidebarLayoutSkin: 'default', sidebarLayoutSkin: 'default',
// 侧边栏, 折叠状态 // 侧边栏, 折叠状态
sidebarFold: false, sidebarFold: false,
// 侧边栏, 隐藏状态
sidebarHide: false,
// 侧边栏, 菜单 // 侧边栏, 菜单
sidebarMenuList: [], sidebarMenuList: [],
sidebarMenuActiveName: '', sidebarMenuActiveName: '',

4
src/views/main-navbar.vue

@ -160,13 +160,13 @@ export default {
}, },
handleSelect (e) { handleSelect (e) {
if (this.routeList_F[e].name == '社区查询') { if (this.routeList_F[e].name == '社区查询') {
this.$store.state.sidebarFold = true this.$store.state.sidebarHide = true
this.$router.push({ this.$router.push({
name: 'productIframe-shequ-index' name: 'productIframe-shequ-index'
}) })
return return
} else { } else {
this.$store.state.sidebarFold = false this.$store.state.sidebarHide = false
} }
this.$emit('routeList_child', JSON.stringify(this.routeList_F[e].children)) this.$emit('routeList_child', JSON.stringify(this.routeList_F[e].children))
}, },

10
src/views/main.vue

@ -1,5 +1,5 @@
<template> <template>
<div v-loading.fullscreen.lock="loading" :element-loading-text="$t('loading')" :class="['aui-wrapper', { 'aui-sidebar--fold': $store.state.sidebarFold }]"> <div v-loading.fullscreen.lock="loading" :element-loading-text="$t('loading')" :class="['aui-wrapper', { 'aui-sidebar--fold': $store.state.sidebarFold }, { 'aui-sidebar--hide': $store.state.sidebarHide }]">
<template v-if="!loading"> <template v-if="!loading">
<div v-show="isGoProgect==='false'"> <div v-show="isGoProgect==='false'">
<main-index v-on:mainIndexByValue="mainIndexByValue" /> <main-index v-on:mainIndexByValue="mainIndexByValue" />
@ -56,6 +56,9 @@ export default {
created () { created () {
this.windowResizeHandle() this.windowResizeHandle()
this.routeHandle(this.$route) this.routeHandle(this.$route)
if (this.routeList_C.length == 0) {
this.$store.state.sidebarHide = true
}
Promise.all([ Promise.all([
this.getUserInfo(), this.getUserInfo(),
this.getPermissions() this.getPermissions()
@ -118,6 +121,11 @@ export default {
}).catch(() => {}) }).catch(() => {})
}, },
mainIndexByValue (e) { mainIndexByValue (e) {
//
this.$store.state.sidebarHide = true
this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name === 'productIframe-shequ-index')
this.$router.push({ name: 'productIframe-shequ-index' })
window.localStorage.setItem('isGoProgect', e) window.localStorage.setItem('isGoProgect', e)
this.isGoProgect = window.localStorage.getItem('isGoProgect') this.isGoProgect = window.localStorage.getItem('isGoProgect')
} }

7
src/views/modules/productIframe/base-community-community.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

7
src/views/modules/productIframe/base-resi.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

9
src/views/modules/productIframe/communityParty-elegant-index.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user"> <iframe :src="URL" class="iframe" frameborder="no"/>
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe> </div>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/>
</el-card>
</template> </template>
<script> <script>

7
src/views/modules/productIframe/communityParty-regionalParty-activitys.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

7
src/views/modules/productIframe/communityParty-regionalParty-units.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

7
src/views/modules/productIframe/communityService-dqfwzx-index.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

7
src/views/modules/productIframe/communityService-measure-index.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

7
src/views/modules/productIframe/communityService-ninePlaces-inspect-inspect.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

7
src/views/modules/productIframe/communityService-ninePlaces-places-places.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

7
src/views/modules/productIframe/communityService-ninePlaces-team-team.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

7
src/views/modules/productIframe/communityService-shzz-index.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

7
src/views/modules/productIframe/communityService-sqzzz-index.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>

10
src/views/modules/productIframe/productIframe.vue

@ -1,10 +1,10 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
<!-- <el-card shadow="never" class="aui-card--fill">
<iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> -->
</template> </template>
<script> <script>

9
src/views/modules/productIframe/shequ-index.vue

@ -1,10 +1,7 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <div class="">
<!-- <div class="mod-sys__user">
<iframe style="height: 100vh; width:100vw;border: none;display: block;margin: 0 auto;transform: scale(0.8, 0.8) translate(-13%, -12%);" :src="URL" scrolling="no" frameborder="no" border="0"></iframe>
</div> -->
<iframe :src="URL" class="iframe" frameborder="no"/> <iframe :src="URL" class="iframe" frameborder="no"/>
</el-card> </div>
</template> </template>
<script> <script>
@ -29,7 +26,7 @@ export default {
// -- main/communityService-ninePlaces-inspect-inspect // -- main/communityService-ninePlaces-inspect-inspect
// -- main/communityService-ninePlaces-places-places // -- main/communityService-ninePlaces-places-places
// -- main/communityService-ninePlaces-team-team // -- main/communityService-ninePlaces-team-team
this.URL = `${window.SITE_CONFIG['iframeBaseUrl']}/base-resi?token=${Cookies.get('token')}` this.URL = `${window.SITE_CONFIG['iframeBaseUrl']}/shequ-index?token=${Cookies.get('token')}`
}, },
methods: { methods: {
} }

3
src/views/pages/login.vue

@ -147,7 +147,8 @@ export default {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
Cookies.set('token', res.data.token) Cookies.set('token', res.data.token)
this.$router.replace({ name: 'home' }) this.$store.state.sidebarHide = true
this.$router.replace({ name: 'productIframe-shequ-index' })
window.localStorage.setItem('isGoProgect', false) window.localStorage.setItem('isGoProgect', false)
// localStorage // localStorage
this.checkLocakStorage() this.checkLocakStorage()

Loading…
Cancel
Save