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
99790bae
authored
Jan 17, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能评审】Bpm:复制流程
parent
6b1c0e73
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
15 deletions
+12
-15
src/components/SimpleProcessDesignerV2/src/SimpleProcessModel.vue
+1
-2
src/layout/components/TagsView/src/TagsView.vue
+0
-1
src/store/modules/tagsView.ts
+1
-1
src/views/bpm/model/CategoryDraggableModel.vue
+9
-9
src/views/bpm/model/editor/index.vue
+1
-2
No files found.
src/components/SimpleProcessDesignerV2/src/SimpleProcessModel.vue
View file @
99790bae
...
@@ -51,7 +51,7 @@ import { SimpleFlowNode, NodeType, NODE_DEFAULT_TEXT } from './consts'
...
@@ -51,7 +51,7 @@ import { SimpleFlowNode, NodeType, NODE_DEFAULT_TEXT } from './consts'
import
{
useWatchNode
}
from
'./node'
import
{
useWatchNode
}
from
'./node'
import
{
ZoomOut
,
ZoomIn
,
ScaleToOriginal
}
from
'@element-plus/icons-vue'
import
{
ZoomOut
,
ZoomIn
,
ScaleToOriginal
}
from
'@element-plus/icons-vue'
import
{
isString
}
from
'@/utils/is'
import
{
isString
}
from
'@/utils/is'
import
download
from
"@/utils/download"
;
import
download
from
'@/utils/download'
defineOptions
({
defineOptions
({
name
:
'SimpleProcessModel'
name
:
'SimpleProcessModel'
...
@@ -173,7 +173,6 @@ defineExpose({
...
@@ -173,7 +173,6 @@ defineExpose({
})
})
/** 导出 JSON */
/** 导出 JSON */
// TODO @zws:增加一个 download 里面搞个 json 更好
const
exportJson
=
()
=>
{
const
exportJson
=
()
=>
{
download
.
json
(
new
Blob
([
JSON
.
stringify
(
processNodeTree
.
value
)]),
'model.json'
)
download
.
json
(
new
Blob
([
JSON
.
stringify
(
processNodeTree
.
value
)]),
'model.json'
)
}
}
...
...
src/layout/components/TagsView/src/TagsView.vue
View file @
99790bae
...
@@ -15,7 +15,6 @@ import { useScrollTo } from '@/hooks/event/useScrollTo'
...
@@ -15,7 +15,6 @@ import { useScrollTo } from '@/hooks/event/useScrollTo'
import
{
useTagsView
}
from
'@/hooks/web/useTagsView'
import
{
useTagsView
}
from
'@/hooks/web/useTagsView'
import
{
cloneDeep
}
from
'lodash-es'
import
{
cloneDeep
}
from
'lodash-es'
defineOptions
({
name
:
'TagsView'
})
defineOptions
({
name
:
'TagsView'
})
const
{
getPrefixCls
}
=
useDesign
()
const
{
getPrefixCls
}
=
useDesign
()
...
...
src/store/modules/tagsView.ts
View file @
99790bae
...
@@ -156,7 +156,7 @@ export const useTagsViewStore = defineStore('tagsView', {
...
@@ -156,7 +156,7 @@ export const useTagsViewStore = defineStore('tagsView', {
}
}
}
}
},
},
// 设置当前选中的tag
// 设置当前选中的
tag
setSelectedTag
(
tag
:
RouteLocationNormalizedLoaded
)
{
setSelectedTag
(
tag
:
RouteLocationNormalizedLoaded
)
{
this
.
selectedTag
=
tag
this
.
selectedTag
=
tag
},
},
...
...
src/views/bpm/model/CategoryDraggableModel.vue
View file @
99790bae
...
@@ -262,7 +262,7 @@ import { checkPermi } from '@/utils/permission'
...
@@ -262,7 +262,7 @@ import { checkPermi } from '@/utils/permission'
import
{
useUserStoreWithOut
}
from
'@/store/modules/user'
import
{
useUserStoreWithOut
}
from
'@/store/modules/user'
import
{
useAppStore
}
from
'@/store/modules/app'
import
{
useAppStore
}
from
'@/store/modules/app'
import
{
cloneDeep
}
from
'lodash-es'
import
{
cloneDeep
}
from
'lodash-es'
import
{
useTagsView
}
from
"@/hooks/web/useTagsView"
;
import
{
useTagsView
}
from
'@/hooks/web/useTagsView'
defineOptions
({
name
:
'BpmModel'
})
defineOptions
({
name
:
'BpmModel'
})
...
@@ -499,21 +499,21 @@ const handleDeleteCategory = async () => {
...
@@ -499,21 +499,21 @@ const handleDeleteCategory = async () => {
}
catch
{}
}
catch
{}
}
}
const
tagsView
=
useTagsView
();
/** 添加流程模型弹窗 */
/** 添加流程模型弹窗 */
const
tagsView
=
useTagsView
()
const
modelFormRef
=
ref
()
const
modelFormRef
=
ref
()
const
openModelForm
=
(
type
:
string
,
id
?:
number
)
=>
{
const
openModelForm
=
async
(
type
:
string
,
id
?:
number
)
=>
{
if
(
type
===
'create'
)
{
if
(
type
===
'create'
)
{
push
({
name
:
'BpmModelCreate'
})
await
push
({
name
:
'BpmModelCreate'
})
}
else
{
}
else
{
push
({
await
push
({
name
:
'BpmModelUpdate'
,
name
:
'BpmModelUpdate'
,
params
:
{
id
,
type
}
params
:
{
id
,
type
}
}).
then
((
_
)
=>
{
if
(
type
===
'copy'
)
{
tagsView
.
setTitle
(
'复制流程'
)
}
})
})
// 设置标题
if
(
type
===
'copy'
)
{
tagsView
.
setTitle
(
'复制流程'
)
}
}
}
}
}
...
...
src/views/bpm/model/editor/index.vue
View file @
99790bae
...
@@ -71,8 +71,7 @@ const controlForm = ref({
...
@@ -71,8 +71,7 @@ const controlForm = ref({
const
model
=
ref
<
ModelApi
.
ModelVO
>
()
// 流程模型的信息
const
model
=
ref
<
ModelApi
.
ModelVO
>
()
// 流程模型的信息
/** 初始化 modeler */
/** 初始化 modeler */
// TODO @zws:需要初始化,不然首次创建后,无法发布!相当于说,key、name 要去赋值下
const
initModeler
=
async
(
item
:
any
)
=>
{
const
initModeler
=
async
(
item
)
=>
{
//先初始化模型数据
//先初始化模型数据
model
.
value
=
modelData
.
value
model
.
value
=
modelData
.
value
modeler
.
value
=
item
modeler
.
value
=
item
...
...
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