| | |
| | | |
| | | import { onMounted, ref } from 'vue'; |
| | | |
| | | import { Page, useVbenDrawer, type VbenFormProps } from '@vben/common-ui'; |
| | | import { Page, useVbenDrawer, useVbenModal, type VbenFormProps } from '@vben/common-ui'; |
| | | import { $t } from '@vben/locales'; |
| | | import { addFullName, getPopupContainer, getVxePopupContainer } from '@vben/utils'; |
| | | |
| | |
| | | |
| | | import { columns, querySchema } from './data'; |
| | | import inspPlanDrawer from './insp-plan-drawer.vue'; |
| | | import inspPlanImportModal from './insp-plan-import-modal.vue'; |
| | | |
| | | defineExpose({ |
| | | tableSelect |
| | |
| | | const [InspRecordDrawer, inspRecordDrawerApi] = useVbenDrawer({ |
| | | connectedComponent: inspRecordDrawer |
| | | }); |
| | | |
| | | /** |
| | | * 导入 |
| | | */ |
| | | const [InspPlanImportModal, inspPlanImportModalApi] = useVbenModal({ |
| | | connectedComponent: inspPlanImportModal |
| | | }); |
| | | |
| | | function handleImport() { |
| | | inspPlanImportModalApi.open(); |
| | | } |
| | | |
| | | function handleAdd() { |
| | | inspPlanDrawerApi.setData({}); |
| | |
| | | <a-button v-access:code="['eims:inspectPlan:export']" @click="handleDownloadExcel"> |
| | | {{ $t('pages.common.export') }} |
| | | </a-button> |
| | | <a-button v-access:code="['eims:inspectPlan:import']" @click="handleImport"> |
| | | {{ $t('pages.common.import') }} |
| | | </a-button> |
| | | <a-button |
| | | :disabled="!vxeCheckboxChecked(tableApi)" |
| | | danger |
| | |
| | | </div> |
| | | <InspPlanDrawer @reload="tableApi.query()" /> |
| | | <InspRecordDrawer @reload="tableApi.query()" /> |
| | | <InspPlanImportModal @reload="tableApi.query()" /> |
| | | </Page> |
| | | </template> |