| | |
| | | |
| | | 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 maintPlanDrawer from './maint-plan-drawer.vue'; |
| | | import maintPlanImportModal from './maint-plan-import-modal.vue'; |
| | | |
| | | |
| | | defineExpose({ |
| | |
| | | const [MaintOrderDrawer, maintOrderDrawerApi] = useVbenDrawer({ |
| | | connectedComponent: maintOrderDrawer, |
| | | }); |
| | | |
| | | /** |
| | | * 导入 |
| | | */ |
| | | const [MaintPlanImportModal, maintPlanImportModalApi] = useVbenModal({ |
| | | connectedComponent: maintPlanImportModal |
| | | }); |
| | | |
| | | function handleImport() { |
| | | maintPlanImportModalApi.open(); |
| | | } |
| | | |
| | | function handleAdd() { |
| | | maintPlanDrawerApi.setData({}); |
| | |
| | | <a-button v-access:code="['eims:maintPlan:export']" @click="handleDownloadExcel"> |
| | | {{ $t('pages.common.export') }} |
| | | </a-button> |
| | | <a-button v-access:code="['eims:maintPlan:import']" @click="handleImport"> |
| | | {{ $t('pages.common.import') }} |
| | | </a-button> |
| | | <a-button |
| | | :disabled="!vxeCheckboxChecked(tableApi)" |
| | | danger |
| | |
| | | </div> |
| | | <MaintPlanDrawer @reload="tableApi.query()" /> |
| | | <MaintOrderDrawer @reload="tableApi.query()" /> |
| | | <MaintPlanImportModal @reload="tableApi.query()" /> |
| | | </Page> |
| | | </template> |