2、添加巡检明细接口
This commit is contained in:
@@ -8,15 +8,15 @@ import {
|
||||
type VxeGridProps
|
||||
} from '#/adapter/vxe-table';
|
||||
|
||||
import {
|
||||
inspectionTaskExport,
|
||||
inspectionTaskList,
|
||||
} from '#/api/property/inspectionManagement/inspectionTask';
|
||||
import type {InspectionTaskForm} from '#/api/property/inspectionManagement/inspectionTask/model';
|
||||
import {commonDownloadExcel} from '#/utils/file/download';
|
||||
|
||||
import inspectionDetailsModal from './inspectionDetails-modal.vue';
|
||||
import {columns, querySchema} from './data';
|
||||
import {
|
||||
taskDetailExport,
|
||||
taskDetailList
|
||||
} from "#/api/property/inspectionManagement/inspectionDetail";
|
||||
|
||||
const formOptions: VbenFormProps = {
|
||||
commonConfig: {
|
||||
@@ -46,7 +46,7 @@ const gridOptions: VxeGridProps = {
|
||||
proxyConfig: {
|
||||
ajax: {
|
||||
query: async ({page}, formValues = {}) => {
|
||||
return await inspectionTaskList({
|
||||
return await taskDetailList({
|
||||
pageNum: page.currentPage,
|
||||
pageSize: page.pageSize,
|
||||
...formValues,
|
||||
@@ -77,7 +77,7 @@ async function handInfo(row: Required<InspectionTaskForm>) {
|
||||
}
|
||||
|
||||
function handleDownloadExcel() {
|
||||
commonDownloadExcel(inspectionTaskExport, '巡检任务数据', tableApi.formApi.form.values, {
|
||||
commonDownloadExcel(taskDetailExport, '巡检明细数据', tableApi.formApi.form.values, {
|
||||
fieldMappingTime: formOptions.fieldMappingTime,
|
||||
});
|
||||
}
|
||||
@@ -97,7 +97,7 @@ function handleDownloadExcel() {
|
||||
|
||||
</Space>
|
||||
</template>
|
||||
<template #action="{ row }">
|
||||
<!-- <template #action="{ row }">-->
|
||||
<!-- <Space>-->
|
||||
<!-- <ghost-button-->
|
||||
<!-- v-access:code="['property:inspectionTask:info']"-->
|
||||
@@ -106,7 +106,7 @@ function handleDownloadExcel() {
|
||||
<!-- {{ $t('pages.common.info') }}-->
|
||||
<!-- </ghost-button>-->
|
||||
<!-- </Space>-->
|
||||
</template>
|
||||
<!-- </template>-->
|
||||
</BasicTable>
|
||||
<InspectionDetailsModal @reload="tableApi.query()"/>
|
||||
</Page>
|
||||
|
Reference in New Issue
Block a user