【代码评审】Bpm:新的编辑界面

pull/624/MERGE
YunaiV 2024-12-20 09:25:13 +08:00
parent ea97abc0af
commit 5a0bcfe6b5
1 changed files with 16 additions and 10 deletions

View File

@ -75,7 +75,11 @@
<script lang="ts" setup>
import { decodeFields, setConfAndFields2 } from '@/utils/formCreate'
import { BpmModelType } from '@/utils/constants'
import { CandidateStrategy, NodeId, FieldPermissionType } from '@/components/SimpleProcessDesignerV2/src/consts'
import {
CandidateStrategy,
NodeId,
FieldPermissionType
} from '@/components/SimpleProcessDesignerV2/src/consts'
import ProcessInstanceBpmnViewer from '../detail/ProcessInstanceBpmnViewer.vue'
import ProcessInstanceSimpleViewer from '../detail/ProcessInstanceSimpleViewer.vue'
import ProcessInstanceTimeline from '../detail/ProcessInstanceTimeline.vue'
@ -130,7 +134,7 @@ const initProcessInfo = async (row: any, formVariables?: any) => {
}
setConfAndFields2(detailForm, row.formConf, row.formFields, formVariables)
await nextTick();
await nextTick()
fApi.value?.btn.show(false) //
//
@ -154,8 +158,11 @@ const initProcessInfo = async (row: any, formVariables?: any) => {
/** 获取审批详情 */
const getApprovalDetail = async (row: any) => {
try {
// activityId Simple
const data = await ProcessInstanceApi.getApprovalDetail({ processDefinitionId: row.id, activityId : NodeId.START_USER_NODE_ID })
// TODO activityId Simple
const data = await ProcessInstanceApi.getApprovalDetail({
processDefinitionId: row.id,
activityId: NodeId.START_USER_NODE_ID
})
if (!data) {
message.error('查询不到审批详情信息!')
@ -197,7 +204,6 @@ const getApprovalDetail = async (row: any) => {
if (permission === FieldPermissionType.WRITE) {
//@ts-ignore
fApi.value?.disabled(false, field)
}
if (permission === FieldPermissionType.NONE) {
//@ts-ignore