【代码评审】工作流:新审批界面
parent
dd4c4817e4
commit
619491b4d0
|
@ -3,6 +3,7 @@
|
||||||
class="h-50px bottom-10 text-14px flex items-center color-#32373c dark:color-#fff font-bold btn-container"
|
class="h-50px bottom-10 text-14px flex items-center color-#32373c dark:color-#fff font-bold btn-container"
|
||||||
v-if="runningTask.id"
|
v-if="runningTask.id"
|
||||||
>
|
>
|
||||||
|
<!-- 【通过】按钮 -->
|
||||||
<el-popover
|
<el-popover
|
||||||
:visible="passVisible"
|
:visible="passVisible"
|
||||||
placement="top-end"
|
placement="top-end"
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
<Icon icon="ep:select" /> {{ getButtonDisplayName(OperationButtonType.APPROVE) }}
|
<Icon icon="ep:select" /> {{ getButtonDisplayName(OperationButtonType.APPROVE) }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
<!-- 审批表单 -->
|
||||||
<div class="flex flex-col flex-1 pt-20px px-20px" v-loading="formLoading">
|
<div class="flex flex-col flex-1 pt-20px px-20px" v-loading="formLoading">
|
||||||
<el-form
|
<el-form
|
||||||
label-position="top"
|
label-position="top"
|
||||||
|
@ -64,6 +66,8 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
|
|
||||||
|
<!-- 【拒绝】按钮 -->
|
||||||
<el-popover
|
<el-popover
|
||||||
:visible="rejectVisible"
|
:visible="rejectVisible"
|
||||||
placement="top-end"
|
placement="top-end"
|
||||||
|
@ -76,6 +80,7 @@
|
||||||
<Icon icon="ep:close" /> {{ getButtonDisplayName(OperationButtonType.REJECT) }}
|
<Icon icon="ep:close" /> {{ getButtonDisplayName(OperationButtonType.REJECT) }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
<!-- 审批表单 -->
|
||||||
<div class="flex flex-col flex-1 pt-20px px-20px" v-loading="formLoading">
|
<div class="flex flex-col flex-1 pt-20px px-20px" v-loading="formLoading">
|
||||||
<el-form
|
<el-form
|
||||||
label-position="top"
|
label-position="top"
|
||||||
|
@ -125,21 +130,39 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
|
|
||||||
|
<!-- 【抄送】按钮 -->
|
||||||
<div @click="handleSend"> <Icon :size="14" icon="svg-icon:send" /> 抄送 </div>
|
<div @click="handleSend"> <Icon :size="14" icon="svg-icon:send" /> 抄送 </div>
|
||||||
|
|
||||||
|
<!-- 【转交】按钮 -->
|
||||||
<div @click="openTaskUpdateAssigneeForm" v-if="isShowButton(OperationButtonType.TRANSFER)">
|
<div @click="openTaskUpdateAssigneeForm" v-if="isShowButton(OperationButtonType.TRANSFER)">
|
||||||
<Icon :size="14" icon="fa:share-square-o" /> {{ getButtonDisplayName(OperationButtonType.TRANSFER) }}
|
<Icon :size="14" icon="fa:share-square-o" />
|
||||||
|
{{ getButtonDisplayName(OperationButtonType.TRANSFER) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 【委托】按钮 -->
|
||||||
<div @click="handleDelegate" v-if="isShowButton(OperationButtonType.DELEGATE)">
|
<div @click="handleDelegate" v-if="isShowButton(OperationButtonType.DELEGATE)">
|
||||||
<Icon :size="14" icon="ep:position" /> {{ getButtonDisplayName(OperationButtonType.DELEGATE) }}
|
<Icon :size="14" icon="ep:position" />
|
||||||
|
{{ getButtonDisplayName(OperationButtonType.DELEGATE) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 【加签】 -->
|
||||||
<div @click="handleSign" v-if="isShowButton(OperationButtonType.ADD_SIGN)">
|
<div @click="handleSign" v-if="isShowButton(OperationButtonType.ADD_SIGN)">
|
||||||
<Icon :size="14" icon="ep:plus" /> {{ getButtonDisplayName(OperationButtonType.ADD_SIGN) }}
|
<Icon :size="14" icon="ep:plus" />
|
||||||
|
{{ getButtonDisplayName(OperationButtonType.ADD_SIGN) }}
|
||||||
</div>
|
</div>
|
||||||
|
<!-- TODO @jason:减签 -->
|
||||||
|
|
||||||
|
<!-- 【退回】按钮 -->
|
||||||
<div @click="handleBack" v-if="isShowButton(OperationButtonType.RETURN)">
|
<div @click="handleBack" v-if="isShowButton(OperationButtonType.RETURN)">
|
||||||
<Icon :size="14" icon="fa:mail-reply" /> {{ getButtonDisplayName(OperationButtonType.RETURN) }}
|
<Icon :size="14" icon="fa:mail-reply" />
|
||||||
|
{{ getButtonDisplayName(OperationButtonType.RETURN) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!--TODO @jason:撤回 -->
|
||||||
|
<!--TODO @jason:再次发起 -->
|
||||||
</div>
|
</div>
|
||||||
<!-- </div> -->
|
|
||||||
<!-- 弹窗:转派审批人 -->
|
<!-- 弹窗:转派审批人 -->
|
||||||
<TaskTransferForm ref="taskTransferFormRef" @success="getDetail" />
|
<TaskTransferForm ref="taskTransferFormRef" @success="getDetail" />
|
||||||
<!-- 弹窗:回退节点 -->
|
<!-- 弹窗:回退节点 -->
|
||||||
|
@ -149,7 +172,6 @@
|
||||||
<!-- 弹窗:加签,当前任务审批人为A,向前加签选了一个C,则需要C先审批,然后再是A审批,向后加签B,A审批完,需要B再审批完,才算完成这个任务节点 -->
|
<!-- 弹窗:加签,当前任务审批人为A,向前加签选了一个C,则需要C先审批,然后再是A审批,向后加签B,A审批完,需要B再审批完,才算完成这个任务节点 -->
|
||||||
<TaskSignCreateForm ref="taskSignCreateFormRef" @success="getDetail" />
|
<TaskSignCreateForm ref="taskSignCreateFormRef" @success="getDetail" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { setConfAndFields2 } from '@/utils/formCreate'
|
import { setConfAndFields2 } from '@/utils/formCreate'
|
||||||
import { useUserStore } from '@/store/modules/user'
|
import { useUserStore } from '@/store/modules/user'
|
||||||
|
@ -198,15 +220,17 @@ watch(
|
||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// TODO @jaosn:具体的审批任务,要不改成后端返回。让前端弱化下
|
||||||
/**
|
/**
|
||||||
* 设置 runningTasks 中的任务
|
* 设置 runningTasks 中的任务
|
||||||
*/
|
*/
|
||||||
const loadRunningTask = (tasks) => {
|
const loadRunningTask = (tasks: any[]) => {
|
||||||
runningTask.value = {}
|
runningTask.value = {}
|
||||||
auditForm.value = {}
|
auditForm.value = {}
|
||||||
approveForm.value = {}
|
approveForm.value = {}
|
||||||
approveFormFApi.value = {}
|
approveFormFApi.value = {}
|
||||||
tasks.forEach((task) => {
|
tasks.forEach((task: any) => {
|
||||||
if (!isEmpty(task.children)) {
|
if (!isEmpty(task.children)) {
|
||||||
loadRunningTask(task.children)
|
loadRunningTask(task.children)
|
||||||
}
|
}
|
||||||
|
@ -237,7 +261,7 @@ const loadRunningTask = (tasks) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 处理审批通过和不通过的操作 */
|
/** 处理审批通过和不通过的操作 */
|
||||||
const handleAudit = async (pass) => {
|
const handleAudit = async (pass: any) => {
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
try {
|
try {
|
||||||
const auditFormRef = proxy.$refs['formRef']
|
const auditFormRef = proxy.$refs['formRef']
|
||||||
|
@ -277,6 +301,7 @@ const handleAudit = async (pass) => {
|
||||||
/* 抄送 TODO */
|
/* 抄送 TODO */
|
||||||
const handleSend = () => {}
|
const handleSend = () => {}
|
||||||
|
|
||||||
|
// TODO 代码优化:这里 flag 改成 approve: boolean 。因为 flag 目前就只有 1 和 2
|
||||||
const openPopover = (flag) => {
|
const openPopover = (flag) => {
|
||||||
passVisible.value = false
|
passVisible.value = false
|
||||||
rejectVisible.value = false
|
rejectVisible.value = false
|
||||||
|
@ -323,11 +348,11 @@ const isShowButton = (btnType: OperationButtonType): boolean => {
|
||||||
|
|
||||||
/** 获取按钮的显示名称 */
|
/** 获取按钮的显示名称 */
|
||||||
const getButtonDisplayName = (btnType: OperationButtonType) => {
|
const getButtonDisplayName = (btnType: OperationButtonType) => {
|
||||||
let diaplayName = OPERATION_BUTTON_NAME.get(btnType)
|
let displayName = OPERATION_BUTTON_NAME.get(btnType)
|
||||||
if (runningTask.value.buttonsSetting && runningTask.value.buttonsSetting[btnType]) {
|
if (runningTask.value.buttonsSetting && runningTask.value.buttonsSetting[btnType]) {
|
||||||
diaplayName = runningTask.value.buttonsSetting[btnType].displayName
|
displayName = runningTask.value.buttonsSetting[btnType].displayName
|
||||||
}
|
}
|
||||||
return diaplayName
|
return displayName
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({ loadRunningTask })
|
defineExpose({ loadRunningTask })
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
<!-- 审批详情的右侧:审批流 -->
|
||||||
<template>
|
<template>
|
||||||
<el-timeline class="pt-20px">
|
<el-timeline class="pt-20px">
|
||||||
|
<!-- 遍历每个审批节点 -->
|
||||||
<el-timeline-item
|
<el-timeline-item
|
||||||
v-for="(activity, index) in approveNodes"
|
v-for="(activity, index) in approveNodes"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
@ -10,24 +12,27 @@
|
||||||
<div class="flex flex-col items-start">
|
<div class="flex flex-col items-start">
|
||||||
<div class="font-bold"> {{ activity.name }}</div>
|
<div class="font-bold"> {{ activity.name }}</div>
|
||||||
<div class="flex items-center mt-1">
|
<div class="flex items-center mt-1">
|
||||||
|
<!-- 情况一:遍历每个审批节点下的【进行中】task 任务 -->
|
||||||
<div v-for="(task, idx) in activity.tasks" :key="idx" class="flex items-center">
|
<div v-for="(task, idx) in activity.tasks" :key="idx" class="flex items-center">
|
||||||
<div class="flex items-center flex-col pr-2">
|
<div class="flex items-center flex-col pr-2">
|
||||||
<div class="position-relative" v-if="task.assigneeUser || task.ownerUser">
|
<div class="position-relative" v-if="task.assigneeUser || task.ownerUser">
|
||||||
|
<!-- 信息:头像 -->
|
||||||
<el-avatar
|
<el-avatar
|
||||||
:size="36"
|
:size="36"
|
||||||
v-if="task.assigneeUser && task.assigneeUser.avatar"
|
v-if="task.assigneeUser && task.assigneeUser.avatar"
|
||||||
:src="task.assigneeUser.avatar"
|
:src="task.assigneeUser.avatar"
|
||||||
/>
|
/>
|
||||||
<el-avatar v-else-if="task.assigneeUser && task.assigneeUser.nickname">
|
<el-avatar v-else-if="task.assigneeUser && task.assigneeUser.nickname">
|
||||||
{{ task.assigneeUser.nickname.substring(0, 1) }}</el-avatar
|
{{ task.assigneeUser.nickname.substring(0, 1) }}
|
||||||
>
|
</el-avatar>
|
||||||
<el-avatar
|
<el-avatar
|
||||||
v-else-if="task.ownerUser && task.ownerUser.avatar"
|
v-else-if="task.ownerUser && task.ownerUser.avatar"
|
||||||
:src="task.ownerUser.avatar"
|
:src="task.ownerUser.avatar"
|
||||||
/>
|
/>
|
||||||
<el-avatar v-else-if="task.ownerUser && task.ownerUser.nickname">
|
<el-avatar v-else-if="task.ownerUser && task.ownerUser.nickname">
|
||||||
{{ task.ownerUser.nickname.substring(0, 1) }}</el-avatar
|
{{ task.ownerUser.nickname.substring(0, 1) }}
|
||||||
>
|
</el-avatar>
|
||||||
|
<!-- 信息:任务 ICON -->
|
||||||
<div
|
<div
|
||||||
class="position-absolute top-26px left-26px bg-#fff rounded-full flex items-center p-2px"
|
class="position-absolute top-26px left-26px bg-#fff rounded-full flex items-center p-2px"
|
||||||
>
|
>
|
||||||
|
@ -39,21 +44,25 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col mt-1">
|
<div class="flex flex-col mt-1">
|
||||||
|
<!-- 信息:昵称 -->
|
||||||
<div
|
<div
|
||||||
v-if="task.assigneeUser && task.assigneeUser.nickname"
|
v-if="task.assigneeUser && task.assigneeUser.nickname"
|
||||||
class="text-10px text-align-center"
|
class="text-10px text-align-center"
|
||||||
>{{ task.assigneeUser.nickname }}</div
|
|
||||||
>
|
>
|
||||||
|
{{ task.assigneeUser.nickname }}
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
v-else-if="task.ownerUser && task.ownerUser.nickname"
|
v-else-if="task.ownerUser && task.ownerUser.nickname"
|
||||||
class="text-10px text-align-center"
|
class="text-10px text-align-center"
|
||||||
>
|
>
|
||||||
{{ task.ownerUser.nickname }}</div
|
{{ task.ownerUser.nickname }}
|
||||||
>
|
</div>
|
||||||
|
<!-- TODO @jason:审批意见,要展示哈。 -->
|
||||||
<!-- <div v-if="task.reason" :title="task.reason" class="text-13px text-truncate w-150px mt-1"> 审批意见: {{ task.reason }}</div> -->
|
<!-- <div v-if="task.reason" :title="task.reason" class="text-13px text-truncate w-150px mt-1"> 审批意见: {{ task.reason }}</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 情况二:遍历每个审批节点下的【候选的】task 任务。例如说,1)依次审批,2)未来的审批任务等 -->
|
||||||
<div
|
<div
|
||||||
v-for="(user, idx1) in activity.candidateUserList"
|
v-for="(user, idx1) in activity.candidateUserList"
|
||||||
:key="idx1"
|
:key="idx1"
|
||||||
|
@ -61,10 +70,12 @@
|
||||||
>
|
>
|
||||||
<div class="flex items-center flex-col pr-2">
|
<div class="flex items-center flex-col pr-2">
|
||||||
<div class="position-relative">
|
<div class="position-relative">
|
||||||
|
<!-- 信息:头像 -->
|
||||||
<el-avatar :size="36" v-if="user.avatar" :src="user.avatar" />
|
<el-avatar :size="36" v-if="user.avatar" :src="user.avatar" />
|
||||||
<el-avatar v-else-if="user.nickname && user.nickname">
|
<el-avatar v-else-if="user.nickname && user.nickname">
|
||||||
{{ user.nickname.substring(0, 1) }}</el-avatar
|
{{ user.nickname.substring(0, 1) }}
|
||||||
>
|
</el-avatar>
|
||||||
|
<!-- 信息:任务 ICON -->
|
||||||
<div
|
<div
|
||||||
class="position-absolute top-26px left-26px bg-#fff rounded-full flex items-center p-2px"
|
class="position-absolute top-26px left-26px bg-#fff rounded-full flex items-center p-2px"
|
||||||
>
|
>
|
||||||
|
@ -76,18 +87,24 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col mt-1">
|
<div class="flex flex-col mt-1">
|
||||||
<div v-if="user.nickname" class="text-10px text-align-center">{{
|
<!-- 信息:昵称 -->
|
||||||
user.nickname
|
<div v-if="user.nickname" class="text-10px text-align-center">
|
||||||
}}</div>
|
{{ user.nickname }}
|
||||||
|
</div>
|
||||||
<!-- <div v-if="task.reason" :title="task.reason" class="text-13px text-truncate w-150px mt-1"> 审批意见: {{ task.reason }}</div> -->
|
<!-- <div v-if="task.reason" :title="task.reason" class="text-13px text-truncate w-150px mt-1"> 审批意见: {{ task.reason }}</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="activity.status !== TaskStatusEnum.NOT_START" class="text-#a5a5a5 text-13px mt-1">
|
<!-- 信息:时间 -->
|
||||||
|
<div
|
||||||
|
v-if="activity.status !== TaskStatusEnum.NOT_START"
|
||||||
|
class="text-#a5a5a5 text-13px mt-1"
|
||||||
|
>
|
||||||
{{ getApprovalNodeTime(activity) }}
|
{{ getApprovalNodeTime(activity) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- TODO @jason:审批意见,要展示哈。 -->
|
||||||
<!-- <div class="color-#a1a6ae text-12px mb-10px"> {{ activity.assigneeUser.nickname }}</div>
|
<!-- <div class="color-#a1a6ae text-12px mb-10px"> {{ activity.assigneeUser.nickname }}</div>
|
||||||
<div v-if="activity.opinion" class="text-#a5a5a5 text-12px w-100%">
|
<div v-if="activity.opinion" class="text-#a5a5a5 text-12px w-100%">
|
||||||
<div class="mb-5px">审批意见:</div>
|
<div class="mb-5px">审批意见:</div>
|
||||||
|
@ -148,8 +165,7 @@ const statusIconMap2 = {
|
||||||
// 委派中
|
// 委派中
|
||||||
'6': { color: '#448ef7', icon: 'ep:loading' },
|
'6': { color: '#448ef7', icon: 'ep:loading' },
|
||||||
// 审批通过中
|
// 审批通过中
|
||||||
'7': { color: '#00b32a', icon: 'ep:circle-check-filled' },
|
'7': { color: '#00b32a', icon: 'ep:circle-check-filled' }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const statusIconMap = {
|
const statusIconMap = {
|
||||||
|
@ -169,7 +185,7 @@ const statusIconMap = {
|
||||||
// 委派中
|
// 委派中
|
||||||
'6': { color: '#448ef7', icon: Loading },
|
'6': { color: '#448ef7', icon: Loading },
|
||||||
// 审批通过中
|
// 审批通过中
|
||||||
'7': { color: '#00b32a', icon: Check },
|
'7': { color: '#00b32a', icon: Check }
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 获得审批详情 */
|
/** 获得审批详情 */
|
||||||
|
@ -182,7 +198,6 @@ const getApprovalDetail = async () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getApprovalNodeIcon = (taskStatus: number, nodeType: NodeType) => {
|
const getApprovalNodeIcon = (taskStatus: number, nodeType: NodeType) => {
|
||||||
|
|
||||||
if (taskStatus == TaskStatusEnum.NOT_START) {
|
if (taskStatus == TaskStatusEnum.NOT_START) {
|
||||||
return statusIconMap[taskStatus]?.icon
|
return statusIconMap[taskStatus]?.icon
|
||||||
}
|
}
|
||||||
|
@ -190,7 +205,6 @@ const getApprovalNodeIcon = (taskStatus: number , nodeType: NodeType) => {
|
||||||
if (nodeType === NodeType.START_USER_NODE || nodeType === NodeType.USER_TASK_NODE) {
|
if (nodeType === NodeType.START_USER_NODE || nodeType === NodeType.USER_TASK_NODE) {
|
||||||
return statusIconMap[taskStatus]?.icon
|
return statusIconMap[taskStatus]?.icon
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const getApprovalNodeColor = (taskStatus: number) => {
|
const getApprovalNodeColor = (taskStatus: number) => {
|
||||||
|
@ -198,7 +212,6 @@ const getApprovalNodeColor = (taskStatus: number) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getApprovalNodeTime = (node: ProcessInstanceApi.ApprovalNodeInfo) => {
|
const getApprovalNodeTime = (node: ProcessInstanceApi.ApprovalNodeInfo) => {
|
||||||
|
|
||||||
if (node.endTime) {
|
if (node.endTime) {
|
||||||
return `结束时间:${formatDate(node.endTime)}`
|
return `结束时间:${formatDate(node.endTime)}`
|
||||||
}
|
}
|
||||||
|
@ -207,9 +220,7 @@ const getApprovalNodeTime = (node: ProcessInstanceApi.ApprovalNodeInfo) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** 重新刷新审批详情 */
|
||||||
* 重新刷新审批详情
|
|
||||||
*/
|
|
||||||
const refresh = () => {
|
const refresh = () => {
|
||||||
getApprovalDetail()
|
getApprovalDetail()
|
||||||
}
|
}
|
||||||
|
@ -217,6 +228,6 @@ const refresh = () => {
|
||||||
defineExpose({ refresh })
|
defineExpose({ refresh })
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
getApprovalDetail()
|
await getApprovalDetail()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
|
|
||||||
<el-tabs v-model="activeTab">
|
<el-tabs v-model="activeTab">
|
||||||
<!-- 表单信息 -->
|
<!-- 表单信息 -->
|
||||||
<el-tab-pane label="表单信息" name="form">
|
<el-tab-pane label="审批详情" name="form">
|
||||||
<div class="form-scoll-area">
|
<div class="form-scroll-area">
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<el-col :span="18" class="!flex !flex-col formCol">
|
<el-col :span="18" class="!flex !flex-col formCol">
|
||||||
|
@ -64,7 +64,6 @@
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<!-- 流程图 -->
|
<!-- 流程图 -->
|
||||||
<el-tab-pane label="流程图" name="diagram">
|
<el-tab-pane label="流程图" name="diagram">
|
||||||
<ProcessInstanceBpmnViewer
|
<ProcessInstanceBpmnViewer
|
||||||
|
@ -84,7 +83,7 @@
|
||||||
@refresh="getTaskList"
|
@refresh="getTaskList"
|
||||||
/>
|
/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<!-- 流转评论 -->
|
<!-- 流转评论 TODO 待开发 -->
|
||||||
<el-tab-pane label="流转评论" name="comment"> 流转评论 </el-tab-pane>
|
<el-tab-pane label="流转评论" name="comment"> 流转评论 </el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|
||||||
|
@ -234,7 +233,7 @@ const getTaskList = async () => {
|
||||||
const data = await TaskApi.getTaskListByProcessInstanceId(props.id)
|
const data = await TaskApi.getTaskListByProcessInstanceId(props.id)
|
||||||
tasks.value = []
|
tasks.value = []
|
||||||
// 1.1 移除已取消的审批
|
// 1.1 移除已取消的审批
|
||||||
data.forEach((task) => {
|
data.forEach((task: any) => {
|
||||||
if (task.status !== 4) {
|
if (task.status !== 4) {
|
||||||
tasks.value.push(task)
|
tasks.value.push(task)
|
||||||
}
|
}
|
||||||
|
@ -268,7 +267,7 @@ const refresh = () => {
|
||||||
// 重新获取详情
|
// 重新获取详情
|
||||||
getDetail()
|
getDetail()
|
||||||
// 刷新审批详情 Timeline
|
// 刷新审批详情 Timeline
|
||||||
timelineRef.value?.refresh();
|
timelineRef.value?.refresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 当前的Tab */
|
/** 当前的Tab */
|
||||||
|
@ -298,7 +297,7 @@ $process-header-height: 194px;
|
||||||
);
|
);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
.form-scoll-area {
|
.form-scroll-area {
|
||||||
height: calc(
|
height: calc(
|
||||||
100vh - var(--top-tool-height) - var(--tags-view-height) - var(--app-footer-height) - 45px -
|
100vh - var(--top-tool-height) - var(--tags-view-height) - var(--app-footer-height) - 45px -
|
||||||
$process-header-height - 40px
|
$process-header-height - 40px
|
||||||
|
|
Loading…
Reference in New Issue