【代码评审】工作流:我的流程优化

pull/603/head
YunaiV 2024-11-25 21:12:08 +08:00
parent 7c391a315e
commit 9f8f790ec9
2 changed files with 6616 additions and 8018 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,6 @@
<!-- TODO @ tuitujistyle 可以使用 unocss --> <!-- TODO @ tuitujistyle 可以使用 unocss -->
<el-form-item label="" prop="category" :style="{ position: 'absolute', right: '130px' }"> <el-form-item label="" prop="category" :style="{ position: 'absolute', right: '130px' }">
<!-- TODO @tuituji应该选择好分类就触发搜索啦 RE:done & to check-->
<el-select <el-select
v-model="queryParams.category" v-model="queryParams.category"
placeholder="请选择流程分类" placeholder="请选择流程分类"
@ -52,10 +51,9 @@
placement="bottom-end" placement="bottom-end"
> >
<template #reference> <template #reference>
<el-button @click="showPopover = !showPopover" > <el-button @click="showPopover = !showPopover">
<Icon icon="ep:plus" class="mr-5px" />高级筛选 <Icon icon="ep:plus" class="mr-5px" />高级筛选
</el-button> </el-button>
</template> </template>
<el-form-item label="流程发起人" class="bold-label" label-position="top" prop="category"> <el-form-item label="流程发起人" class="bold-label" label-position="top" prop="category">
<el-select <el-select
@ -113,12 +111,11 @@
/> />
</el-form-item> </el-form-item>
<el-form-item class="bold-label" label-position="top"> <el-form-item class="bold-label" label-position="top">
<el-button @click="handleQuery"> </el-button>
<el-button @click="showPopover = false"> 取消</el-button>
<el-button @click="resetQuery"> </el-button> <el-button @click="resetQuery"> </el-button>
</el-form-item> <el-button @click="showPopover = false"> 取消</el-button>
<el-button @click="handleQuery" type="primary"> 确认</el-button>
</el-form-item>
</el-popover> </el-popover>
<!-- TODO @tuituji这里应该有确认和取消清空搜索条件三个按钮 RE:done & to check-->
</el-form-item> </el-form-item>
</el-form> </el-form>
</ContentWrap> </ContentWrap>
@ -135,7 +132,7 @@
fixed="left" fixed="left"
/> />
<!-- TODO @芋艿摘要 --> <!-- TODO @芋艿摘要 -->
<!-- TODO @tuituji流程状态可见需求文档里 Re:没看懂--> <!-- TODO @tuituji流程状态可见需求文档里 Re:没看懂回复1就是审批中的时候展示审批人2审批结束的时候就展示状态 -->
<el-table-column label="流程状态" prop="status" width="120"> <el-table-column label="流程状态" prop="status" width="120">
<template #default="scope"> <template #default="scope">
<dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS" :value="scope.row.status" /> <dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS" :value="scope.row.status" />
@ -278,7 +275,7 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
} }
/** 查看详情 */ /** 查看详情 */
const handleDetail = (row) => { const handleDetail = (row: any) => {
router.push({ router.push({
name: 'BpmProcessInstanceDetail', name: 'BpmProcessInstanceDetail',
query: { query: {
@ -288,7 +285,7 @@ const handleDetail = (row) => {
} }
/** 取消按钮操作 */ /** 取消按钮操作 */
const handleCancel = async (row) => { const handleCancel = async (row: any) => {
// //
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: t('common.ok'), confirmButtonText: t('common.ok'),
@ -303,15 +300,6 @@ const handleCancel = async (row) => {
await getList() await getList()
} }
// TODO @tuituji import
// import { ClickOutside as vClickOutside } from 'element-plus'
// TODO @tuitujionClickAdvancedSearch
const popoverRef = ref()
const onClickOutside = () => {
unref(popoverRef).popperRef?.delayHide?.()
}
/** 激活时 **/ /** 激活时 **/
onActivated(() => { onActivated(() => {
getList() getList()