fix:【BPM 工作流】流程预测时,“查看子流程”按钮不支持点击

pull/181/MERGE
YunaiV 2025-07-22 19:31:40 +08:00 committed by xingyu
parent 7526ff5b87
commit f14954f7e2
4 changed files with 9 additions and 0 deletions

View File

@ -40,6 +40,7 @@ export namespace BpmProcessInstanceApi {
nodeType: BpmNodeTypeEnum; nodeType: BpmNodeTypeEnum;
startTime?: Date; startTime?: Date;
status: number; status: number;
processInstanceId?: string;
tasks: ApprovalTaskInfo[]; tasks: ApprovalTaskInfo[];
} }

View File

@ -1,4 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
// TODO @gjdhttps://t.zsxq.com/pmNb1 AI
import type { AiChatConversationApi } from '#/api/ai/chat/conversation'; import type { AiChatConversationApi } from '#/api/ai/chat/conversation';
import type { AiChatMessageApi } from '#/api/ai/chat/message'; import type { AiChatMessageApi } from '#/api/ai/chat/message';
@ -23,6 +24,7 @@ import MessageList from './components/message/MessageList.vue';
import MessageListEmpty from './components/message/MessageListEmpty.vue'; import MessageListEmpty from './components/message/MessageListEmpty.vue';
import MessageLoading from './components/message/MessageLoading.vue'; import MessageLoading from './components/message/MessageLoading.vue';
import MessageNewConversation from './components/message/MessageNewConversation.vue'; import MessageNewConversation from './components/message/MessageNewConversation.vue';
/** AI 聊天对话 列表 */ /** AI 聊天对话 列表 */
defineOptions({ name: 'AiChat' }); defineOptions({ name: 'AiChat' });

View File

@ -2,6 +2,8 @@
import type { BpmProcessInstanceApi } from '#/api/bpm/processInstance'; import type { BpmProcessInstanceApi } from '#/api/bpm/processInstance';
import type { SystemUserApi } from '#/api/system/user'; import type { SystemUserApi } from '#/api/system/user';
// TODO @jason https://t.zsxq.com/eif2e
import { nextTick, onMounted, ref, shallowRef, watch } from 'vue'; import { nextTick, onMounted, ref, shallowRef, watch } from 'vue';
import { Page } from '@vben/common-ui'; import { Page } from '@vben/common-ui';

View File

@ -181,6 +181,9 @@ function handleUserSelectConfirm(userList: any[]) {
/** 跳转子流程 */ /** 跳转子流程 */
function handleChildProcess(activity: any) { function handleChildProcess(activity: any) {
if (!activity.processInstanceId) {
return;
}
push({ push({
name: 'BpmProcessInstanceDetail', name: 'BpmProcessInstanceDetail',
query: { query: {
@ -284,6 +287,7 @@ function handleUserSelectCancel() {
ghost ghost
size="small" size="small"
@click="handleChildProcess(activity)" @click="handleChildProcess(activity)"
:disabled="!activity.processInstanceId"
> >
查看子流程 查看子流程
</Button> </Button>