feat(property): 新增抄表记录功能并优化仪表信息管理
This commit is contained in:
@@ -3,7 +3,7 @@ import type { Recordable } from "@vben/types"
|
||||
|
||||
import { ref } from "vue"
|
||||
|
||||
import { Page, useVbenModal, type VbenFormProps } from "@vben/common-ui"
|
||||
import { Page, useVbenDrawer, type VbenFormProps } from "@vben/common-ui"
|
||||
import { getVxePopupContainer } from "@vben/utils"
|
||||
|
||||
import { Modal, Popconfirm, Space } from "ant-design-vue"
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
import type { MeterInfoForm } from "#/api/property/meterInfo/model"
|
||||
import { commonDownloadExcel } from "#/utils/file/download"
|
||||
|
||||
import meterInfoModal from "../components/meterInfo-modal.vue"
|
||||
import meterInfoDrawer from "../components/meterInfo-drawer.vue"
|
||||
import { initQuerySchema, initColumns } from "../components/data"
|
||||
const columns = initColumns(3)
|
||||
const querySchema = initQuerySchema(3)
|
||||
@@ -86,8 +86,8 @@ const [BasicTable, tableApi] = useVbenVxeGrid({
|
||||
gridOptions,
|
||||
})
|
||||
|
||||
const [MeterInfoModal, modalApi] = useVbenModal({
|
||||
connectedComponent: meterInfoModal,
|
||||
const [MeterInfoDrawer, modalApi] = useVbenDrawer({
|
||||
connectedComponent: meterInfoDrawer,
|
||||
})
|
||||
|
||||
function handleAdd() {
|
||||
@@ -162,6 +162,6 @@ function handleDownloadExcel() {
|
||||
</Space>
|
||||
</template>
|
||||
</BasicTable>
|
||||
<MeterInfoModal @reload="tableApi.query()" :meterType="3" />
|
||||
<MeterInfoDrawer @reload="tableApi.query()" :meterType="3" />
|
||||
</Page>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user