| | |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import { reactive, ref } from 'vue'; |
| | | import { ActionItem, TableAction } from '/@/components/Table'; |
| | | import { PageWrapper } from '/@/components/Page'; |
| | | import { useMessage } from '/@/hooks/web/useMessage'; |
| | | import { ActionItem, TableAction } from '@/components/Table'; |
| | | import { PageWrapper } from '@/components/Page'; |
| | | import { useMessage } from '@/hooks/web/useMessage'; |
| | | import { vxeTableColumns, vxeTableFormSchema } from './tableData'; |
| | | import { BasicTableProps, VxeBasicTable, VxeGridInstance } from '/@/components/VxeTable'; |
| | | import { demoListApi } from '/@/api/demo/table'; |
| | | import { BasicTableProps, VxeBasicTable, VxeGridInstance } from '@/components/VxeTable'; |
| | | import { demoListApi } from '@/api/demo/table'; |
| | | |
| | | const { createMessage } = useMessage(); |
| | | |
| | |
| | | ajax: { |
| | | query: async ({ page, form }) => { |
| | | return demoListApi({ |
| | | pageNum: page.currentPage, |
| | | page: page.currentPage, |
| | | pageSize: page.pageSize, |
| | | ...form, |
| | | }); |
| | |
| | | label: '删除', |
| | | color: 'error', |
| | | popConfirm: { |
| | | title: '是否确认删除?', |
| | | placement: 'left', |
| | | title: '是否确认删除', |
| | | confirm: () => { |
| | | tableRef.value?.remove(record); |
| | | }, |