| | |
| | | import { Page, useVbenModal } from '#/packages/effects/common-ui/src'; |
| | | import { downloadFileFromBlobPart } from '#/packages/utils/src'; |
| | | |
| | | import { DownOutlined } from '@ant-design/icons-vue'; |
| | | import { IconifyIcon } from '@vben/icons'; |
| | | import { Button, Dropdown, Menu, message, Modal, Tag } from 'ant-design-vue'; |
| | | |
| | | import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table'; |
| | |
| | | <template #toolbar-tools> |
| | | <Dropdown> |
| | | <Button class="mr-2" type="primary"> |
| | | 下载合同模板 <DownOutlined /> |
| | | 下载合同模板 <IconifyIcon class="size-3" icon="lucide:chevron-down" /> |
| | | </Button> |
| | | <template #overlay> |
| | | <Menu @click="({ key }) => handleDownloadTemplate(Number(key))"> |
| | |
| | | </template> |
| | | <template #actions="{ row }"> |
| | | <Dropdown> |
| | | <a class="text-primary" @click.prevent>生成合同 <DownOutlined /></a> |
| | | <a class="text-primary" @click.prevent>生成合同 <IconifyIcon class="size-3" icon="lucide:chevron-down" /></a> |
| | | <template #overlay> |
| | | <Menu @click="({ key }) => handleGenerate(row, Number(key))"> |
| | | <Menu.Item key="1">劳动合同(简版)</Menu.Item> |
| | |
| | | </Dropdown> |
| | | <a class="ml-3 text-primary" @click="handleAttachments(row)">附件</a> |
| | | <Dropdown> |
| | | <a class="ml-3 text-primary" @click.prevent>更多 <DownOutlined /></a> |
| | | <a class="ml-3 text-primary" @click.prevent>更多 <IconifyIcon class="size-3" icon="lucide:chevron-down" /></a> |
| | | <template #overlay> |
| | | <Menu @click="(e) => handleMore(e, row)"> |
| | | <Menu.Item key="edit">修改</Menu.Item> |