Commit ab9af3e6 authored by levante's avatar levante

123

parent 562494ff
......@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>业务联动平台</title>
<title>多系统登录平台</title>
</head>
<body>
<div id="portal"></div>
......
......@@ -10,7 +10,7 @@
<img v-else class="logo-img">
</a-col>
<a-col :span='18'>
<span v-show="!collapsed" class="logo-title" >业务联动平台</span>
<span v-show="!collapsed" class="logo-title" >多系统登录平台</span>
</a-col>
</a-row>
</div>
......
......@@ -24,42 +24,12 @@ const appRoutes = [
component: resolve => require(['@/components/Layout'], resolve), //Layout,
children: [
{
path: '/businessSystem', name: 'businessSystem', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: '业务系统', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: false },
path: '/system', name: 'system', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: '系统', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: true },
children: [
{
path: '/businessSystem/businessSystemList', name: 'businessSystemList', component: resolve => require(['@/views/businessSystem/businessSystemList.vue'], resolve), //basicInfo,
meta: { title: '业务系统', menuPath: true, hideInBread: false, },
},
]
},
{
path: '/action', name: 'action', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: 'Action', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: true },
children: [
{
path: '/action/actionList', name: 'actionList', component: resolve => require(['@/views/action/actionList.vue'], resolve), //basicInfo,
meta: { title: 'Action', menuPath: true, hideInBread: false, },
},
]
},
{
path: '/executionLog', name: 'executionLog', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: '执行日志', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: true },
children: [
{
path: '/executionLog/executionLogList', name: 'executionLogList', component: resolve => require(['@/views/executionLog/executionLogList.vue'], resolve), //basicInfo,
meta: { title: '执行日志', menuPath: true, hideInBread: false, },
},
]
},
{
path: '/iftttRules', name: 'iftttRules', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: '规则', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: true },
children: [
{
path: '/iftttRules/iftttRulesList', name: 'iftttRulesList', component: resolve => require(['@/views/iftttRules/iftttRulesList.vue'], resolve), //basicInfo,
meta: { title: '规则列表', menuPath: true, hideInBread: false, },
path: '/system/systemList', name: 'systemList', component: resolve => require(['@/views/dashboard/systemDash.vue'], resolve), //basicInfo,
meta: { title: '系统列表', menuPath: true, hideInBread: false, },
},
]
},
......
......@@ -103,7 +103,6 @@ const errorHandler = (err) => {
Axios.interceptors.request.use(config => {
const token = Cookie.get('token') || Store.state.token
console.log(token)
if (token) {
config.headers.Authorization = token
}
......
<template>
<div class="routerWapper">
<!-- {{systemList}} -->
<a-card title="选择登录系统" style="margin: 20px; padding: 20px; height: 100%">
<a-card-grid v-for="(item, index) in systemList" :key="index" style="width:25%;text-align:center; height: 80px; cursor: pointer" @click="loadPage(item)">
{{item.name}}
</a-card-grid>
</a-card>
</div>
</template>
<script>
export default {
data() {
return {
systemList: [
{
name: '业务联动平台',
url: 'http://localhost:8080/businessSystem/businessSystemList',
token: ''
},
{
name: '数据可视化系统 V1.0',
url: 'http://localhost:8080/businessSystem/businessSystemList',
token: ''
},
{
name: '物联网传输协议智能转换平台 V1.0',
url: 'http://localhost:8080/businessSystem/businessSystemList',
token: ''
},
{
name: '知识图谱规则引擎软件 V1.0',
url: 'http://localhost:8080/businessSystem/businessSystemList',
token: ''
}
]
}
},
methods: {
loadPage(webInfo) {
window.location.href = webInfo.url
}
},
}
</script>
\ No newline at end of file
......@@ -97,10 +97,10 @@ export default {
this.$cookie.set('token', res.access_token)
// this.$cookie.set('userName', res.name) // 存储当前账号的用户名
this.$router.push({
path: '/businessSystem/businessSystemList'
path: '/system/systemList'
})
} else {
// this.$message.error(res.msg)
this.$message.error(res.error)
}
})
}
......
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