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
616dcbe2
Commit
616dcbe2
authored
Aug 03, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
47e6eb1a
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
256 additions
and
22 deletions
+256
-22
index.html
index.html
+1
-1
index.vue
src/components/Layout/index.vue
+1
-1
main.js
src/main.js
+2
-2
index.js
src/router/index.js
+11
-11
routes.js
src/router/routes.js
+25
-6
actionList.vue
src/views/action/actionList.vue
+7
-0
businessSystemList.vue
src/views/businessSystem/businessSystemList.vue
+201
-0
executionLogList.vue
src/views/executionLog/executionLogList.vue
+7
-0
login.vue
src/views/login.vue
+1
-1
No files found.
index.html
View file @
616dcbe2
...
@@ -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 @
616dcbe2
...
@@ -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/main.js
View file @
616dcbe2
...
@@ -46,7 +46,7 @@ import {
...
@@ -46,7 +46,7 @@ import {
Radio
,
Radio
,
Cascader
,
Cascader
,
LocaleProvider
,
LocaleProvider
,
//
Steps,
Steps
,
Anchor
,
Anchor
,
// Collapse,
// Collapse,
Popconfirm
,
Popconfirm
,
...
@@ -128,7 +128,7 @@ Vue.use(Badge)
...
@@ -128,7 +128,7 @@ Vue.use(Badge)
Vue
.
use
(
Radio
)
Vue
.
use
(
Radio
)
Vue
.
use
(
Cascader
)
Vue
.
use
(
Cascader
)
Vue
.
use
(
LocaleProvider
)
Vue
.
use
(
LocaleProvider
)
//
Vue.use(Steps)
Vue
.
use
(
Steps
)
Vue
.
use
(
Anchor
)
Vue
.
use
(
Anchor
)
// Vue.use(Collapse)
// Vue.use(Collapse)
Vue
.
use
(
Popconfirm
)
Vue
.
use
(
Popconfirm
)
...
...
src/router/index.js
View file @
616dcbe2
...
@@ -12,17 +12,17 @@ const router = new Router({
...
@@ -12,17 +12,17 @@ const router = new Router({
routes
,
routes
,
})
})
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
//
router.beforeEach((to, from, next) => {
// TODO
//
// TODO
store
.
commit
(
'setWebviewSrc'
,
to
.
meta
&&
to
.
meta
.
src
)
// 判断有src的话为需要嵌入iframe的子项目
//
store.commit('setWebviewSrc', to.meta && to.meta.src) // 判断有src的话为需要嵌入iframe的子项目
const
token
=
Cookie
.
get
(
'token'
)
//
const token = Cookie.get('token')
// 当前无token且不在login页面则推到登录页面
//
// 当前无token且不在login页面则推到登录页面
if
(
to
.
path
!=
'/login'
&&
!
token
)
{
//
if (to.path != '/login' && !token) {
next
(
'/login'
)
//
next('/login')
}
else
{
//
} else {
next
()
//
next()
}
//
}
})
//
})
export
default
router
export
default
router
src/router/routes.js
View file @
616dcbe2
...
@@ -20,20 +20,39 @@
...
@@ -20,20 +20,39 @@
// import Demo from '@/views/components/demo'
// import Demo from '@/views/components/demo'
const
appRoutes
=
[
const
appRoutes
=
[
{
{
path
:
'/'
,
name
:
'Layout'
,
redirect
:
'/
receipt/receipt
List'
,
path
:
'/'
,
name
:
'Layout'
,
redirect
:
'/
businessSystem/businessSystem
List'
,
component
:
resolve
=>
require
([
'@/components/Layout'
],
resolve
),
//Layout,
component
:
resolve
=>
require
([
'@/components/Layout'
],
resolve
),
//Layout,
children
:
[
children
:
[
{
{
path
:
'/
receipt'
,
name
:
'receipt
'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper,
path
:
'/
businessSystem'
,
name
:
'businessSystem
'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper,
meta
:
{
title
:
'
单据'
,
menuPath
:
true
,
menuIcon
:
'profile'
,
authCode
:
'0000'
,
hideInBread
:
tru
e
},
meta
:
{
title
:
'
业务系统'
,
menuPath
:
true
,
menuIcon
:
'profile'
,
authCode
:
'0000'
,
hideInBread
:
fals
e
},
children
:
[
children
:
[
{
{
path
:
'/receipt/receiptList'
,
name
:
'receiptList'
,
component
:
resolve
=>
require
([
'@/views/receiptService/receiptList.vue'
],
resolve
),
//basicInfo,
path
:
'/businessSystem/businessSystemList'
,
name
:
'businessSystemList'
,
component
:
resolve
=>
require
([
'@/views/businessSystem/businessSystemList.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
,
},
},
},
]
]
},
},
],
],
},
},
{
{
...
...
src/views/action/actionList.vue
0 → 100644
View file @
616dcbe2
<
template
>
<div
class=
"routerWapper"
>
<div
class=
"portalDetailTitle"
v-if=
"$route.name == 'actionList'"
>
<span
class=
"title"
>
触发
</span>
</div>
</div>
</
template
>
src/views/businessSystem/businessSystemList.vue
0 → 100644
View file @
616dcbe2
<
template
>
<div
class=
"routerWapper"
>
<div
class=
"portalDetailTitle"
v-if=
"$route.name == 'businessSystemList'"
>
<span
class=
"title"
>
业务系统
</span>
<div
class=
"layoutMargin layoutPadding"
>
<a-row>
<a-col
span=
"24"
>
<a-button
icon=
"plus"
type=
"primary"
@
click=
"onRegister"
>
系统注册
</a-button>
</a-col>
</a-row>
<div
class=
"itemMargin"
>
<a-alert
message=
"Informational Notes"
type=
"info"
show-icon
/>
</div>
<a-table
class=
"elevator-table portalTable"
:dataSource=
"list"
:columns=
"columns"
size=
"small"
:pagination=
"pagination"
rowKey=
"id"
:row-selection=
"
{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
<span
slot=
"operation"
slot-scope=
"text, record"
>
<span
class=
"actionBtn"
@
click=
"edit(record)"
>
编辑
</span>
<span
class=
"actionBtn"
@
click=
"more(record)"
>
更多
</span>
</span>
</a-table>
<a-modal
title=
"系统注册"
v-model=
"isShow"
width=
'900px'
style=
"padding: 20px"
>
<a-steps
:current=
"current"
>
<a-step
v-for=
"item in steps"
:key=
"item.title"
:title=
"item.title"
/>
</a-steps>
<div
class=
"steps-content"
>
<!--
{{
steps
[
current
].
content
}}
-->
<a-form
:form=
'form'
>
<div
v-if=
"current == 0"
>
<a-form-item
label=
"系统编码"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"['xtbm',
{validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item
label=
"系统名称"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"['xtmc',
{validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item
label=
"系统地址"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"['xtdz',
{validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
</div>
<div
v-if=
"current == 1"
>
<a-form-item
label=
"授权类型"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-select
placeholder=
"请选择授权类型"
v-decorator=
"['sqlx']"
>
<a-select-option
value=
"oauth2"
>
oauth2
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
label=
"授权路径"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"['sqlj',
{validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item
label=
"授权方法"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-select
placeholder=
"请选择授权方法"
v-decorator=
"['sqff']"
>
<a-select-option
value=
"POST"
>
POST
</a-select-option>
<a-select-option
value=
"GET"
>
GET
</a-select-option>
</a-select>
</a-form-item>
</div>
<div
v-if=
"current == 2"
>
<a-form-item
label=
"Token Key"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"['tokenKey',
{validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item
label=
"Token Header Name"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"['tokenHeaderName',
{validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item
label=
"Token Prefix"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"['tokenPrefix',
{validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item
label=
"Token Expires Time Key"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"['tokenExpiresTimeKey',
{validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
</div>
</a-form>
</div>
<template
slot=
"footer"
>
<a-button
key=
"back"
@
click=
"isShow = !isShow"
>
取消
</a-button>
<a-button
v-if=
"current >= 1"
type=
"primary"
@
click=
"handlePrevStep()"
>
上一步
</a-button>
<a-button
v-if=
"current
<
2
"
type=
"primary"
@
click=
"handleNextStep()"
>
下一步
</a-button>
<a-button
v-if=
"current == 2"
type=
"primary"
@
click=
"handleRegisterOk()"
>
完成
</a-button>
</
template
>
</a-modal>
</div>
</div>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
form
:
this
.
$form
.
createForm
(
this
),
current
:
0
,
steps
:
[
{
title
:
'基本信息'
},
{
title
:
'授权认证信息'
},
{
title
:
'授权结果映射'
},
],
isShow
:
false
,
selectedRowKeys
:
[],
list
:
[
{
xtbm
:
'wuyeapp'
,
xtmc
:
'物业APP'
,
xtdz
:
'http://www.962121.net'
}
],
columns
:
[
{
title
:
'系统编码'
,
dataIndex
:
'xtbm'
,
align
:
'center'
,
key
:
'xtbm'
},
{
title
:
'系统名称'
,
dataIndex
:
'xtmc'
,
align
:
'center'
,
key
:
'xtmc'
},
{
title
:
'系统地址'
,
dataIndex
:
'xtdz'
,
align
:
'center'
,
key
:
'xtdz'
},
{
title
:
'操作'
,
dataIndex
:
'operation'
,
key
:
'operation'
,
width
:
'120px'
,
scopedSlots
:
{
customRender
:
'operation'
,
},
}
],
pagination
:
{
//分页
pageNo
:
1
,
pageSize
:
10
,
total
:
10
,
current
:
1
,
defaultCurrent
:
1
,
showQuickJumper
:
true
,
onChange
:
this
.
pageChange
},
formStoreList
:
[]
}
},
methods
:
{
pageChange
(
val
)
{
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
current
=
val
// this.getCompanyList()
},
onSelectChange
()
{},
onRegister
()
{
this
.
isShow
=
!
this
.
isShow
},
handlePrevStep
()
{
if
(
this
.
current
>=
1
)
{
this
.
current
-=
1
}
},
handleNextStep
()
{
this
.
form
.
validateFields
((
err
,
values
)
=>
{
if
(
!
err
)
{
this
.
formStoreList
.
push
(
this
.
form
.
getFieldsValue
())
}
})
console
.
log
(
this
.
formStoreList
)
this
.
current
+=
1
},
handleRegisterOk
()
{
console
.
log
(
this
.
form
.
getFieldsValue
())
}
}
}
</
script
>
<
style
scoped
>
.itemMargin
{
margin-top
:
14px
;
margin-bottom
:
14px
}
</
style
>
src/views/executionLog/executionLogList.vue
0 → 100644
View file @
616dcbe2
<
template
>
<div
class=
"routerWapper"
>
<div
class=
"portalDetailTitle"
v-if=
"$route.name == 'executionLogList'"
>
<span
class=
"title"
>
日志列表
</span>
</div>
</div>
</
template
>
src/views/login.vue
View file @
616dcbe2
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
this
.
$cookie
.
set
(
'token'
,
'bearer '
+
res
.
token
.
access_token
)
this
.
$cookie
.
set
(
'token'
,
'bearer '
+
res
.
token
.
access_token
)
this
.
$cookie
.
set
(
'userName'
,
res
.
name
)
// 存储当前账号的用户名
this
.
$cookie
.
set
(
'userName'
,
res
.
name
)
// 存储当前账号的用户名
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/
receipt/receipt
List'
path
:
'/
businessSystem/businessSystem
List'
})
})
}
else
{
}
else
{
// this.$message.error(res.msg)
// this.$message.error(res.msg)
...
...
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