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
e44f48c0
authored
Jan 16, 2025
by
zws
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: bpm模型复制优化
parent
2f7200ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/views/bpm/model/CategoryDraggableModel.vue
+6
-0
src/views/bpm/model/form/index.vue
+2
-0
No files found.
src/views/bpm/model/CategoryDraggableModel.vue
View file @
e44f48c0
...
...
@@ -254,6 +254,7 @@ import { checkPermi } from '@/utils/permission'
import
{
useUserStoreWithOut
}
from
'@/store/modules/user'
import
{
useAppStore
}
from
'@/store/modules/app'
import
{
cloneDeep
}
from
'lodash-es'
import
{
useTagsView
}
from
"@/hooks/web/useTagsView"
;
defineOptions
({
name
:
'BpmModel'
})
...
...
@@ -474,6 +475,7 @@ const handleDeleteCategory = async () => {
}
catch
{}
}
const
tagsView
=
useTagsView
();
/** 添加流程模型弹窗 */
const
modelFormRef
=
ref
()
const
openModelForm
=
(
type
:
string
,
id
?:
number
)
=>
{
...
...
@@ -483,6 +485,10 @@ const openModelForm = (type: string, id?: number) => {
push
({
name
:
'BpmModelUpdate'
,
params
:
{
id
,
type
}
}).
then
((
_
)
=>
{
if
(
type
===
'copy'
)
{
tagsView
.
setTitle
(
'复制流程'
)
}
})
}
}
...
...
src/views/bpm/model/form/index.vue
View file @
e44f48c0
...
...
@@ -160,6 +160,8 @@ const initData = async () => {
// 复制场景
if
(
route
.
params
.
type
===
'copy'
)
{
delete
formData
.
value
.
id
formData
.
value
.
name
+=
'副本'
formData
.
value
.
key
+=
'_copy'
}
}
else
{
// 新增场景
...
...
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