feat: 抄送选择
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
||||
import { cancelProcessApply } from '#/api/workflow/instance';
|
||||
import { commonDownloadExcel } from '#/utils/file/download';
|
||||
|
||||
import { flowInfoModal } from '../components';
|
||||
import { applyModal, flowInfoModal } from '../components';
|
||||
import userSelectModal from '../components/user-select-modal.vue';
|
||||
import { leaveExport, leaveList, leaveRemove } from './api';
|
||||
import { columns, querySchema } from './data';
|
||||
@@ -129,6 +129,9 @@ const [UserSelectModal, testApi] = useVbenModal({
|
||||
function handleTest() {
|
||||
testApi.open();
|
||||
}
|
||||
const [ApplyModal, applyModalApi] = useVbenModal({
|
||||
connectedComponent: applyModal,
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -137,6 +140,7 @@ function handleTest() {
|
||||
<template #toolbar-tools>
|
||||
<Space>
|
||||
<a-button @click="handleTest">test选人</a-button>
|
||||
<a-button @click="() => applyModalApi.open()">test抄送</a-button>
|
||||
<a-button
|
||||
v-access:code="['workflow:leave:export']"
|
||||
@click="handleDownloadExcel"
|
||||
@@ -205,5 +209,6 @@ function handleTest() {
|
||||
</BasicTable>
|
||||
<UserSelectModal mode="single" />
|
||||
<FlowInfoModal />
|
||||
<ApplyModal />
|
||||
</Page>
|
||||
</template>
|
||||
|
@@ -116,7 +116,7 @@ async function handleStartWorkFlow() {
|
||||
const formValues = await formApi.getValues();
|
||||
const flowCode = formValues?.flowType ?? 'leave1';
|
||||
const startWorkFlowData: StartWorkFlowReqData = {
|
||||
businessKey: leaveResp!.id,
|
||||
businessId: leaveResp!.id,
|
||||
flowCode,
|
||||
variables: taskVariables,
|
||||
};
|
||||
|
Reference in New Issue
Block a user