Browse Source

修复登录系统后点击系统管理打开一个新的页面及点击平台首页和返回首页时返回系统首页

zhanglei
yunuo970428 3 years ago
parent
commit
7751ec8dc6
  1. 5
      anrui-system-ui/src/layout/components/Navbar.vue
  2. 5
      anrui-system-ui/src/layout/index.vue
  3. 28
      anrui-system-ui/src/views/Home/Home.vue

5
anrui-system-ui/src/layout/components/Navbar.vue

@ -29,8 +29,9 @@ export default {
},
methods: {
logout() {
this.$router.push({path: '/home'})
// window.opener=null;window.open('about:blank', '_top').close()
// this.$router.push({path: '/home'})
window.opener = null
window.open('about:blank', '_top').close()
}
}
}

5
anrui-system-ui/src/layout/index.vue

@ -50,6 +50,9 @@ export default {
methods: {
handleClickOutside() {
this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
},
logout() {
this.$router.push({ path: '/home' })
}
}
}
@ -64,11 +67,13 @@ export default {
position: relative;
height: 100%;
width: 100%;
&.mobile.openSidebar {
position: fixed;
top: 0;
}
}
.drawer-bg {
background: #000;
opacity: 0.3;

28
anrui-system-ui/src/views/Home/Home.vue

@ -90,8 +90,6 @@
<p>{{ item.sourceName }}</p>
</li>
</template>-->
<!-- <li style="background-color: #e87861;" @click="toNavbar('http://39.104.100.138:8081/')">
<img src="@/assets/images/jcxx.png">
<p>基础信息</p>
@ -173,34 +171,34 @@
data() {
return {
menus: [{
imgUrl: require("@/assets/home/bIcon1.png"),
imgUrl: require('@/assets/home/bIcon1.png'),
title: '业务管理'
}, {
imgUrl: require("@/assets/home/scm.png"),
imgUrl: require('@/assets/home/scm.png'),
title: '供应链管理'
}, {
imgUrl: require("@/assets/home/bIcon2.png"),
imgUrl: require('@/assets/home/bIcon2.png'),
title: '风控管理'
}, {
imgUrl: require("@/assets/home/bIcon3.png"),
imgUrl: require('@/assets/home/bIcon3.png'),
title: '审计管理'
}, {
imgUrl: require("@/assets/home/bIcon4.png"),
imgUrl: require('@/assets/home/bIcon4.png'),
title: '财务管理'
}, {
imgUrl: require("@/assets/home/bIcon5.png"),
imgUrl: require('@/assets/home/bIcon5.png'),
title: '行政管理'
}, {
imgUrl: require("@/assets/home/bIcon6.png"),
imgUrl: require('@/assets/home/bIcon6.png'),
title: '报表中心'
}, {
imgUrl: require("@/assets/home/bIcon7.png"),
imgUrl: require('@/assets/home/bIcon7.png'),
title: '基础信息'
}, {
imgUrl: require("@/assets/home/notice.png"),
imgUrl: require('@/assets/home/notice.png'),
title: '消息中心'
}, {
imgUrl: require("@/assets/home/bIcon8.png"),
imgUrl: require('@/assets/home/bIcon8.png'),
title: '系统管理'
}],
userInfo: {},
@ -245,14 +243,16 @@
xxzx() {
this.$alert('项目正在开发中', '提示', {
dangerouslyUseHTMLString: true
});
})
},
toNavbar(name) {
let myPopup = window.open(name + '?token=' + getStorage(), '_blank')
},
toNav(index, name, titleName) {
console.log(index, 9999)
if (index == '9') {
this.$router.push({path: '/index'})
// this.$router.push({path: '/index'})
let myPopup = window.open('/#/index', '_blank')
} else if (index == '7') {
let myPopup = window.open('http://120.46.131.15/base' + '?token=' + getStorage(), '_blank')
} else if (index == '8') {

Loading…
Cancel
Save