Skip to content

FlowTaskDetailShell 审批详情外壳

审批任务详情外壳组件。基于 n-modal 的模态弹窗布局,左侧为主内容区(审批表单详情),右侧为审批记录时间线。支持全屏模式。

基本用法

vue
<template>
  <FlowTaskDetailShell
    v-model:show="showDetail"
    title="请假审批"
    subtitle="张三 - 年假申请"
    status-text="审批中"
    status-class="pending"
    priority-text="紧急"
    priority-class="urgent"
    :records="approvalRecords"
    fullscreen
  >
    <LeaveDetailForm />
  </FlowTaskDetailShell>
</template>

<script setup>
import { FlowTaskDetailShell } from '@/components/flow'
import { ref } from 'vue'

const showDetail = ref(false)
const approvalRecords = ref([])
</script>

Props

属性类型默认值说明
showBooleanfalse控制弹窗显示/隐藏
titleString''详情标题
subtitleString''详情副标题
statusTextString''审批状态文本("审批中"、"已完成"等)
statusClassString'default'状态 CSS class:pending/warning/success/error/default
statusIconString'i-material-symbols:check-circle'状态图标
priorityTextString''优先级文本
priorityClassString''优先级 CSS class:high/urgent/warning/error
recordTitleString'审批记录'右侧记录区标题
recordsArray[]审批记录列表
busyBooleanfalse忙碌状态(禁用遮罩关闭和 ESC 关闭)
fullscreenBooleantrue是否全屏模式

records 数组项结构

字段类型说明
actionString审批操作
taskNameString任务名称
assigneeNameString处理人名称
completeTimeString完成时间
commentString审批意见
signatureString签名图片/文本

Events

事件名参数说明
update:showBoolean弹窗显示状态变更

Slots

插槽名说明
default主内容区(左侧审批详情)
toolbar顶部工具栏区域
record-action审批记录头部右侧操作按钮
aside-extra审批记录列表下方额外内容

Forge Admin — 基于 Vue3 + Spring Boot 的企业级后台管理框架