feat: [bpm][antd] oa 请假优化
This commit is contained in:
@@ -10,7 +10,7 @@ import { BpmCandidateStrategyEnum, BpmNodeIdEnum } from '@vben/constants';
|
|||||||
import { useTabs } from '@vben/hooks';
|
import { useTabs } from '@vben/hooks';
|
||||||
import { IconifyIcon } from '@vben/icons';
|
import { IconifyIcon } from '@vben/icons';
|
||||||
|
|
||||||
import { Button, Card, message, Space } from 'ant-design-vue';
|
import { Button, Card, Col, message, Row, Space } from 'ant-design-vue';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
import { getProcessDefinition } from '#/api/bpm/definition';
|
import { getProcessDefinition } from '#/api/bpm/definition';
|
||||||
@@ -95,6 +95,7 @@ async function onSubmit() {
|
|||||||
content: $t('ui.actionMessage.operationSuccess'),
|
content: $t('ui.actionMessage.operationSuccess'),
|
||||||
key: 'action_process_msg',
|
key: 'action_process_msg',
|
||||||
});
|
});
|
||||||
|
closeCurrentTab();
|
||||||
await router.push({
|
await router.push({
|
||||||
name: 'BpmOALeave',
|
name: 'BpmOALeave',
|
||||||
});
|
});
|
||||||
@@ -231,30 +232,35 @@ onMounted(async () => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Page>
|
<Page>
|
||||||
<div class="mx-auto w-[80vw] max-w-[920px]">
|
<Row :gutter="16">
|
||||||
<Card :title="getTitle" class="w-full">
|
<Col :span="16">
|
||||||
<template #extra>
|
<Card :title="getTitle" class="w-full" v-loading="formLoading">
|
||||||
<Button type="default" @click="onBack">
|
<template #extra>
|
||||||
<IconifyIcon icon="lucide:arrow-left" />
|
<Button type="default" @click="onBack">
|
||||||
返回
|
<IconifyIcon icon="lucide:arrow-left" />
|
||||||
</Button>
|
返回
|
||||||
</template>
|
</Button>
|
||||||
|
</template>
|
||||||
|
|
||||||
<Form />
|
<Form />
|
||||||
</Card>
|
<template #actions>
|
||||||
|
<Space warp :size="12" class="w-full px-6">
|
||||||
<Card title="流程" class="mt-2 w-full">
|
<Button type="primary" @click="onSubmit" :loading="formLoading">
|
||||||
<ProcessInstanceTimeline
|
提交
|
||||||
:activity-nodes="activityNodes"
|
</Button>
|
||||||
:show-status-icon="false"
|
</Space>
|
||||||
@select-user-confirm="selectUserConfirm"
|
</template>
|
||||||
/>
|
</Card>
|
||||||
<template #actions>
|
</Col>
|
||||||
<Space warp :size="12" class="w-full px-6">
|
<Col :span="8">
|
||||||
<Button type="primary" @click="onSubmit"> 提交 </Button>
|
<Card title="流程" class="w-full">
|
||||||
</Space>
|
<ProcessInstanceTimeline
|
||||||
</template>
|
:activity-nodes="activityNodes"
|
||||||
</Card>
|
:show-status-icon="false"
|
||||||
</div>
|
@select-user-confirm="selectUserConfirm"
|
||||||
|
/>
|
||||||
|
</Card>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
</Page>
|
</Page>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user