Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Guten-PigxUI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
黄卓然
Guten-PigxUI
Commits
dc2a3baf
Commit
dc2a3baf
authored
Dec 03, 2018
by
冷冷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
💄
Updating the UI and style files.
parent
cbc955d4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
150 additions
and
128 deletions
+150
-128
token.js
src/const/crud/admin/token.js
+47
-46
execution-log.js
src/const/crud/daemon/execution-log.js
+79
-56
status-trace-log.js
src/const/crud/daemon/status-trace-log.js
+19
-15
index.vue
src/views/daemon/execution-log/index.vue
+4
-10
vue.config.js
vue.config.js
+1
-1
No files found.
src/const/crud/admin/token.js
View file @
dc2a3baf
...
@@ -36,10 +36,6 @@ export const tableOption = {
...
@@ -36,10 +36,6 @@ export const tableOption = {
'delBtn'
:
false
,
'delBtn'
:
false
,
'dic'
:
[],
'dic'
:
[],
'column'
:
[{
'column'
:
[{
label
:
'令牌'
,
prop
:
'token_value'
,
align
:
'center'
},
{
label
:
'用户ID'
,
label
:
'用户ID'
,
prop
:
'user_id'
,
prop
:
'user_id'
,
align
:
'center'
align
:
'center'
...
@@ -47,6 +43,11 @@ export const tableOption = {
...
@@ -47,6 +43,11 @@ export const tableOption = {
label
:
'用户名'
,
label
:
'用户名'
,
prop
:
'user_name'
,
prop
:
'user_name'
,
align
:
'center'
align
:
'center'
},
{
label
:
'令牌'
,
prop
:
'token_value'
,
align
:
'center'
,
'overHidden'
:
true
},
{
},
{
label
:
'类型'
,
label
:
'类型'
,
prop
:
'token_type'
,
prop
:
'token_type'
,
...
...
src/const/crud/daemon/execution-log.js
View file @
dc2a3baf
...
@@ -14,6 +14,17 @@
...
@@ -14,6 +14,17 @@
* this software without specific prior written permission.
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
* Author: lengleng (wangiegie@gmail.com)
*/
*/
const
DIC
=
{
isSuccess
:
[{
label
:
'成功'
,
value
:
1
},
{
label
:
'失败'
,
value
:
0
}
]
}
export
const
tableOption
=
{
export
const
tableOption
=
{
'border'
:
true
,
'border'
:
true
,
...
@@ -25,11 +36,13 @@ export const tableOption = {
...
@@ -25,11 +36,13 @@ export const tableOption = {
'editBtn'
:
false
,
'editBtn'
:
false
,
'delBtn'
:
false
,
'delBtn'
:
false
,
'addBtn'
:
false
,
'addBtn'
:
false
,
'viewBtn'
:
true
,
'dic'
:
[],
'dic'
:
[],
'column'
:
[
'column'
:
[
{
{
label
:
'ID'
,
label
:
'ID'
,
prop
:
'id'
prop
:
'id'
,
hide
:
true
},
},
{
{
label
:
'任务名称'
,
label
:
'任务名称'
,
...
@@ -37,35 +50,45 @@ export const tableOption = {
...
@@ -37,35 +50,45 @@ export const tableOption = {
},
},
{
{
label
:
'任务ID'
,
label
:
'任务ID'
,
prop
:
'taskId'
prop
:
'taskId'
,
hide
:
true
,
overHidden
:
true
},
},
{
{
label
:
'主机名'
,
label
:
'主机名'
,
prop
:
'hostname'
prop
:
'hostname'
,
hide
:
true
},
},
{
{
label
:
'IP'
,
label
:
'IP'
,
prop
:
'ip'
prop
:
'ip'
},
},
{
{
width
:
80
,
label
:
'分片项'
,
label
:
'分片项'
,
prop
:
'shardingItem'
prop
:
'shardingItem'
},
},
{
{
label
:
'执行源'
,
label
:
'执行源'
,
prop
:
'executionSource'
prop
:
'executionSource'
,
hide
:
true
},
},
{
{
label
:
'失败原因'
,
label
:
'失败原因'
,
prop
:
'failureCause'
prop
:
'failureCause'
,
hide
:
true
},
},
{
{
width
:
100
,
label
:
'执行结果'
,
label
:
'执行结果'
,
prop
:
'isSuccess'
prop
:
'isSuccess'
,
type
:
'select'
,
dicData
:
DIC
.
isSuccess
,
},
},
{
{
label
:
'开始时间'
,
label
:
'开始时间'
,
prop
:
'startTime'
prop
:
'startTime'
,
hide
:
true
},
},
{
{
label
:
'完成时间'
,
label
:
'完成时间'
,
...
...
src/const/crud/daemon/status-trace-log.js
View file @
dc2a3baf
...
@@ -39,6 +39,7 @@ export const tableOption = {
...
@@ -39,6 +39,7 @@ export const tableOption = {
"editBtn"
:
false
,
"editBtn"
:
false
,
"delBtn"
:
false
,
"delBtn"
:
false
,
"addBtn"
:
false
,
"addBtn"
:
false
,
"viewBtn"
:
true
,
"dic"
:
[],
"dic"
:
[],
"column"
:
[{
"column"
:
[{
label
:
'ID'
,
label
:
'ID'
,
...
@@ -73,28 +74,31 @@ export const tableOption = {
...
@@ -73,28 +74,31 @@ export const tableOption = {
{
{
label
:
'执行类型'
,
label
:
'执行类型'
,
prop
:
'executionType'
,
prop
:
'executionType'
,
hide
:
true
,
hide
:
true
width
:
100
},
},
{
{
width
:
100
,
label
:
'分片项'
,
label
:
'分片项'
,
prop
:
'shardingItem'
prop
:
'shardingItem'
},
},
{
{
width
:
100
,
label
:
'状态'
,
label
:
'状态'
,
prop
:
'state'
,
prop
:
'state'
,
type
:
'select'
,
type
:
'select'
,
dicData
:
DIC
.
state
,
dicData
:
DIC
.
state
,
search
:
true
search
:
true
},
},
{
label
:
'创建时间'
,
prop
:
'creationTime'
},
{
{
label
:
'消息'
,
label
:
'消息'
,
prop
:
'message'
,
prop
:
'message'
,
width
:
100
width
:
100
,
overHidden
:
true
,
hide
:
true
},
{
label
:
'创建时间'
,
prop
:
'creationTime'
}
}
]
]
}
}
src/views/daemon/execution-log/index.vue
View file @
dc2a3baf
...
@@ -28,13 +28,6 @@
...
@@ -28,13 +28,6 @@
@
row-update=
"handleUpdate"
@
row-update=
"handleUpdate"
@
row-save=
"handleSave"
@
row-save=
"handleSave"
@
row-del=
"rowDel"
>
@
row-del=
"rowDel"
>
<template
slot=
"menuLeft"
>
<el-button
type=
"primary"
@
click=
"handleAdd"
size=
"small"
v-if=
"permissions.daemon_execution_log_add"
>
新 增
</el-button>
<br
/><br
/>
</
template
>
<template
slot-scope=
"scope"
<template
slot-scope=
"scope"
slot=
"menu"
>
slot=
"menu"
>
<el-button
type=
"text"
<el-button
type=
"text"
...
@@ -78,10 +71,11 @@
...
@@ -78,10 +71,11 @@
this
.
tableLoading
=
true
this
.
tableLoading
=
true
fetchList
(
Object
.
assign
({
fetchList
(
Object
.
assign
({
page
:
page
.
currentPage
,
page
:
page
.
currentPage
,
limit
:
page
.
pageSize
limit
:
page
.
pageSize
,
descs
:
'start_time'
},
params
)).
then
(
response
=>
{
},
params
)).
then
(
response
=>
{
this
.
tableData
=
response
.
data
.
records
this
.
tableData
=
response
.
data
.
data
.
records
this
.
page
.
total
=
response
.
data
.
total
this
.
page
.
total
=
response
.
data
.
data
.
total
this
.
tableLoading
=
false
this
.
tableLoading
=
false
})
})
},
},
...
...
vue.config.js
View file @
dc2a3baf
const
url
=
'http://
zn.huaxiadaowei.com
'
const
url
=
'http://
127.0.0.1:9999
'
module
.
exports
=
{
module
.
exports
=
{
lintOnSave
:
true
,
lintOnSave
:
true
,
productionSourceMap
:
false
,
productionSourceMap
:
false
,
...
...
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