| | |
| | | import { Page, useVbenModal } from '#/packages/effects/common-ui/src'; |
| | | import { downloadFileFromBlobPart } from '#/packages/utils/src'; |
| | | |
| | | import { Button, message } from 'ant-design-vue'; |
| | | import { Button, message, Tag } from 'ant-design-vue'; |
| | | |
| | | import { DICT_TYPE } from '#/packages/constants/src'; |
| | | import { getDictLabel } from '#/packages/effects/hooks/src'; |
| | | |
| | | import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table'; |
| | | import { deleteEmployee, exportEmployee, getEmployeePage } from '#/api/hrm/employee'; |
| | |
| | | <template #employeeNo="{ row }"> |
| | | <Button type="link" @click="handleDetail(row)">{{ row.employeeNo }}</Button> |
| | | </template> |
| | | <template #gender="{ row }"> |
| | | <Tag :color="row.gender === 1 ? 'blue' : 'pink'"> |
| | | {{ getDictLabel(DICT_TYPE.HRM_GENDER, row.gender) }} |
| | | </Tag> |
| | | </template> |
| | | <template #employeeStatus="{ row }"> |
| | | <Tag :color="row.employeeStatus === 1 ? 'success' : row.employeeStatus === 2 ? 'processing' : 'default'"> |
| | | {{ getDictLabel(DICT_TYPE.HRM_EMPLOYEE_STATUS, row.employeeStatus) }} |
| | | </Tag> |
| | | </template> |
| | | <template #actions="{ row }"> |
| | | <TableAction |
| | | :actions="[ |