Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
multiSystem
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yulun Yao
multiSystem
Commits
ab9af3e6
Commit
ab9af3e6
authored
Aug 13, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
562494ff
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
40 deletions
+55
-40
index.html
index.html
+1
-1
index.vue
src/components/Layout/index.vue
+1
-1
routes.js
src/router/routes.js
+4
-34
ajax.js
src/server/ajax.js
+1
-2
systemDash.vue
src/views/dashboard/systemDash.vue
+46
-0
login.vue
src/views/login.vue
+2
-2
No files found.
index.html
View file @
ab9af3e6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<title>
业务联动
平台
</title>
<title>
多系统登录
平台
</title>
</head>
</head>
<body>
<body>
<div
id=
"portal"
></div>
<div
id=
"portal"
></div>
...
...
src/components/Layout/index.vue
View file @
ab9af3e6
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<img
v-else
class=
"logo-img"
>
<img
v-else
class=
"logo-img"
>
</a-col>
</a-col>
<a-col
:span=
'18'
>
<a-col
:span=
'18'
>
<span
v-show=
"!collapsed"
class=
"logo-title"
>
业务联动
平台
</span>
<span
v-show=
"!collapsed"
class=
"logo-title"
>
多系统登录
平台
</span>
</a-col>
</a-col>
</a-row>
</a-row>
</div>
</div>
...
...
src/router/routes.js
View file @
ab9af3e6
...
@@ -24,42 +24,12 @@ const appRoutes = [
...
@@ -24,42 +24,12 @@ const appRoutes = [
component
:
resolve
=>
require
([
'@/components/Layout'
],
resolve
),
//Layout,
component
:
resolve
=>
require
([
'@/components/Layout'
],
resolve
),
//Layout,
children
:
[
children
:
[
{
{
path
:
'/
businessSystem'
,
name
:
'businessS
ystem'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper,
path
:
'/
system'
,
name
:
's
ystem'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper,
meta
:
{
title
:
'
业务系统'
,
menuPath
:
true
,
menuIcon
:
'profile'
,
authCode
:
'0000'
,
hideInBread
:
fals
e
},
meta
:
{
title
:
'
系统'
,
menuPath
:
true
,
menuIcon
:
'profile'
,
authCode
:
'0000'
,
hideInBread
:
tru
e
},
children
:
[
children
:
[
{
{
path
:
'/businessSystem/businessSystemList'
,
name
:
'businessSystemList'
,
component
:
resolve
=>
require
([
'@/views/businessSystem/businessSystemList.vue'
],
resolve
),
//basicInfo,
path
:
'/system/systemList'
,
name
:
'systemList'
,
component
:
resolve
=>
require
([
'@/views/dashboard/systemDash.vue'
],
resolve
),
//basicInfo,
meta
:
{
title
:
'业务系统'
,
menuPath
:
true
,
hideInBread
:
false
,
},
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
,
},
},
},
]
]
},
},
...
...
src/server/ajax.js
View file @
ab9af3e6
...
@@ -103,10 +103,9 @@ const errorHandler = (err) => {
...
@@ -103,10 +103,9 @@ const errorHandler = (err) => {
Axios
.
interceptors
.
request
.
use
(
config
=>
{
Axios
.
interceptors
.
request
.
use
(
config
=>
{
const
token
=
Cookie
.
get
(
'token'
)
||
Store
.
state
.
token
const
token
=
Cookie
.
get
(
'token'
)
||
Store
.
state
.
token
console
.
log
(
token
)
if
(
token
)
{
if
(
token
)
{
config
.
headers
.
Authorization
=
token
config
.
headers
.
Authorization
=
token
}
}
return
config
return
config
},
error
=>
{
},
error
=>
{
return
Promise
.
reject
(
error
)
return
Promise
.
reject
(
error
)
...
...
src/views/dashboard/systemDash.vue
0 → 100644
View file @
ab9af3e6
<
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
src/views/login.vue
View file @
ab9af3e6
...
@@ -97,10 +97,10 @@ export default {
...
@@ -97,10 +97,10 @@ export default {
this
.
$cookie
.
set
(
'token'
,
res
.
access_token
)
this
.
$cookie
.
set
(
'token'
,
res
.
access_token
)
// this.$cookie.set('userName', res.name) // 存储当前账号的用户名
// this.$cookie.set('userName', res.name) // 存储当前账号的用户名
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/
businessSystem/businessS
ystemList'
path
:
'/
system/s
ystemList'
})
})
}
else
{
}
else
{
// this.$message.error(res.msg
)
this
.
$message
.
error
(
res
.
error
)
}
}
})
})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment