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
bc2ac026
Commit
bc2ac026
authored
Nov 10, 2018
by
冷冷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
Fixing a bug.工作流 几个bug 修改
parent
e664230b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
63 deletions
+70
-63
route.js
src/api/route.js
+2
-9
leavebill.js
src/const/crud/leavebill.js
+14
-4
task.js
src/const/crud/task.js
+1
-1
leave.vue
src/views/admin/activiti/leave.vue
+8
-0
index.vue
src/views/admin/route/index.vue
+45
-42
vue.config.js
vue.config.js
+0
-7
No files found.
src/api/route.js
View file @
bc2ac026
...
@@ -19,22 +19,15 @@ import request from '@/router/axios'
...
@@ -19,22 +19,15 @@ import request from '@/router/axios'
export
function
fetchList
(
query
)
{
export
function
fetchList
(
query
)
{
return
request
({
return
request
({
url
:
'/route'
,
url
:
'/
admin/
route'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
}
}
export
function
putObj
(
obj
)
{
export
function
putObj
(
obj
)
{
return
request
({
return
request
({
url
:
'/route'
,
url
:
'/
admin/
route'
,
method
:
'put'
,
method
:
'put'
,
data
:
obj
data
:
obj
})
})
}
}
export
function
fallback
(
obj
)
{
return
request
({
url
:
'/route/fallback'
,
method
:
'get'
,
data
:
obj
})
}
src/const/crud/leavebill.js
View file @
bc2ac026
...
@@ -41,14 +41,24 @@ export const tableOption = {
...
@@ -41,14 +41,24 @@ export const tableOption = {
},
},
{
{
label
:
'天数'
,
label
:
'天数'
,
prop
:
'days'
prop
:
'days'
,
type
:
'number'
},
},
{
{
label
:
'请假时间'
,
label
:
'请假时间'
,
prop
:
'
creat
eTime'
,
prop
:
'
leav
eTime'
,
type
:
'datetime'
,
type
:
'datetime'
,
format
:
'yyyy-MM-dd HH:mm'
format
:
'yyyy-MM-dd HH:mm'
,
},
valueFormat
:
"yyyy-MM-dd hh:mm:ss"
},
{
label
:
'提交时间'
,
prop
:
'createTime'
,
type
:
'datetime'
,
format
:
'yyyy-MM-dd HH:mm'
,
editDisabled
:
true
,
addVisdiplay
:
false
},
{
{
label
:
'备注'
,
label
:
'备注'
,
prop
:
'content'
,
prop
:
'content'
,
...
...
src/const/crud/task.js
View file @
bc2ac026
...
@@ -125,7 +125,7 @@ export const taskOption = {
...
@@ -125,7 +125,7 @@ export const taskOption = {
},
},
{
{
label
:
'用户'
,
label
:
'用户'
,
prop
:
'user
name
'
prop
:
'user
Id
'
},
},
{
{
label
:
'批注'
,
label
:
'批注'
,
...
...
src/views/admin/activiti/leave.vue
View file @
bc2ac026
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
:data=
"tableData"
:data=
"tableData"
:table-loading=
"tableLoading"
:table-loading=
"tableLoading"
:option=
"tableOption"
:option=
"tableOption"
@
search-change=
"searchChange"
@
current-change=
"currentChange"
@
current-change=
"currentChange"
@
refresh-change=
"refreshChange"
@
refresh-change=
"refreshChange"
@
size-change=
"sizeChange"
@
size-change=
"sizeChange"
...
@@ -192,6 +193,13 @@
...
@@ -192,6 +193,13 @@
this
.
getList
()
this
.
getList
()
})
})
},
},
/**
* 搜索回调
*/
searchChange
(
form
)
{
this
.
listQuery
.
state
=
form
.
state
this
.
getList
()
},
/**
/**
* 刷新回调
* 刷新回调
*/
*/
...
...
src/views/admin/route/index.vue
View file @
bc2ac026
...
@@ -18,63 +18,66 @@
...
@@ -18,63 +18,66 @@
<
template
>
<
template
>
<div
class=
"app-container pull-auto"
>
<div
class=
"app-container pull-auto"
>
<basic-container>
<basic-container>
<el-alert
title=
"路由配置是非常专业的事情,不建议非工程师操作"
type=
"warning"
>
</el-alert>
<vue-json-editor
v-model=
"json"
:show-btns=
"false"
></vue-json-editor>
<vue-json-editor
v-model=
"json"
:show-btns=
"false"
></vue-json-editor>
<div
align=
"center"
>
<div
align=
"center"
>
<el-button
@
click=
"edit()"
>
更新
</el-button>
<el-button
@
click=
"edit()"
>
更新
</el-button>
<el-button
type=
"warning"
@
click=
"fallback()"
>
回滚
</el-button>
</div>
</div>
</basic-container>
</basic-container>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
vueJsonEditor
from
'vue-json-editor'
import
vueJsonEditor
from
'vue-json-editor'
import
{
fetchList
,
putObj
,
fallback
}
from
'@/api/route'
import
{
fetchList
,
putObj
,
fallback
}
from
'@/api/route'
export
default
{
data
()
{
return
{
json
:
null
}
},
// 注入vueJsonEditor组件
components
:
{
vueJsonEditor
},
created
()
{
export
default
{
this
.
getList
()
data
()
{
},
return
{
json
:
null
}
},
methods
:
{
// 注入vueJsonEditor组件
getList
()
{
components
:
{
fetchList
().
then
(
response
=>
{
vueJsonEditor
this
.
json
=
response
.
data
console
.
log
(
this
.
json
)
})
},
},
fallback
(){
created
()
{
fallback
(
this
.
json
).
then
(
response
=>
{
this
.
getList
()
this
.
$notify
({
title
:
'成功'
,
message
:
'回滚成功'
,
type
:
'success'
,
duration
:
2000
})
})
},
},
edit
(){
methods
:
{
putObj
(
this
.
json
).
then
(
response
=>
{
getList
()
{
this
.
$notify
({
fetchList
().
then
(
response
=>
{
title
:
'成功'
,
let
result
=
response
.
data
.
data
;
message
:
'更新成功'
,
for
(
var
i
=
0
;
i
<
result
.
length
;
i
++
)
{
type
:
'success'
,
let
route
=
result
[
i
]
duration
:
2000
if
(
route
.
predicates
){
let
predicates
=
route
.
predicates
route
.
predicates
=
JSON
.
parse
(
predicates
)
}
if
(
route
.
filters
){
let
filters
=
route
.
filters
route
.
filters
=
JSON
.
parse
(
filters
)
}
}
this
.
json
=
result
})
})
})
},
},
edit
()
{
putObj
(
this
.
json
).
then
(
response
=>
{
this
.
$notify
({
title
:
'成功'
,
message
:
'更新成功'
,
type
:
'success'
,
duration
:
2000
})
})
}
}
}
}
}
</
script
>
</
script
>
vue.config.js
View file @
bc2ac026
...
@@ -36,13 +36,6 @@ module.exports = {
...
@@ -36,13 +36,6 @@ module.exports = {
'^/code'
:
'/code'
'^/code'
:
'/code'
}
}
},
},
'/route'
:
{
target
:
url
,
ws
:
true
,
pathRewrite
:
{
'^/route'
:
'/route'
}
},
'/gen'
:
{
'/gen'
:
{
target
:
url
,
target
:
url
,
ws
:
true
,
ws
:
true
,
...
...
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