feat:流程-流程实例的版本问题
3.用vue.nextTick 来更新props 赋值延后问题
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
@row-dbClick="dbClickRow"
|
||||
>
|
||||
<template #toolbar>
|
||||
<!-- <LookProcess :taskId="taskId" :processId="processId" @close="reload"
|
||||
<!-- <LookProcess ref="lookProcess" :taskId="taskId" :processId="processId" @close="reload"
|
||||
><a-button v-auth="'monitor:view'">{{ t('查看') }}</a-button></LookProcess
|
||||
> -->
|
||||
<!-- <a-button v-auth="'monitor:appointedAuditor'" @click="approveUser" v-if="data.type === 0">{{
|
||||
@ -94,7 +94,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { createVNode, onMounted, reactive, ref } from 'vue';
|
||||
import { createVNode, onMounted, reactive, ref, nextTick } from 'vue';
|
||||
import { useModal } from '/@/components/Modal';
|
||||
import { BasicTree } from '/@/components/Tree';
|
||||
import { PageWrapper } from '/@/components/Page';
|
||||
@ -110,7 +110,6 @@
|
||||
import { BasicTable, useTable, FormSchema, BasicColumn } from '/@/components/Table';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { aW } from '@fullcalendar/core/internal-common';
|
||||
const { currentRoute } = useRouter();
|
||||
const router = useRouter();
|
||||
|
||||
@ -402,6 +401,7 @@
|
||||
async function dbClickRow(record) {
|
||||
processId.value = record.processId;
|
||||
taskId.value = record.taskId;//改版 一个流程中可能有多个taskId 已不返回
|
||||
await nextTick()
|
||||
await lookProcess.value.look();
|
||||
}
|
||||
|
||||
@ -420,12 +420,12 @@
|
||||
versionData.definitionKey = selectRows[0].processDefinitionKey;
|
||||
versionData.schemaId = selectRows[0].schemaId;
|
||||
versionData.processIds = selectRows.map(selectRows => selectRows.processId);
|
||||
await nextTick();
|
||||
await getNextTick();
|
||||
openUpdateProcessVersionModal();
|
||||
}
|
||||
}
|
||||
|
||||
function nextTick () {
|
||||
function getNextTick () {
|
||||
data.visibleVersion = true;
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -62,6 +62,6 @@
|
||||
emits('close');
|
||||
}
|
||||
defineExpose({
|
||||
look
|
||||
look,
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user