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
666a523f
authored
Feb 27, 2023
by
gexinzhineng/gxzn27
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程定义查看流程图
parent
7ec35501
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
src/views/bpm/definition/index.vue
+23
-3
No files found.
src/views/bpm/definition/index.vue
View file @
666a523f
...
...
@@ -43,6 +43,16 @@
v-if=
"formDetailVisible"
/>
</XModal>
<!-- 流程模型图的预览 -->
<XModal
title=
"流程图"
v-model=
"showBpmnOpen"
width=
"80%"
height=
"90%"
>
<my-process-viewer
key=
"designer"
v-model=
"bpmnXML"
:value=
"bpmnXML"
v-bind=
"bpmnControlForm"
:prefix=
"bpmnControlForm.prefix"
/>
</XModal>
</ContentWrap>
</template>
<
script
setup
lang=
"ts"
>
...
...
@@ -51,8 +61,12 @@ import * as DefinitionApi from '@/api/bpm/definition'
// import * as ModelApi from '@/api/bpm/model'
import
{
allSchemas
}
from
'./definition.data'
import
{
setConfAndFields2
}
from
'@/utils/formCreate'
const
message
=
useMessage
()
// 消息弹窗
const
bpmnXML
=
ref
(
null
)
const
showBpmnOpen
=
ref
(
false
)
const
bpmnControlForm
=
ref
({
prefix
:
'flowable'
})
// const message = useMessage() // 消息弹窗
const
router
=
useRouter
()
// 路由
const
{
query
}
=
useRoute
()
// 查询参数
...
...
@@ -89,7 +103,13 @@ const handleFormDetail = async (row) => {
const
handleBpmnDetail
=
(
row
)
=>
{
// TODO 芋艿:流程组件开发中
console
.
log
(
row
)
message
.
success
(
'流程组件开发中,预计 2 月底完成'
)
DefinitionApi
.
getProcessDefinitionBpmnXMLApi
(
row
).
then
((
response
)
=>
{
console
.
log
(
response
,
'response'
)
bpmnXML
.
value
=
response
.
bpmnXml
// 弹窗打开
showBpmnOpen
.
value
=
true
})
// message.success('流程组件开发中,预计 2 月底完成')
}
// 点击任务分配按钮
...
...
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