fix: [BPM 工作流] bug 修复
parent
23a503d84b
commit
0dc0f72508
|
@ -7,6 +7,7 @@ export namespace BpmProcessDefinitionApi {
|
|||
export interface ProcessDefinition {
|
||||
id: string;
|
||||
version: number;
|
||||
name: string;
|
||||
deploymentTime: number;
|
||||
suspensionState: number;
|
||||
modelType: number;
|
||||
|
@ -15,6 +16,7 @@ export namespace BpmProcessDefinitionApi {
|
|||
bpmnXml?: string;
|
||||
simpleModel?: string;
|
||||
formFields?: string[];
|
||||
icon?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -178,7 +178,8 @@ const processDefinitionGroup = computed(() => {
|
|||
});
|
||||
|
||||
/** 通过分类 code 获取对应的名称 */
|
||||
function getCategoryName(categoryCode: string) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
function _getCategoryName(categoryCode: string) {
|
||||
return categoryList.value?.find((ctg: any) => ctg.code === categoryCode)
|
||||
?.name;
|
||||
}
|
||||
|
@ -281,7 +282,6 @@ onMounted(() => {
|
|||
}"
|
||||
>
|
||||
<div class="flex items-center">
|
||||
<!-- TODO @ziye:icon、name 会告警~~ -->
|
||||
<img
|
||||
v-if="definition.icon"
|
||||
:src="definition.icon"
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
<script lang="ts" setup>
|
||||
import type { ApiAttrs } from '@form-create/ant-design-vue/types/config';
|
||||
|
||||
import type { BpmProcessDefinitionApi } from '#/api/bpm/definition';
|
||||
|
||||
import { computed, nextTick, ref, watch } from 'vue';
|
||||
|
@ -80,7 +78,7 @@ const detailForm = ref<ProcessFormData>({
|
|||
value: {},
|
||||
});
|
||||
|
||||
const fApi = ref<ApiAttrs>();
|
||||
const fApi = ref<any>();
|
||||
const startUserSelectTasks = ref<UserTask[]>([]);
|
||||
const startUserSelectAssignees = ref<Record<string, string[]>>({});
|
||||
const tempStartUserSelectAssignees = ref<Record<string, string[]>>({});
|
||||
|
@ -330,7 +328,12 @@ defineExpose({ initProcessInfo });
|
|||
</Row>
|
||||
</Tabs.TabPane>
|
||||
|
||||
<Tabs.TabPane tab="流程图" key="flow" class="flex flex-1 overflow-hidden">
|
||||
<Tabs.TabPane
|
||||
tab="流程图"
|
||||
key="flow"
|
||||
class="flex flex-1 overflow-hidden"
|
||||
:force-render="true"
|
||||
>
|
||||
<div class="w-full">
|
||||
<ProcessInstanceSimpleViewer
|
||||
:simple-json="simpleJson"
|
||||
|
|
Loading…
Reference in New Issue