提交 3db6b0df authored 作者: liuluyu's avatar liuluyu

增加流转记录

上级 df2abfb6
...@@ -96,6 +96,27 @@ ...@@ -96,6 +96,27 @@
<TodoIndex v-if="isShowDrawer" ref="refTodoIndex" @callback="handleSuccess" /> <TodoIndex v-if="isShowDrawer" ref="refTodoIndex" @callback="handleSuccess" />
</a-drawer> </a-drawer>
</div> </div>
<!-- 流程详情抽屉 -->
<div v-if="isShowDetailDrawer">
<a-drawer
destroyOnClose
v-model:open="isShowDetailDrawer"
class="custom-class"
root-class-name="root-class-name"
:root-style="{ color: 'blue' }"
title="流程详情111"
placement="right"
width="90%"
style="margin: 0px; padding: 0px"
>
<template #extra>
<div style="float: right">
<a-button type="text" @click="handleDetailDrawerClose">关闭</a-button>
</div>
</template>
<Detail ref="refDetail" />
</a-drawer>
</div>
</div> </div>
</template> </template>
...@@ -117,6 +138,8 @@ ...@@ -117,6 +138,8 @@
// 引入待办任务组件 // 引入待办任务组件
import TodoIndex from '../../flowable/task/todo/components/TodoIndex.vue'; import TodoIndex from '../../flowable/task/todo/components/TodoIndex.vue';
import { todoList, getMyTaskFlow } from '/@/components/Process/api/todo'; import { todoList, getMyTaskFlow } from '/@/components/Process/api/todo';
// 引入详情组件
import Detail from '../../flowable/task/myProcess/components/Detail.vue';
const refTodoIndex = ref(); const refTodoIndex = ref();
const isShowDrawer = ref(false); const isShowDrawer = ref(false);
const startUser = ref<string>(''); const startUser = ref<string>('');
...@@ -125,9 +148,9 @@ ...@@ -125,9 +148,9 @@
const taskCache = new Map<string, any>(); const taskCache = new Map<string, any>();
const userStore = useUserStore(); const userStore = useUserStore();
//alert(userStore.getUserInfo.id); // 流程详情抽屉相关
const refDetail = ref();
const checkedKeys = ref<Array<string | number>>([]); const isShowDetailDrawer = ref(false);
//注册model //注册model
const [registerModal, { openModal }] = useModal(); const [registerModal, { openModal }] = useModal();
const jSelectDeptVal = ref([]); const jSelectDeptVal = ref([]);
...@@ -231,6 +254,19 @@ ...@@ -231,6 +254,19 @@
showFooter: false, showFooter: false,
}); });
} }
/**
* 流转记录
*/
function handleProgressDetail(record: Recordable) {
isShowDetailDrawer.value = true;
nextTick(() => {
if (refDetail.value) {
refDetail.value.iniData(record);
} else {
isShowDetailDrawer.value = false;
}
});
}
async function findTodoTaskByProcInsId(procInsId: string) { async function findTodoTaskByProcInsId(procInsId: string) {
// 启动流程后,待办任务可能存在短暂延迟,做一个轻量重试 // 启动流程后,待办任务可能存在短暂延迟,做一个轻量重试
...@@ -404,6 +440,13 @@ ...@@ -404,6 +440,13 @@
function handleSuccess() { function handleSuccess() {
(selectedRowKeys.value = []) && reload(); (selectedRowKeys.value = []) && reload();
} }
/**
* 关闭详情抽屉
*/
function handleDetailDrawerClose() {
isShowDetailDrawer.value = false;
}
/** /**
* 操作栏 * 操作栏
*/ */
...@@ -437,6 +480,10 @@ ...@@ -437,6 +480,10 @@
label: '详情', label: '详情',
onClick: handleDetail.bind(null, record), onClick: handleDetail.bind(null, record),
}, },
{
label: '流转记录',
onClick: handleProgressDetail.bind(null, record),
},
{ {
label: '删除', label: '删除',
color: 'error', color: 'error',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论