File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,13 @@ const crudSchemas = reactive<VxeCrudSchema>({
26
26
{
27
27
title : '流程分类' ,
28
28
field : 'category' ,
29
- dictType : DICT_TYPE . BPM_MODEL_CATEGORY ,
30
- dictClass : 'number'
29
+ // dictType: DICT_TYPE.BPM_MODEL_CATEGORY,
30
+ // dictClass: 'string'
31
+ table : {
32
+ slots : {
33
+ default : 'category_default'
34
+ }
35
+ }
31
36
} ,
32
37
{
33
38
title : '表单信息' ,
Original file line number Diff line number Diff line change 6
6
<template #name_default =" { row } " >
7
7
<XTextButton :title =" row.name" @click =" handleBpmnDetail(row.id)" />
8
8
</template >
9
+ <!-- 流程分类 -->
10
+ <template #category_default =" { row } " >
11
+ <DictTag :type =" DICT_TYPE.BPM_MODEL_CATEGORY" :value =" Number(row?.category)" />
12
+ </template >
9
13
<!-- 表单信息 -->
10
14
<template #formId_default =" { row } " >
11
15
<XTextButton
@@ -61,6 +65,8 @@ import * as DefinitionApi from '@/api/bpm/definition'
61
65
// import * as ModelApi from '@/api/bpm/model'
62
66
import { allSchemas } from ' ./definition.data'
63
67
import { setConfAndFields2 } from ' @/utils/formCreate'
68
+ import { DICT_TYPE } from ' @/utils/dict'
69
+
64
70
const bpmnXML = ref (null )
65
71
const showBpmnOpen = ref (false )
66
72
const bpmnControlForm = ref ({
@@ -105,7 +111,7 @@ const handleBpmnDetail = (row) => {
105
111
console .log (row )
106
112
DefinitionApi .getProcessDefinitionBpmnXMLApi (row ).then ((response ) => {
107
113
console .log (response , ' response' )
108
- bpmnXML .value = response . bpmnXml
114
+ bpmnXML .value = response
109
115
// 弹窗打开
110
116
showBpmnOpen .value = true
111
117
})
@@ -117,7 +123,7 @@ const handleAssignRule = (row) => {
117
123
router .push ({
118
124
name: ' BpmTaskAssignRuleList' ,
119
125
query: {
120
- modelId : row .id
126
+ processDefinitionId : row .id
121
127
}
122
128
})
123
129
}
You can’t perform that action at this time.
0 commit comments