Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0f2f22e4
authored
2021-01-27 16:52:44 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
流程终止
1 parent
cef7c0bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
7 deletions
src/App.vue
src/api/user.js
src/views/zd/zddcb/index.vue
src/App.vue
View file @
0f2f22e
...
...
@@ -87,7 +87,7 @@
</
template
>
<
script
>
import
{
rollbackProcess
,
transitProcess
,
pretransitProcess
}
from
"@api/user"
;
import
{
rollbackProcess
,
transitProcess
,
pretransitProcess
,
termProcess
}
from
"@api/user"
;
export
default
{
provide
()
{
return
{
...
...
@@ -195,6 +195,21 @@ export default {
this
.
sprList
=
res
[
0
].
masterActors
;
this
.
spr
=
res
[
0
].
masterActors
[
0
].
accountNo
;
});
},
//终止
termProcess
(
id
){
let
params
=
{
"keepTrace"
:
true
,
"message"
:
""
,
"params"
:
{},
"processInstanceId"
:
id
}
termProcess
(
params
).
then
((
res
)
=>
{
this
.
$message
.
success
(
"操作成功!"
)
this
.
$router
.
push
({
path
:
'/dbx'
})
});
}
},
watch
:
{
...
...
src/api/user.js
View file @
0f2f22e
...
...
@@ -91,4 +91,14 @@ export function getProcessOutline(data) {
}
})
}
/**
* 流程强制终止
*/
export
function
termProcess
(
data
)
{
return
request
({
url
:
'/workflow/termProcess'
,
method
:
'post'
,
data
:
data
})
}
...
...
src/views/zd/zddcb/index.vue
View file @
0f2f22e
...
...
@@ -369,6 +369,7 @@
</div>
</div>
<div
class=
"sh-btn"
>
<el-button
type=
"primary"
@
click=
"lczz"
v-if=
"workFlowData.properties.phase == 'modify'"
>
终止
</el-button>
<el-button
type=
"primary"
@
click=
"thzd"
>
退回
</el-button>
<el-button
type=
"primary"
@
click=
"submitZDxx"
:disabled=
"disabled"
v-if=
"!workFlowState"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"shzd"
v-if=
"workFlowState"
>
审核
</el-button>
...
...
@@ -483,6 +484,7 @@
SYQLXID
:
""
,
},
workFlowState
:
false
,
workFlowData
:{}
};
},
mixins
:
[
geoUtils
],
...
...
@@ -504,6 +506,7 @@
"workitemInstanceId"
:
this
.
$route
.
query
.
workitemInstanceId
}
getActivityDetail
(
params
).
then
(
res
=>
{
this
.
workFlowData
=
res
;
this
.
workFlowState
=
res
.
workitemInstance
.
apps
.
some
(
function
(
item
)
{
return
item
==
'shenpibiao'
;
});
...
...
@@ -965,15 +968,19 @@
//宗地审核流程退回
thzd
(){
let
data
=
{
bdcdyh
:
this
.
formData
.
bdcdyh
,
zl
:
this
.
formData
.
zl
,
shyj
:
''
,
shr
:
'admin'
,
shsj
:
'2021-01-22'
"params"
:
{},
"targetNodeId"
:
""
,
"targetNodes"
:
[
""
],
"workitemInstanceId"
:
this
.
workFlowData
.
processInstance
.
id
}
vm
.
rollback
(
data
);
},
//宗地流程终止
lczz
(){
vm
.
termProcess
(
this
.
workFlowData
.
processInstance
.
id
);
}
},
computed
:
{
zl
()
{
...
...
Please
register
or
sign in
to post a comment