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
7da05067
Commit
7da05067
authored
Sep 29, 2018
by
冷冷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
添加新特性。 工作流
parent
219890c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
29 deletions
+14
-29
task.js
src/api/task.js
+0
-7
task.vue
src/views/admin/activiti/task.vue
+14
-22
No files found.
src/api/task.js
View file @
7da05067
...
...
@@ -39,13 +39,6 @@ export function fetchComment(id) {
})
}
export
function
fetchTask
(
id
)
{
return
request
({
url
:
'/act/task/view/'
+
id
,
method
:
'get'
})
}
export
function
doTask
(
obj
)
{
return
request
({
url
:
'/act/task'
,
...
...
src/views/admin/activiti/task.vue
View file @
7da05067
...
...
@@ -63,21 +63,19 @@
</el-dialog>
<el-dialog
title=
"流程图"
:visible
.
sync=
"showPicDialog"
>
<img
:src=
"actPicUrl"
>
<div
:style=
"picStype"
v-if=
"showPicDialog"
/>
<img
:src=
"actPicUrl"
v-if=
"showPicDialog"
width=
"100%"
>
</el-dialog>
</div>
</template>
<
script
>
import
{
fetchList
,
fetchDetail
,
doTask
,
fetch
Task
,
fetch
Comment
}
from
'@/api/task'
import
{
fetchList
,
fetchDetail
,
doTask
,
fetchComment
}
from
'@/api/task'
import
{
tableOption
,
formOption
,
taskOption
}
from
'@/const/crud/task'
import
{
mapGetters
}
from
'vuex'
export
default
{
name
:
'task'
,
data
()
{
return
{
picStype
:
''
,
actPicUrl
:
''
,
obj
:
{},
showTask
:
false
,
...
...
@@ -147,19 +145,18 @@
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
submit
(
row
.
leaveId
)
})
.
then
(
function
()
{
return
submit
(
row
.
leaveId
)
.
then
(
data
=>
{
_this
.
tableData
.
splice
(
index
,
1
)
_this
.
$message
({
showClose
:
true
,
message
:
'提交成功'
,
type
:
'success'
})
.
then
(
data
=>
{
_this
.
tableData
.
splice
(
index
,
1
)
_this
.
$message
({
showClose
:
true
,
message
:
'提交成功'
,
type
:
'success'
})
})
.
catch
(
function
(
err
)
{
})
})
.
catch
(
function
(
err
)
{
})
},
handleTask
:
function
(
row
,
result
)
{
this
.
obj
.
result
=
result
...
...
@@ -169,17 +166,12 @@
message
:
'提交成功'
,
type
:
'success'
})
done
()
this
.
showTask
=
false
this
.
getList
()
})
},
viewPic
:
function
(
row
,
index
)
{
fetchTask
(
row
.
taskId
).
then
(
response
=>
{
let
res
=
response
.
data
.
data
this
.
actPicUrl
=
`/act/process/resource/`
+
res
.
deploymentId
+
'/'
+
res
.
processonDefinitionId
+
"/image"
// 动态画框
this
.
picStype
=
'position: absolute;border:2px solid red;top:'
+
(
res
.
yaxis
+
80
)
+
'px;left:'
+
(
res
.
xaxis
+
20
)
+
'px;width:'
+
res
.
width
+
'px;height:'
+
res
.
height
+
'px;'
})
this
.
actPicUrl
=
`/act/task/view/`
+
row
.
taskId
this
.
showPicDialog
=
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