update 优化审批记录

This commit is contained in:
gssong 2024-05-06 22:19:42 +08:00
parent a19ac2d4ca
commit 935a199f71

View File

@ -5,14 +5,14 @@
<el-tab-pane label="流程图" name="bpmn"> <el-tab-pane label="流程图" name="bpmn">
<BpmnView ref="bpmnViewRef"></BpmnView> <BpmnView ref="bpmnViewRef"></BpmnView>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="审批信息" name="info" v-loading="loading"> <el-tab-pane v-loading="loading" label="审批信息" name="info">
<div> <div>
<el-table :data="historyList" style="width: 100%" border fit> <el-table :data="historyList" style="width: 100%" border fit>
<el-table-column type="index" label="序号" align="center" width="60"></el-table-column> <el-table-column type="index" label="序号" align="center" width="60"></el-table-column>
<el-table-column prop="name" label="任务名称" sortable align="center"></el-table-column> <el-table-column prop="name" label="任务名称" sortable align="center"></el-table-column>
<el-table-column prop="nickName" label="办理人" sortable align="center"> <el-table-column prop="nickName" :show-overflow-tooltip="true" label="办理人" sortable align="center">
<template #default="scope"> <template #default="scope">
<el-tag type="success">{{ scope.row.nickName||'无' }}</el-tag> <el-tag type="success">{{ scope.row.nickName || '无' }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="状态" sortable align="center"> <el-table-column label="状态" sortable align="center">
@ -71,7 +71,7 @@ const bpmnViewRef = ref<BpmnView>();
const init = async (instanceId: string) => { const init = async (instanceId: string) => {
visible.value = true; visible.value = true;
loading.value = true; loading.value = true;
tabActiveName.value = 'bpmn' tabActiveName.value = 'bpmn';
historyList.value = []; historyList.value = [];
processApi.getHistoryRecord(instanceId).then((resp) => { processApi.getHistoryRecord(instanceId).then((resp) => {
historyList.value = resp.data.historyRecordList; historyList.value = resp.data.historyRecordList;