2025-07-25 12:00:49 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import dayjs from 'dayjs';
|
|
|
|
|
|
|
|
import {
|
|
|
|
leaveApplicationExport,
|
|
|
|
leaveApplicationList,
|
|
|
|
leaveApplicationRemove,
|
|
|
|
} from '#/api/property/personalCenter/leaveApplication';
|
|
|
|
import type { LeaveApplicationForm } from '#/api/property/personalCenter/leaveApplication/model';
|
|
|
|
|
2025-08-05 17:07:10 +08:00
|
|
|
import { useVbenForm } from '#/adapter/form';
|
|
|
|
import { useVbenModal} from '@vben/common-ui';
|
|
|
|
import {modalSchema} from "./data";
|
|
|
|
import { useVModel } from '@vueuse/core';
|
2025-07-25 12:00:49 +08:00
|
|
|
|
2025-08-05 17:07:10 +08:00
|
|
|
const [BasicForm, formApi] = useVbenForm({
|
2025-07-25 12:00:49 +08:00
|
|
|
commonConfig: {
|
2025-08-05 17:07:10 +08:00
|
|
|
formItemClass: 'col-span-1',
|
|
|
|
// 默认label宽度 px
|
|
|
|
labelWidth: 160,
|
|
|
|
// 通用配置项 会影响到所有表单项
|
2025-07-25 12:00:49 +08:00
|
|
|
componentProps: {
|
2025-08-05 17:07:10 +08:00
|
|
|
class: 'w-full',
|
2025-07-25 12:00:49 +08:00
|
|
|
},
|
|
|
|
},
|
2025-08-05 17:07:10 +08:00
|
|
|
schema: modalSchema(),
|
|
|
|
showDefaultActions: false,
|
|
|
|
wrapperClass: 'grid-cols-2 gap-x-10 gap-y-2',
|
2025-07-25 12:00:49 +08:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2025-08-05 17:07:10 +08:00
|
|
|
<div class="p-8">
|
|
|
|
<div class="text-2xl font-bold">请假申请</div>
|
|
|
|
<div class="m-6 bg-white p-4">
|
|
|
|
<BasicForm/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2025-07-25 12:00:49 +08:00
|
|
|
</template>
|