File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 43
43
v-if =" formDetailVisible"
44
44
/>
45
45
</XModal >
46
+ <!-- 流程模型图的预览 -->
47
+ <XModal title =" 流程图" v-model =" showBpmnOpen" width =" 80%" height =" 90%" >
48
+ <my-process-viewer
49
+ key =" designer"
50
+ v-model =" bpmnXML"
51
+ :value =" bpmnXML"
52
+ v-bind =" bpmnControlForm"
53
+ :prefix =" bpmnControlForm.prefix"
54
+ />
55
+ </XModal >
46
56
</ContentWrap >
47
57
</template >
48
58
<script setup lang="ts">
@@ -51,8 +61,12 @@ import * as DefinitionApi from '@/api/bpm/definition'
51
61
// import * as ModelApi from '@/api/bpm/model'
52
62
import { allSchemas } from ' ./definition.data'
53
63
import { setConfAndFields2 } from ' @/utils/formCreate'
54
-
55
- const message = useMessage () // 消息弹窗
64
+ const bpmnXML = ref (null )
65
+ const showBpmnOpen = ref (false )
66
+ const bpmnControlForm = ref ({
67
+ prefix: ' flowable'
68
+ })
69
+ // const message = useMessage() // 消息弹窗
56
70
const router = useRouter () // 路由
57
71
const { query } = useRoute () // 查询参数
58
72
@@ -89,7 +103,13 @@ const handleFormDetail = async (row) => {
89
103
const handleBpmnDetail = (row ) => {
90
104
// TODO 芋艿:流程组件开发中
91
105
console .log (row )
92
- message .success (' 流程组件开发中,预计 2 月底完成' )
106
+ DefinitionApi .getProcessDefinitionBpmnXMLApi (row ).then ((response ) => {
107
+ console .log (response , ' response' )
108
+ bpmnXML .value = response .bpmnXml
109
+ // 弹窗打开
110
+ showBpmnOpen .value = true
111
+ })
112
+ // message.success('流程组件开发中,预计 2 月底完成')
93
113
}
94
114
95
115
// 点击任务分配按钮
You can’t perform that action at this time.
0 commit comments