From 60384e8241fa855b5780260633ee9b9f8904847a Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期五, 20 六月 2025 14:24:19 +0800 Subject: [PATCH] feat(eims-ui-mobile): 为多个页面添加搜索功能 - 在 equ-list、insp-st、maint-st、req-list 和 res-list 页面中添加设备名称和资产编号的模糊搜索 --- eims-ui/apps/web-antd/src/views/eims/insp-plan/index.vue | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/eims-ui/apps/web-antd/src/views/eims/insp-plan/index.vue b/eims-ui/apps/web-antd/src/views/eims/insp-plan/index.vue index 3b1b351..191f18e 100644 --- a/eims-ui/apps/web-antd/src/views/eims/insp-plan/index.vue +++ b/eims-ui/apps/web-antd/src/views/eims/insp-plan/index.vue @@ -3,7 +3,7 @@ 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'; @@ -19,6 +19,7 @@ import { columns, querySchema } from './data'; import inspPlanDrawer from './insp-plan-drawer.vue'; +import inspPlanImportModal from './insp-plan-import-modal.vue'; defineExpose({ tableSelect @@ -94,6 +95,17 @@ const [InspRecordDrawer, inspRecordDrawerApi] = useVbenDrawer({ connectedComponent: inspRecordDrawer }); + +/** + * 瀵煎叆 + */ +const [InspPlanImportModal, inspPlanImportModalApi] = useVbenModal({ + connectedComponent: inspPlanImportModal +}); + +function handleImport() { + inspPlanImportModalApi.open(); +} function handleAdd() { inspPlanDrawerApi.setData({}); @@ -251,6 +263,9 @@ <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 @@ -298,5 +313,6 @@ </div> <InspPlanDrawer @reload="tableApi.query()" /> <InspRecordDrawer @reload="tableApi.query()" /> + <InspPlanImportModal @reload="tableApi.query()" /> </Page> </template> -- Gitblit v1.9.3