refactor: title显示
This commit is contained in:
parent
3525571fab
commit
4ffb781f0a
@ -17,6 +17,10 @@ export interface TaskInfo {
|
||||
businessId: string;
|
||||
nodeCode: string;
|
||||
nodeName: string;
|
||||
/**
|
||||
* >5.5.0版本才有自定义标题
|
||||
*/
|
||||
businessTitle?: string;
|
||||
nodeType: number;
|
||||
permissionList?: any;
|
||||
userList?: any;
|
||||
|
||||
@ -43,7 +43,11 @@ const diffUpdateTimeString = computed(() => {
|
||||
class="cursor-pointer rounded-lg border-[1px] border-solid p-3 transition-shadow duration-300 ease-in-out hover:shadow-lg"
|
||||
@click.stop="handleClick"
|
||||
>
|
||||
<Descriptions :column="1" :title="info.flowName" size="middle">
|
||||
<Descriptions
|
||||
:column="1"
|
||||
:title="info.businessTitle ?? info.flowName"
|
||||
size="middle"
|
||||
>
|
||||
<template #extra>
|
||||
<component
|
||||
:is="renderDict(info.flowStatus, DictEnum.WF_BUSINESS_STATUS)"
|
||||
|
||||
@ -417,7 +417,9 @@ async function handleCopy(text: string) {
|
||||
<div class="flex flex-col gap-5 p-4">
|
||||
<div class="flex flex-col gap-3">
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="text-2xl font-bold">{{ task.flowName }}</div>
|
||||
<div class="text-2xl font-bold">
|
||||
{{ task.businessTitle ?? task.flowName }}
|
||||
</div>
|
||||
<div>
|
||||
<component
|
||||
:is="renderDict(task.flowStatus, DictEnum.WF_BUSINESS_STATUS)"
|
||||
|
||||
@ -138,7 +138,7 @@ async function handleStartWorkFlow() {
|
||||
flowCode,
|
||||
variables: taskVariables,
|
||||
flowInstanceBizExtBo: {
|
||||
businessTitle: '请假申请 - 自定义业务标题',
|
||||
businessTitle: '请假申请 - 自定义标题',
|
||||
businessCode: leaveResp!.applyCode,
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user