1.流程图显示问题

2.任务分配规则列表显示问题(传递id错误)
3.流程分类显示错误
This commit is contained in:
gexinzhineng/gxzn27 2023-02-28 09:59:44 +08:00
parent 666a523fee
commit f90c9a0c77
2 changed files with 15 additions and 4 deletions

View File

@ -26,8 +26,13 @@ const crudSchemas = reactive<VxeCrudSchema>({
{ {
title: '流程分类', title: '流程分类',
field: 'category', field: 'category',
dictType: DICT_TYPE.BPM_MODEL_CATEGORY, // dictType: DICT_TYPE.BPM_MODEL_CATEGORY,
dictClass: 'number' // dictClass: 'string'
table: {
slots: {
default: 'category_default'
}
}
}, },
{ {
title: '表单信息', title: '表单信息',

View File

@ -6,6 +6,10 @@
<template #name_default="{ row }"> <template #name_default="{ row }">
<XTextButton :title="row.name" @click="handleBpmnDetail(row.id)" /> <XTextButton :title="row.name" @click="handleBpmnDetail(row.id)" />
</template> </template>
<!-- 流程分类 -->
<template #category_default="{ row }">
<DictTag :type="DICT_TYPE.BPM_MODEL_CATEGORY" :value="Number(row?.category)" />
</template>
<!-- 表单信息 --> <!-- 表单信息 -->
<template #formId_default="{ row }"> <template #formId_default="{ row }">
<XTextButton <XTextButton
@ -61,6 +65,8 @@ import * as DefinitionApi from '@/api/bpm/definition'
// import * as ModelApi from '@/api/bpm/model' // import * as ModelApi from '@/api/bpm/model'
import { allSchemas } from './definition.data' import { allSchemas } from './definition.data'
import { setConfAndFields2 } from '@/utils/formCreate' import { setConfAndFields2 } from '@/utils/formCreate'
import { DICT_TYPE } from '@/utils/dict'
const bpmnXML = ref(null) const bpmnXML = ref(null)
const showBpmnOpen = ref(false) const showBpmnOpen = ref(false)
const bpmnControlForm = ref({ const bpmnControlForm = ref({
@ -105,7 +111,7 @@ const handleBpmnDetail = (row) => {
console.log(row) console.log(row)
DefinitionApi.getProcessDefinitionBpmnXMLApi(row).then((response) => { DefinitionApi.getProcessDefinitionBpmnXMLApi(row).then((response) => {
console.log(response, 'response') console.log(response, 'response')
bpmnXML.value = response.bpmnXml bpmnXML.value = response
// //
showBpmnOpen.value = true showBpmnOpen.value = true
}) })
@ -117,7 +123,7 @@ const handleAssignRule = (row) => {
router.push({ router.push({
name: 'BpmTaskAssignRuleList', name: 'BpmTaskAssignRuleList',
query: { query: {
modelId: row.id processDefinitionId: row.id
} }
}) })
} }