Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fec7af45
authored
Nov 02, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码优化】工作流:去除 DELEGATE 委托中的状态,适合通过 DELEGATE STATE 读取
parent
2df0aa20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
12 deletions
+1
-12
src/api/bpm/task/index.ts
+0
-8
src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue
+1
-4
No files found.
src/api/bpm/task/index.ts
View file @
fec7af45
...
@@ -36,19 +36,11 @@ export enum TaskStatusEnum {
...
@@ -36,19 +36,11 @@ export enum TaskStatusEnum {
*/
*/
RETURN
=
5
,
RETURN
=
5
,
/**
/**
* 委派中
*/
DELEGATE
=
6
,
/**
* 审批通过中
* 审批通过中
*/
*/
APPROVING
=
7
APPROVING
=
7
}
}
export
type
TaskVO
=
{
id
:
number
}
export
const
getTaskTodoPage
=
async
(
params
:
any
)
=>
{
export
const
getTaskTodoPage
=
async
(
params
:
any
)
=>
{
return
await
request
.
get
({
url
:
'/bpm/task/todo-page'
,
params
})
return
await
request
.
get
({
url
:
'/bpm/task/todo-page'
,
params
})
}
}
...
...
src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue
View file @
fec7af45
...
@@ -756,10 +756,7 @@ const reload = () => {
...
@@ -756,10 +756,7 @@ const reload = () => {
/** 任务是否为处理中状态 */
/** 任务是否为处理中状态 */
const
isHandleTaskStatus
=
()
=>
{
const
isHandleTaskStatus
=
()
=>
{
let
canHandle
=
false
let
canHandle
=
false
if
(
if
(
TaskApi
.
TaskStatusEnum
.
RUNNING
===
runningTask
.
value
?.
status
)
{
TaskApi
.
TaskStatusEnum
.
RUNNING
===
runningTask
.
value
?.
status
||
TaskApi
.
TaskStatusEnum
.
DELEGATE
===
runningTask
.
value
?.
status
)
{
canHandle
=
true
canHandle
=
true
}
}
return
canHandle
return
canHandle
...
...
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