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
b1174313
authored
Jan 15, 2025
by
zws
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: bpm 添加流程模型复制功能
parent
8df285ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
src/router/modules/remaining.ts
+1
-1
src/views/bpm/model/CategoryDraggableModel.vue
+10
-1
src/views/bpm/model/form/index.vue
+4
-1
No files found.
src/router/modules/remaining.ts
View file @
b1174313
...
...
@@ -344,7 +344,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
}
},
{
path
:
'manager/model/
updat
e/:id'
,
path
:
'manager/model/
:typ
e/:id'
,
component
:
()
=>
import
(
'@/views/bpm/model/form/index.vue'
),
name
:
'BpmModelUpdate'
,
meta
:
{
...
...
src/views/bpm/model/CategoryDraggableModel.vue
View file @
b1174313
...
...
@@ -165,6 +165,15 @@
</el-button>
<el-button
link
type=
"primary"
@
click=
"openModelForm('copy', scope.row.id)"
v-hasPermi=
"['bpm:model:update']"
:disabled=
"!isManagerUser(scope.row)"
>
复制
</el-button>
<el-button
link
class=
"!ml-5px"
type=
"primary"
@
click=
"handleDeploy(scope.row)"
...
...
@@ -473,7 +482,7 @@ const openModelForm = (type: string, id?: number) => {
}
else
{
push
({
name
:
'BpmModelUpdate'
,
params
:
{
id
}
params
:
{
id
,
type
}
})
}
}
...
...
src/views/bpm/model/form/index.vue
View file @
b1174313
...
...
@@ -162,7 +162,10 @@ const initData = async () => {
if
(
modelId
)
{
// 修改场景
formData
.
value
=
await
ModelApi
.
getModel
(
modelId
)
// 复制场景
if
(
route
.
params
.
type
===
'copy'
)
{
delete
formData
.
value
.
id
}
}
else
{
// 新增场景
formData
.
value
.
managerUserIds
.
push
(
userStore
.
getUser
.
id
)
...
...
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