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