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
03158127
Commit
03158127
authored
Aug 04, 2021
by
Yulun Yao
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
4fd07397
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
29 deletions
+82
-29
ajax.js
src/server/ajax.js
+10
-10
api.js
src/server/api.js
+6
-2
businessSystemList.vue
src/views/businessSystem/businessSystemList.vue
+28
-13
executionLogList.vue
src/views/executionLog/executionLogList.vue
+38
-4
iftttRulesList.vue
src/views/iftttRules/iftttRulesList.vue
+0
-0
No files found.
src/server/ajax.js
View file @
03158127
...
@@ -101,16 +101,16 @@ const errorHandler = (err) => {
...
@@ -101,16 +101,16 @@ 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
)
//
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)
})
//
})
Axios
.
interceptors
.
response
.
use
(
Axios
.
interceptors
.
response
.
use
(
response
=>
{
response
=>
{
...
...
src/server/api.js
View file @
03158127
...
@@ -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
=
'https://
wbx-uat.omniview.pro/api
'
BASE_URL
=
'https://
yapi.omniview.pro/mock/161
'
// 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'
...
@@ -235,5 +235,9 @@ export default {
...
@@ -235,5 +235,9 @@ export default {
POST_LABEL_CREATE_CONFIRM
:
'/service-customkey-ddd/label/confirm'
,
POST_LABEL_CREATE_CONFIRM
:
'/service-customkey-ddd/label/confirm'
,
GET_ID_INFO_BY_LABEL
:
'/service-customkey-ddd/label/resource/datas'
,
GET_ID_INFO_BY_LABEL
:
'/service-customkey-ddd/label/resource/datas'
,
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'
,
GET_BUSINESS_LIST
:
'/api/ifttt-center/business/system/query'
,
POST_ADD_BUSINESS_RECORD
:
'/api/ifttt-center/business/system'
}
}
src/views/businessSystem/businessSystemList.vue
View file @
03158127
...
@@ -139,21 +139,21 @@ export default {
...
@@ -139,21 +139,21 @@ export default {
},
},
{
{
title
:
'系统编码'
,
title
:
'系统编码'
,
dataIndex
:
'
xtbm
'
,
dataIndex
:
'
code
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
xtbm
'
key
:
'
code
'
},
},
{
{
title
:
'系统名称'
,
title
:
'系统名称'
,
dataIndex
:
'
xtmc
'
,
dataIndex
:
'
name
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
xtmc
'
key
:
'
name
'
},
},
{
{
title
:
'系统地址'
,
title
:
'系统地址'
,
dataIndex
:
'
xtdz
'
,
dataIndex
:
'
url
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
xtdz
'
key
:
'
url
'
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
...
@@ -177,7 +177,17 @@ export default {
...
@@ -177,7 +177,17 @@ export default {
formStoreList
:
[]
formStoreList
:
[]
}
}
},
},
mounted
()
{
this
.
getList
()
},
methods
:
{
methods
:
{
getList
()
{
this
.
$ajax
.
post
({
url
:
this
.
$api
.
GET_BUSINESS_LIST
}).
then
(
res
=>
{
this
.
list
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
})
},
pageChange
(
val
)
{
pageChange
(
val
)
{
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
current
=
val
this
.
pagination
.
current
=
val
...
@@ -200,13 +210,18 @@ export default {
...
@@ -200,13 +210,18 @@ export default {
this
.
current
+=
1
this
.
current
+=
1
},
},
handleRegisterOk
()
{
handleRegisterOk
()
{
this
.
form
.
validateFields
((
err
,
values
)
=>
{
let
addForm
=
{}
if
(
!
err
)
{
// this.form.validateFields((err, values) => {
console
.
log
(
this
.
form
.
getFieldsValue
())
// if (!err) {
}
else
{
addForm
.
code
=
this
.
form
.
getFieldValue
(
'xtbm'
)
this
.
$message
.
info
(
'请填写表单所有项目!'
)
addForm
.
name
=
this
.
form
.
getFieldValue
(
'xtmc'
)
}
addForm
.
url
=
this
.
form
.
getFieldValue
(
'xtdz'
)
})
console
.
log
(
addForm
)
// } else {
// this.$message.info('请填写表单所有项目!')
// }
// })
}
}
}
}
}
}
...
...
src/views/executionLog/executionLogList.vue
View file @
03158127
...
@@ -20,6 +20,21 @@
...
@@ -20,6 +20,21 @@
<span
slot=
"no"
slot-scope=
"text, record, index"
>
<span
slot=
"no"
slot-scope=
"text, record, index"
>
{{
index
+
1
}}
{{
index
+
1
}}
</span>
</span>
<span
slot=
"cffw"
slot-scope=
"text, record, index"
>
{{
record
.
rule
.
trigger
.
name
}}
</span>
<span
slot=
"zxfw"
slot-scope=
"text, record, index"
>
{{
record
.
rule
.
action
.
name
}}
</span>
<span
slot=
"time"
slot-scope=
"text, record, index"
>
{{
$moment
(
record
.
time
).
format
(
'YYYY-MM-DD HH:MM'
)
}}
</span>
<p
slot=
"expandedRowRender"
slot-scope=
"record"
style=
"margin: 0; text-align: left"
>
<a-row>
规则:
{{
record
.
rule
.
rules
}}
</a-row>
<a-row>
日志:
{{
record
.
log
}}
</a-row>
</p>
</a-table>
</a-table>
</div>
</div>
</div>
</div>
...
@@ -46,19 +61,28 @@ export default {
...
@@ -46,19 +61,28 @@ export default {
title
:
'触发服务'
,
title
:
'触发服务'
,
dataIndex
:
'cffw'
,
dataIndex
:
'cffw'
,
align
:
'center'
,
align
:
'center'
,
key
:
'cffw'
key
:
'cffw'
,
scopedSlots
:
{
customRender
:
'cffw'
,
},
},
},
{
{
title
:
'执行服务'
,
title
:
'执行服务'
,
dataIndex
:
'zxfw'
,
dataIndex
:
'zxfw'
,
align
:
'center'
,
align
:
'center'
,
key
:
'zxfw'
key
:
'zxfw'
,
scopedSlots
:
{
customRender
:
'zxfw'
,
},
},
},
{
{
title
:
'执行时间'
,
title
:
'执行时间'
,
dataIndex
:
'
zxsj
'
,
dataIndex
:
'
time
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'zxsj'
key
:
'time'
,
scopedSlots
:
{
customRender
:
'time'
,
},
},
},
{
{
title
:
'执行结果'
,
title
:
'执行结果'
,
...
@@ -78,7 +102,17 @@ export default {
...
@@ -78,7 +102,17 @@ export default {
},
},
}
}
},
},
mounted
()
{
this
.
getList
()
},
methods
:
{
methods
:
{
getList
()
{
this
.
$ajax
.
post
({
url
:
this
.
$api
.
GET_IFTTT_RULES_LIST
}).
then
(
res
=>
{
this
.
list
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
})
},
pageChange
(
val
)
{
pageChange
(
val
)
{
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
pageNo
=
val
this
.
pagination
.
current
=
val
this
.
pagination
.
current
=
val
...
...
src/views/iftttRules/iftttRulesList.vue
0 → 100644
View file @
03158127
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