From b977861d47e51e86a6bb7025ee4ea00d3d241b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=A6=8D?= <1455167345@qq.com> Date: Thu, 29 Aug 2024 09:14:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=BF=E4=BA=A7=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/minerals/index.ts | 11 ++++++++++ src/api/minerals/model/index.ts | 20 +++++++++++++++++++ .../demo/minerals/patchsummary/index.vue | 5 +++-- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 src/api/minerals/index.ts create mode 100644 src/api/minerals/model/index.ts diff --git a/src/api/minerals/index.ts b/src/api/minerals/index.ts new file mode 100644 index 00000000..271eb5d7 --- /dev/null +++ b/src/api/minerals/index.ts @@ -0,0 +1,11 @@ +import { defHttp } from '@/utils/http/axios'; +import { tubanListParams } from './model/index'; + +enum Api { + // 获取待办任务统计数据 + LoadCaseInfoMineralsTuBanList = '/api/DroneCaseInfoMinerals/LoadCaseInfoMineralsTuBanList', +} + +export function getLoadCaseInfoMineralsTuBanList(params?: tubanListParams) { + return defHttp.get({ url: Api.LoadCaseInfoMineralsTuBanList, params }); +} diff --git a/src/api/minerals/model/index.ts b/src/api/minerals/model/index.ts new file mode 100644 index 00000000..a3c3807c --- /dev/null +++ b/src/api/minerals/model/index.ts @@ -0,0 +1,20 @@ +export interface tubanListParams { + page?: number; + limit?: number; + syear_base?: number; + type_base?: string; + tubanlaiyuan?: string; + startTime?: string; + endTime?: string; + weifatype_jgfill?: number; + wefatype_kcfill?: number; + zhongdianflag_base?: number; + countyid?: string; + streetid?: string; + tubannum_base?: string; + hefapanding_fill?: number; + status_base?: number; + tubanArea1?: string; + tubanArea2?: string; + kuangzhong_kcfill?: string; +} diff --git a/src/views/demo/minerals/patchsummary/index.vue b/src/views/demo/minerals/patchsummary/index.vue index c0be5013..b6363efe 100644 --- a/src/views/demo/minerals/patchsummary/index.vue +++ b/src/views/demo/minerals/patchsummary/index.vue @@ -92,6 +92,7 @@ import { dataProcessingCount } from '@/views/demo/tiankongdi/util'; import { BasicForm, useForm } from '@/components/Form'; import { PageWrapper } from '@/components/Page'; + import { getLoadCaseInfoMineralsTuBanList } from '@/api/minerals/index'; const { VITE_GLOB_API_URL } = getAppEnvConfig(); @@ -137,7 +138,7 @@ }); const [registerTable, { setTableData, reload, clearSelectedRowKeys, setPagination, setLoading }] = useTable({ - title: '图斑汇总', + title: '图斑列表', dataSource: tableData.value, columns, rowKey: 'id', @@ -225,7 +226,7 @@ } function getTableData(querys) { setLoading(true); - LoadCaseInfoWpxfTuBanList(querys).then((res) => { + getLoadCaseInfoMineralsTuBanList(querys).then((res) => { tableData.value = res.items; tablePaginationRight.value.total = res.total; setTableData(tableData.value);