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
d0ed5edb
authored
Mar 25, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vue3 重构:form 和 model 编辑器,调整路由
parent
9e798fb7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
45 deletions
+29
-45
src/router/modules/remaining.ts
+3
-3
src/views/bpm/form/editor/index.vue
+0
-0
src/views/bpm/model/editor/index.vue
+26
-42
No files found.
src/router/modules/remaining.ts
View file @
d0ed5edb
...
...
@@ -225,7 +225,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
children
:
[
{
path
:
'/manager/form/edit'
,
component
:
()
=>
import
(
'@/views/bpm/form/
FormEditor
.vue'
),
component
:
()
=>
import
(
'@/views/bpm/form/
editor/index
.vue'
),
name
:
'bpmFormEditor'
,
meta
:
{
noCache
:
true
,
...
...
@@ -237,14 +237,14 @@ const remainingRouter: AppRouteRecordRaw[] = [
},
{
path
:
'/manager/model/edit'
,
component
:
()
=>
import
(
'@/views/bpm/model/
modelEditor
.vue'
),
component
:
()
=>
import
(
'@/views/bpm/model/
editor/index
.vue'
),
name
:
'modelEditor'
,
meta
:
{
noCache
:
true
,
hidden
:
true
,
canTo
:
true
,
title
:
'设计流程'
,
activeMenu
:
'
bpm/manager/model/design
'
activeMenu
:
'
/bpm/manager/model
'
}
},
{
...
...
src/views/bpm/form/
FormEditor
.vue
→
src/views/bpm/form/
editor/index
.vue
View file @
d0ed5edb
File moved
src/views/bpm/model/
modelEditor
.vue
→
src/views/bpm/model/
editor/index
.vue
View file @
d0ed5edb
<
template
>
<!-- 流程设计器,负责绘制流程等 -->
<my-process-designer
key=
"designer"
v-if=
"xmlString !== undefined"
v-model=
"xmlString"
:value=
"xmlString"
v-bind=
"controlForm"
keyboard
ref=
"processDesigner"
@
init-finished=
"initModeler"
:additionalModel=
"controlForm.additionalModel"
@
save=
"save"
/>
<!-- 流程属性器,负责编辑每个流程节点的属性 -->
<my-properties-panel
key=
"penal"
:bpmnModeler=
"modeler"
:prefix=
"controlForm.prefix"
class=
"process-panel"
:model=
"model"
/>
<ContentWrap>
<!-- 流程设计器,负责绘制流程等 -->
<my-process-designer
key=
"designer"
v-if=
"xmlString !== undefined"
v-model=
"xmlString"
:value=
"xmlString"
v-bind=
"controlForm"
keyboard
ref=
"processDesigner"
@
init-finished=
"initModeler"
:additionalModel=
"controlForm.additionalModel"
@
save=
"save"
/>
<!-- 流程属性器,负责编辑每个流程节点的属性 -->
<my-properties-panel
key=
"penal"
:bpmnModeler=
"modeler"
:prefix=
"controlForm.prefix"
class=
"process-panel"
:model=
"model"
/>
</ContentWrap>
</
template
>
<
script
setup
lang=
"ts"
>
...
...
@@ -34,7 +36,7 @@ const { query } = useRoute() // 路由的查询
const
message
=
useMessage
()
// 国际化
const
xmlString
=
ref
(
undefined
)
// BPMN XML
const
modeler
=
ref
(
null
)
const
modeler
=
ref
(
null
)
// BPMN Modeler
const
controlForm
=
ref
({
simulation
:
true
,
labelEditing
:
false
,
...
...
@@ -92,27 +94,9 @@ onMounted(async () => {
})
</
script
>
<
style
lang=
"scss"
>
.control-form
{
.el-radio
{
width
:
100%
;
line-height
:
32px
;
}
}
.element-overlays
{
box-sizing
:
border-box
;
padding
:
8px
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
border-radius
:
4px
;
color
:
#fafafa
;
}
.my-process-designer
{
height
:
calc
(
100vh
-
84px
);
}
.process-panel__container
{
position
:
absolute
;
right
:
0
;
top
:
55px
;
height
:
calc
(
100vh
-
84px
);
right
:
60px
;
top
:
90px
;
}
</
style
>
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