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