From 8c606397df816cf701b9decb75e7df91a063c894 Mon Sep 17 00:00:00 2001 From: fyy <2717885210@qq.com> Date: Fri, 18 Jul 2025 14:57:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=98=E5=8E=9F=E6=84=8F=E5=A4=96?= =?UTF-8?q?=E8=A6=86=E7=9B=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../costManagement/costItemSetting/index.vue | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/web-antd/src/views/property/costManagement/costItemSetting/index.vue b/apps/web-antd/src/views/property/costManagement/costItemSetting/index.vue index 1d899a92..8fc762fe 100644 --- a/apps/web-antd/src/views/property/costManagement/costItemSetting/index.vue +++ b/apps/web-antd/src/views/property/costManagement/costItemSetting/index.vue @@ -16,7 +16,7 @@ import { } from '#/api/property/costManagement/costItemSetting'; import type { CostItemSettingForm } from '#/api/property/costManagement/costItemSetting/model'; -import carChargeModal from './carCharge-modal.vue'; +import costItemSettingModal from './costItemSetting-modal.vue'; import { columns, querySchema } from './data'; const formOptions: VbenFormProps = { @@ -48,7 +48,7 @@ const gridOptions: VxeGridProps = { proxyConfig: { ajax: { query: async ({ page }, formValues = {}) => { - return await carChargeList({ + return await costItemSettingList({ pageNum: page.currentPage, pageSize: page.pageSize, ...formValues, @@ -60,7 +60,7 @@ const gridOptions: VxeGridProps = { keyField: 'id', }, // 表格全局唯一表示 保存列配置需要用到 - id: 'property-carCharge-index' + id: 'property-costItemSetting-index' }; const [BasicTable, tableApi] = useVbenVxeGrid({ @@ -68,8 +68,8 @@ const [BasicTable, tableApi] = useVbenVxeGrid({ gridOptions, }); -const [CarChargeModal, modalApi] = useVbenModal({ - connectedComponent: carChargeModal, +const [CostItemSettingModal, modalApi] = useVbenModal({ + connectedComponent: costItemSettingModal, }); function handleAdd() { @@ -77,25 +77,25 @@ function handleAdd() { modalApi.open(); } -async function handleEdit(row: Required) { +async function handleEdit(row: Required) { modalApi.setData({ id: row.id }); modalApi.open(); } -async function handleDelete(row: Required) { - await carChargeRemove(row.id); +async function handleDelete(row: Required) { + await costItemSettingRemove(row.id); await tableApi.query(); } function handleMultiDelete() { const rows = tableApi.grid.getCheckboxRecords(); - const ids = rows.map((row: Required) => row.id); + const ids = rows.map((row: Required) => row.id); Modal.confirm({ title: '提示', okType: 'danger', content: `确认删除选中的${ids.length}条记录吗?`, onOk: async () => { - await carChargeRemove(ids); + await costItemSettingRemove(ids); await tableApi.query(); }, }); @@ -104,7 +104,7 @@ function handleMultiDelete() {