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
8e2ccf1c
Commit
8e2ccf1c
authored
Aug 09, 2021
by
Yulun Yao
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
ff3f97df
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
172 additions
and
41 deletions
+172
-41
ajax.js
src/server/ajax.js
+3
-3
api.js
src/server/api.js
+6
-4
actionListAction.vue
src/views/action/actionListAction.vue
+34
-11
actionListTrigger.vue
src/views/action/actionListTrigger.vue
+33
-8
businessSystemList.vue
src/views/businessSystem/businessSystemList.vue
+38
-10
executionLogList.vue
src/views/executionLog/executionLogList.vue
+55
-3
login.vue
src/views/login.vue
+3
-2
No files found.
src/server/ajax.js
View file @
8e2ccf1c
...
@@ -23,10 +23,10 @@ const reponseCodeHandler = (res) => {
...
@@ -23,10 +23,10 @@ const reponseCodeHandler = (res) => {
if
(
code
==
'200'
)
{
if
(
code
==
'200'
)
{
}
else
if
(
code
==
'911'
)
{
}
else
if
(
code
==
'911'
)
{
Cookie
.
remove
(
'token'
)
//
Cookie.remove('token')
Cookie
.
remove
(
'refresh_token'
)
//
Cookie.remove('refresh_token')
router
.
push
({
name
:
'login'
})
//
router.push({name: 'login'})
}
else
if
(
code
==
'900'
)
{
}
else
if
(
code
==
'900'
)
{
router
.
push
({
name
:
'noauth'
})
router
.
push
({
name
:
'noauth'
})
...
...
src/server/api.js
View file @
8e2ccf1c
...
@@ -45,7 +45,7 @@ default: // 默认环境下(开发环境)
...
@@ -45,7 +45,7 @@ default: // 默认环境下(开发环境)
// WBX_URL = 'https://wbx-uat.omniview.pro/pc'
// WBX_URL = 'https://wbx-uat.omniview.pro/pc'
// BASE_URL = '/api'
// BASE_URL = '/api'
// BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
// BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
BASE_URL
=
'http://www.962121.net/hmfmstest/ifttt
/api/
'
BASE_URL
=
'http://www.962121.net/hmfmstest/ifttt'
// BASE_URL = 'http://xuhui.hm.omniview.pro/api/v2'
// BASE_URL = 'http://xuhui.hm.omniview.pro/api/v2'
// BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
// BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
// BASE_URL = 'http://211.136.105.193/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
...
@@ -145,7 +145,7 @@ export default {
...
@@ -145,7 +145,7 @@ export default {
// 首页统计列表
// 首页统计列表
GET_RESOURE_LIST
:
'/service-basicdatasync-ddd/resource/count'
,
GET_RESOURE_LIST
:
'/service-basicdatasync-ddd/resource/count'
,
// 首页统计列表
// 首页统计列表
POST_LOGIN
:
'/uaa/oauth/token'
,
POST_LOGIN
:
'/
api/
uaa/oauth/token'
,
// 居委会列表
// 居委会列表
GET_NEI_LIST
:
'/service-basicdatasync-ddd/residentsCommittees'
,
GET_NEI_LIST
:
'/service-basicdatasync-ddd/residentsCommittees'
,
...
@@ -237,12 +237,14 @@ export default {
...
@@ -237,12 +237,14 @@ export default {
GET_WY_AND_YWH_LIST
:
'/service-customkey-ddd/datas'
,
GET_WY_AND_YWH_LIST
:
'/service-customkey-ddd/datas'
,
GET_RESERVATION_LIST
:
'/service-documents/repair/reservations'
,
GET_RESERVATION_LIST
:
'/service-documents/repair/reservations'
,
GET_IFTTT_RULES_LIST
:
'/api/ifttt-center/executor/logs/query'
,
// log
GET_LOGS_LIST
:
'/api/ifttt-center/executor/logs/query'
,
DELETE_LOG_RECORD
:
'/api/ifttt-center/executor/logs/delete/{id}'
,
// 业务系统
// 业务系统
GET_BUSINESS_LIST
:
'/api/ifttt-center/business/system/query'
,
GET_BUSINESS_LIST
:
'/api/ifttt-center/business/system/query'
,
POST_ADD_BUSINESS_RECORD
:
'/api/ifttt-center/business/system'
,
POST_ADD_BUSINESS_RECORD
:
'/api/ifttt-center/business/system'
,
DELETE_BUSINESS_RECORD
:
'/api/ifttt-center/busines
/s
system/delete/{id}'
,
DELETE_BUSINESS_RECORD
:
'/api/ifttt-center/busines
s/
system/delete/{id}'
,
// trigger
// trigger
GET_TRIGGER_LIST
:
'/api/ifttt-center/trigger/query'
,
GET_TRIGGER_LIST
:
'/api/ifttt-center/trigger/query'
,
...
...
src/views/action/actionListAction.vue
View file @
8e2ccf1c
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
<a-form-item
label=
"输入参数"
:label-col=
"{ span: 5 }"
:wrapper-col=
"{ span: 12 }"
>
<a-form-item
label=
"输入参数"
:label-col=
"{ span: 5 }"
:wrapper-col=
"{ span: 12 }"
>
<a-textarea
<a-textarea
v-decorator=
"[
v-decorator=
"[
'
a
rgs',
'
jsonA
rgs',
{
{
validateTrigger: 'blur',
validateTrigger: 'blur',
rules: [
rules: [
...
@@ -251,22 +251,39 @@ export default {
...
@@ -251,22 +251,39 @@ export default {
}
}
}
}
},
},
initPagination
()
{
this
.
pagination
.
pageNo
=
1
this
.
pagination
.
current
=
1
},
onDelete
(
id
)
{
onDelete
(
id
)
{
this
.
$ajax
const
that
=
this
.
delete
({
this
.
$modal
.
confirm
({
url
:
this
.
$api
.
DELETE_ACTION_RECORD
.
replace
(
'{id}'
,
id
),
title
:
'提示'
,
})
content
:
'确定删除该条记录吗?'
,
.
then
((
res
)
=>
{
okText
:
'确认'
,
if
(
res
.
code
==
'200'
)
{
okType
:
'danger'
,
this
.
$message
.
success
(
'删除成功!'
)
cancelText
:
'取消'
,
this
.
getList
()
onOk
()
{
that
.
$ajax
.
delete
({
url
:
that
.
$api
.
DELETE_ACTION_RECORD
.
replace
(
'{id}'
,
id
)
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
that
.
$message
.
success
(
'删除成功!'
)
that
.
initPagination
()
that
.
getList
()
}
}
})
})
},
},
})
},
getBusinessOptions
()
{
getBusinessOptions
()
{
this
.
$ajax
this
.
$ajax
.
post
({
.
post
({
url
:
this
.
$api
.
GET_BUSINESS_LIST
,
// page信息需要拼接在地址栏
url
:
this
.
$api
.
GET_BUSINESS_LIST
,
// page信息需要拼接在地址栏
params
:
{
page
:
this
.
pagination
.
pageNo
,
size
:
10
}
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
===
'200'
)
{
if
(
res
.
code
===
'200'
)
{
...
@@ -284,14 +301,20 @@ export default {
...
@@ -284,14 +301,20 @@ export default {
this
.
$ajax
this
.
$ajax
.
post
({
.
post
({
url
:
this
.
$api
.
GET_ACTION_LIST
,
url
:
this
.
$api
.
GET_ACTION_LIST
,
params
:
{
page
:
this
.
pagination
.
pageNo
,
size
:
10
}
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
list
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
list
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
pagination
.
total
=
this
.
$com
.
confirm
(
res
,
'data.totalElements'
,
0
)
})
})
},
},
pageChange
(
val
)
{
pageChange
(
val
)
{
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
current
=
val
this
.
pagination
.
current
=
val
this
.
getList
()
// this.getCompanyList()
// this.getCompanyList()
},
},
onSelectChange
(
selectedRowKeys
)
{
onSelectChange
(
selectedRowKeys
)
{
...
...
src/views/action/actionListTrigger.vue
View file @
8e2ccf1c
...
@@ -284,19 +284,38 @@ export default {
...
@@ -284,19 +284,38 @@ export default {
this
.
getBusinessOptions
()
this
.
getBusinessOptions
()
},
},
methods
:
{
methods
:
{
initPagination
()
{
this
.
pagination
.
pageNo
=
1
this
.
pagination
.
current
=
1
},
onDelete
(
id
)
{
onDelete
(
id
)
{
this
.
$ajax
.
delete
({
let
that
=
this
url
:
this
.
$api
.
DELETE_TRIGGER_RECORD
.
replace
(
'{id}'
,
id
)
this
.
$modal
.
confirm
({
title
:
'提示'
,
content
:
'确定删除该条记录吗?'
,
okText
:
'确认'
,
okType
:
'danger'
,
cancelText
:
'取消'
,
onOk
()
{
that
.
$ajax
.
delete
({
url
:
that
.
$api
.
DELETE_TRIGGER_RECORD
.
replace
(
'{id}'
,
id
)
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
if
(
res
.
code
==
'200'
)
{
this
.
$message
.
success
(
'删除成功!'
)
that
.
$message
.
success
(
'删除成功!'
)
this
.
getList
()
that
.
initPagination
()
that
.
getList
()
}
}
})
})
},
},
})
},
getBusinessOptions
()
{
getBusinessOptions
()
{
this
.
$ajax
.
post
({
this
.
$ajax
.
post
({
url
:
this
.
$api
.
GET_BUSINESS_LIST
,
// page信息需要拼接在地址栏
url
:
this
.
$api
.
GET_BUSINESS_LIST
,
// page信息需要拼接在地址栏
params
:
{
page
:
this
.
pagination
.
pageNo
,
size
:
10
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
'200'
)
{
if
(
res
.
code
===
'200'
)
{
let
result
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
let
result
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
...
@@ -311,14 +330,20 @@ export default {
...
@@ -311,14 +330,20 @@ export default {
},
},
getList
()
{
getList
()
{
this
.
$ajax
.
post
({
this
.
$ajax
.
post
({
url
:
this
.
$api
.
GET_TRIGGER_LIST
url
:
this
.
$api
.
GET_TRIGGER_LIST
,
params
:
{
page
:
this
.
pagination
.
pageNo
,
size
:
10
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
list
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
list
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
pagination
.
total
=
this
.
$com
.
confirm
(
res
,
'data.totalElements'
,
0
)
})
})
},
},
pageChange
(
val
)
{
pageChange
(
val
)
{
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
current
=
val
this
.
pagination
.
current
=
val
this
.
getList
()
// this.getCompanyList()
// this.getCompanyList()
},
},
onSelectChange
(
selectedRowKeys
)
{
onSelectChange
(
selectedRowKeys
)
{
...
...
src/views/businessSystem/businessSystemList.vue
View file @
8e2ccf1c
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</div>
</div>
<a-table
class=
"elevator-table portalTable"
:dataSource=
"list"
:columns=
"columns"
size=
"small"
:pagination=
"pagination"
rowKey=
"id"
:row-selection=
"
{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
<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
slot=
"operation"
slot-scope=
"text, record"
>
<span
class=
"actionBtn"
@
click=
"onEdit(record)"
>
编辑
</span>
<span
class=
"actionBtn"
@
click=
"onEdit(record
.id
)"
>
编辑
</span>
<span
class=
"actionBtn"
@
click=
"onDelete(record.id)"
>
删除
</span>
<span
class=
"actionBtn"
@
click=
"onDelete(record.id)"
>
删除
</span>
</span>
</span>
<span
slot=
"no"
slot-scope=
"text, record, index"
>
<span
slot=
"no"
slot-scope=
"text, record, index"
>
...
@@ -206,23 +206,43 @@ export default {
...
@@ -206,23 +206,43 @@ export default {
onChange
:
this
.
pageChange
onChange
:
this
.
pageChange
},
},
formStoreList
:
[],
formStoreList
:
[],
businessOptionsList
:
[]
businessOptionsList
:
[]
,
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
onEdit
(
id
)
{
this
.
isShow
=
!
this
.
isShow
let
record
=
this
.
list
.
find
(
item
=>
item
.
id
==
id
)
this
.
form
.
setFieldsValue
(
record
)
},
initPagination
()
{
this
.
pagination
.
pageNo
=
1
this
.
pagination
.
current
=
1
},
onDelete
(
id
)
{
onDelete
(
id
)
{
this
.
$ajax
.
delete
({
const
that
=
this
url
:
this
.
$api
.
DELETE_BUSINESS_RECORD
.
replace
(
'{id}'
,
id
)
this
.
$modal
.
confirm
({
title
:
'提示'
,
content
:
'确定删除该条记录吗?'
,
okText
:
'确认'
,
okType
:
'danger'
,
cancelText
:
'取消'
,
onOk
()
{
that
.
$ajax
.
delete
({
url
:
that
.
$api
.
DELETE_BUSINESS_RECORD
.
replace
(
'{id}'
,
id
)
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
if
(
res
.
code
==
'200'
)
{
this
.
$message
.
success
(
'删除成功!'
)
that
.
$message
.
success
(
'删除成功!'
)
this
.
getList
()
that
.
initPagination
()
that
.
getList
()
}
}
})
})
},
},
})
},
addRow
()
{
addRow
()
{
this
.
rowLoop
.
push
({
this
.
rowLoop
.
push
({
name
:
''
,
name
:
''
,
...
@@ -232,14 +252,20 @@ export default {
...
@@ -232,14 +252,20 @@ export default {
deleteRow
()
{},
deleteRow
()
{},
getList
()
{
getList
()
{
this
.
$ajax
.
post
({
this
.
$ajax
.
post
({
url
:
this
.
$api
.
GET_BUSINESS_LIST
url
:
this
.
$api
.
GET_BUSINESS_LIST
,
params
:
{
page
:
this
.
pagination
.
pageNo
,
size
:
10
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
list
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
list
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
pagination
.
total
=
this
.
$com
.
confirm
(
res
,
'data.totalElements'
,
0
)
})
})
},
},
pageChange
(
val
)
{
pageChange
(
val
)
{
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
current
=
val
this
.
pagination
.
current
=
val
this
.
getList
()
// this.getCompanyList()
// this.getCompanyList()
},
},
onSelectChange
(
selectedRowKeys
)
{
onSelectChange
(
selectedRowKeys
)
{
...
@@ -257,6 +283,8 @@ export default {
...
@@ -257,6 +283,8 @@ export default {
},
},
handleNextStep
()
{
handleNextStep
()
{
this
.
current
+=
1
this
.
current
+=
1
let
record
=
this
.
list
.
find
(
item
=>
item
.
id
==
id
)
this
.
form
.
setFieldsValue
(
record
)
},
},
handleRegisterOk
()
{
handleRegisterOk
()
{
this
.
form
.
validateFields
((
err
,
values
)
=>
{
this
.
form
.
validateFields
((
err
,
values
)
=>
{
...
...
src/views/executionLog/executionLogList.vue
View file @
8e2ccf1c
...
@@ -31,10 +31,18 @@
...
@@ -31,10 +31,18 @@
<span
slot=
"time"
slot-scope=
"text, record, index"
>
<span
slot=
"time"
slot-scope=
"text, record, index"
>
{{
$moment
(
record
.
time
).
format
(
'YYYY-MM-DD HH:MM'
)
}}
{{
$moment
(
record
.
time
).
format
(
'YYYY-MM-DD HH:MM'
)
}}
</span>
</span>
<span
slot=
"message"
slot-scope=
"text, record, index"
>
{{
!
record
.
error
?
'成功'
:
'失败'
}}
</span>
<p
slot=
"expandedRowRender"
slot-scope=
"record"
style=
"margin: 0; text-align: left"
>
<p
slot=
"expandedRowRender"
slot-scope=
"record"
style=
"margin: 0; text-align: left"
>
<a-row>
规则:
{{
record
.
rule
.
rules
}}
</a-row>
<a-row>
规则:
{{
record
.
rule
.
rules
}}
</a-row>
<a-row>
日志:
{{
record
.
log
}}
</a-row>
<a-row>
日志:
{{
record
.
log
}}
</a-row>
</p>
</p>
<span
slot=
"operation"
slot-scope=
"text, record"
>
<span
class=
"actionBtn"
@
click=
"onDelete(record.id)"
>
删除
</span>
</span>
</a-table>
</a-table>
</div>
</div>
</div>
</div>
...
@@ -86,9 +94,21 @@ export default {
...
@@ -86,9 +94,21 @@ export default {
},
},
{
{
title
:
'执行结果'
,
title
:
'执行结果'
,
dataIndex
:
'
zxjg
'
,
dataIndex
:
'
message
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'zxjg'
key
:
'message'
,
scopedSlots
:
{
customRender
:
'message'
,
},
},
{
title
:
'操作'
,
dataIndex
:
'operation'
,
key
:
'operation'
,
width
:
'120px'
,
scopedSlots
:
{
customRender
:
'operation'
,
},
},
},
],
],
pagination
:
{
//分页
pagination
:
{
//分页
...
@@ -106,16 +126,48 @@ export default {
...
@@ -106,16 +126,48 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
initPagination
()
{
this
.
pagination
.
pageNo
=
1
this
.
pagination
.
current
=
1
},
onDelete
(
id
)
{
const
that
=
this
this
.
$modal
.
confirm
({
title
:
'提示'
,
content
:
'确定删除该条记录吗?'
,
okText
:
'确认'
,
okType
:
'danger'
,
cancelText
:
'取消'
,
onOk
()
{
that
.
$ajax
.
delete
({
url
:
that
.
$api
.
DELETE_LOG_RECORD
.
replace
(
'{id}'
,
id
)
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
that
.
$message
.
success
(
'删除成功!'
)
that
.
initPagination
()
that
.
getList
()
}
})
},
})
},
getList
()
{
getList
()
{
this
.
$ajax
.
post
({
this
.
$ajax
.
post
({
url
:
this
.
$api
.
GET_IFTTT_RULES_LIST
url
:
this
.
$api
.
GET_LOGS_LIST
,
params
:
{
page
:
this
.
pagination
.
pageNo
,
size
:
10
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
list
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
list
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
pagination
.
total
=
this
.
$com
.
confirm
(
res
,
'data.totalElements'
,
0
)
})
})
},
},
pageChange
(
val
)
{
pageChange
(
val
)
{
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
current
=
val
this
.
pagination
.
current
=
val
this
.
getList
()
// this.getCompanyList()
// this.getCompanyList()
},
},
onSelectChange
(
selectedRowKeys
)
{
onSelectChange
(
selectedRowKeys
)
{
...
...
src/views/login.vue
View file @
8e2ccf1c
...
@@ -53,7 +53,7 @@ export default {
...
@@ -53,7 +53,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
getLogo
()
//
this.getLogo()
},
},
methods
:
{
methods
:
{
getLogo
(){
getLogo
(){
...
@@ -92,8 +92,9 @@ export default {
...
@@ -92,8 +92,9 @@ export default {
// 当前登录的账号密码的返回值
// 当前登录的账号密码的返回值
if
(
!!
res
.
access_token
)
{
if
(
!!
res
.
access_token
)
{
res
.
token
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
res
.
token
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
console
.
log
(
res
.
access_token
)
// console.log(res.token)
// console.log(res.token)
this
.
$cookie
.
set
(
'token'
,
'bearer '
+
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/businessSystemList'
path
:
'/businessSystem/businessSystemList'
...
...
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