From 46136a4c75b08c1d519bc3c05d1c2e5e2e8ad04e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com> Date: Tue, 19 Nov 2024 10:13:14 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E9=9D=9E=E6=B3=95=E9=87=87=E7=9F=BF-?= =?UTF-8?q?=E6=96=B0=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/demo/system.ts | 7 +- .../caseoffence/feifacaikuang/index.data.ts | 86 +++++++++ .../demo/caseoffence/feifacaikuang/index.vue | 18 +- .../feifacaikuang_old/index.data.ts | 96 ++++++++++ .../caseoffence/feifacaikuang_old/index.vue | 171 ++++++++++++++++++ 5 files changed, 364 insertions(+), 14 deletions(-) create mode 100644 src/views/demo/caseoffence/feifacaikuang_old/index.data.ts create mode 100644 src/views/demo/caseoffence/feifacaikuang_old/index.vue diff --git a/src/api/demo/system.ts b/src/api/demo/system.ts index 633c91eb..403c3a25 100644 --- a/src/api/demo/system.ts +++ b/src/api/demo/system.ts @@ -132,6 +132,8 @@ enum Api { GeoStyleBindLayer = '/api/GeoStyle/BindLayer', // 非法采矿-统计列表 CaseOffenceMinerals = '/api/DroneCaseInfoMinerals/CaseOffenceMinerals', + // 非法采矿-统计列表New + CaseOffenceMineralsNew = '/api/DroneCaseInfoMinerals/CaseOffenceMineralsNew', } export const getPositionsTree = (params?: AccountParams) => defHttp.get({ url: Api.PositionsTree, params }); @@ -495,4 +497,7 @@ export const GeoStylePage = (params) => defHttp.get({ url: Api.GeoStylePage, params }); // 非法采矿-统计列表 export const CaseOffenceMinerals = (params: ReportParams) => - defHttp.get({ url: Api.CaseOffenceMinerals, params }); \ No newline at end of file + defHttp.get({ url: Api.CaseOffenceMinerals, params }); +// 非法采矿-统计列表New +export const CaseOffenceMineralsNew = (params: ReportParams) => + defHttp.get({ url: Api.CaseOffenceMineralsNew, params }); \ No newline at end of file diff --git a/src/views/demo/caseoffence/feifacaikuang/index.data.ts b/src/views/demo/caseoffence/feifacaikuang/index.data.ts index 85d55c63..cbffbdf0 100644 --- a/src/views/demo/caseoffence/feifacaikuang/index.data.ts +++ b/src/views/demo/caseoffence/feifacaikuang/index.data.ts @@ -80,6 +80,92 @@ export const columns: BasicColumn[] = [ }, ]; +// 无人机发现违法行为情况统计明细表-table +export const columnsNew: BasicColumn[] = [ + { + title: 'countyid', + dataIndex: '县区id', + ifShow: false, + }, + { + title: '县区', + dataIndex: 'countyname', + width: 100, + fixed: 'left', + }, + { + title: '下发线索总数(个)', + dataIndex: 'xfwtzs', + width: 150, + }, + { + title: '总数', + children: [ + { + title: '已完成(个)', + dataIndex: 'ywc', + width: 100, + }, + { + title: '未完成(个)', + dataIndex: 'wwc', + width: 100, + }, + { + title: '完成率(%)', + dataIndex: 'wcl', + width: 100, + }, + ] + }, + { + title: '定性', + children: [ + { + title: '合法(个)', + dataIndex: 'dxhf', + width: 100, + }, + { + title: '违法(个)', + dataIndex: 'dxwf', + width: 100, + }, + { + title: '其他(个)', + dataIndex: 'dxqt', + width: 100, + }, + { + title: '未定性(个)', + dataIndex: 'dxwdx', + width: 100, + }, + ] + }, + { + title: '分类', + children: [ + { + title: '非法开采(个)', + dataIndex: 'flffkc', + width: 100, + }, + { + title: '非法加工(个)', + dataIndex: 'flffjg', + width: 100, + }, + ] + }, + { + title: '超期未报(个)', + dataIndex: 'cqwb', + fixed: 'right', + width: 100, + }, +]; + // 无人机发现违法行为情况统计明细表-搜索 export const searchFormSchema: FormSchema[] = [ { diff --git a/src/views/demo/caseoffence/feifacaikuang/index.vue b/src/views/demo/caseoffence/feifacaikuang/index.vue index cbe9bf31..e561551b 100644 --- a/src/views/demo/caseoffence/feifacaikuang/index.vue +++ b/src/views/demo/caseoffence/feifacaikuang/index.vue @@ -4,14 +4,6 @@ - @@ -23,8 +15,8 @@ import { PermissionBtn } from '@/components/PermissionBtn/index'; import { PageWrapper } from '@/components/Page'; import { cloneDeep } from 'lodash-es'; - import { CaseOffenceMinerals } from '@/api/demo/system'; - import { columns, searchFormSchema } from './index.data'; + import { CaseOffenceMineralsNew } from '@/api/demo/system'; + import { columnsNew, searchFormSchema } from './index.data'; import { useMessage } from '@/hooks/web/useMessage'; import { getAppEnvConfig } from '@/utils/env'; import axios from 'axios'; @@ -36,8 +28,8 @@ // 页面表格 const searchParams = ref(); const [registerTable] = useTable({ - api: CaseOffenceMinerals, - columns: columns, + api: CaseOffenceMineralsNew, + columns: columnsNew, // title: '无人机全域巡查图斑情况统计表', // titleHelpMessage: '合法、其他、非粮化、补办手续、拆除复耕均需市级审核通过才可判定为举证类型。', formConfig: { @@ -100,7 +92,7 @@ switch (exportType) { case '': - url = VITE_GLOB_API_URL + '/api/DroneCaseInfoMinerals/CaseOfMineralsToExcel'; + url = VITE_GLOB_API_URL + '/api/DroneCaseInfoMinerals/CaseOfMineralsToExcelNew'; fileName = '汇总表 ' + afterTitle + '.xls'; break; default: diff --git a/src/views/demo/caseoffence/feifacaikuang_old/index.data.ts b/src/views/demo/caseoffence/feifacaikuang_old/index.data.ts new file mode 100644 index 00000000..85d55c63 --- /dev/null +++ b/src/views/demo/caseoffence/feifacaikuang_old/index.data.ts @@ -0,0 +1,96 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; +import dayjs from 'dayjs'; + +// 无人机发现违法行为情况统计明细表-table +export const columns: BasicColumn[] = [ + { + title: 'countyid', + dataIndex: '县区id', + ifShow: false, + }, + { + title: '县区', + dataIndex: 'countyname', + width: 100, + fixed: 'left', + }, + { + title: '下发问题总数', + dataIndex: 'xfwtzs', + width: 100, + }, + { + title: '合法', + dataIndex: 'hf', + width: 100, + }, + { + title: '其他', + dataIndex: 'qt', + width: 100, + }, + { + title: '违法', + dataIndex: 'wf', + width: 100, + }, + { + title: '已完成归档', + dataIndex: 'ywcgd', + width: 100, + }, + { + title: '未完成归档', + dataIndex: 'wwcgd', + width: 100, + }, + { + title: '未完成归档', + width: 200, + children: [ + { + title: '违法采矿', + dataIndex: 'wfck', + width: 100, + }, + { + title: '违法加工', + dataIndex: 'wfjg', + width: 100, + }, + ], + }, + { + title: '整改率', + dataIndex: 'zgl', + fixed: 'right', + width: 100, + }, + { + title: '驳回率', + dataIndex: 'bhl', + fixed: 'right', + width: 100, + }, + { + title: '上报率', + dataIndex: 'sbl', + fixed: 'right', + width: 100, + }, +]; + +// 无人机发现违法行为情况统计明细表-搜索 +export const searchFormSchema: FormSchema[] = [ + { + field: '[startTime, endTime]', + label: '日期范围', + component: 'RangePicker', + colProps: { span: 8 }, + componentProps: { + format: 'YYYY-MM-DD', + placeholder: ['开始日期', '结束日期'], + defaultValue: [dayjs('2024-08-01', 'YYYY-MM-DD'), dayjs(dayjs().add(-1, 'day'), 'YYYY-MM-DD')] + }, + }, +]; diff --git a/src/views/demo/caseoffence/feifacaikuang_old/index.vue b/src/views/demo/caseoffence/feifacaikuang_old/index.vue new file mode 100644 index 00000000..cbe9bf31 --- /dev/null +++ b/src/views/demo/caseoffence/feifacaikuang_old/index.vue @@ -0,0 +1,171 @@ + + + + From ae5091f506e7a01895d4c08e56dedc2e3e144be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com> Date: Tue, 19 Nov 2024 13:55:45 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E9=9D=9E=E6=B3=95=E9=87=87=E7=9F=BF-?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=88=97=E8=A1=A8=E5=AF=BC=E5=87=BA=E4=BC=A0?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E9=97=B4=E4=B8=8D=E5=AF=B9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/caseoffence/feifacaikuang/index.vue | 22 ++++++++++++++----- .../caseoffence/feifacaikuang_old/index.vue | 22 ++++++++++++++----- 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/src/views/demo/caseoffence/feifacaikuang/index.vue b/src/views/demo/caseoffence/feifacaikuang/index.vue index e561551b..a2cca8e1 100644 --- a/src/views/demo/caseoffence/feifacaikuang/index.vue +++ b/src/views/demo/caseoffence/feifacaikuang/index.vue @@ -45,8 +45,8 @@ pagination: false, beforeFetch: (data) => { // 接口请求前 参数处理 - console.log(data); - // 默认时间 + // console.log(data); + // 第一次进入页面-默认时间 if (Object.keys(data).length == 0) { var temp = { startTime: dayjs('2024-08-01').startOf('day').format('YYYY-MM-DD'), @@ -55,7 +55,16 @@ searchParams.value = temp; return temp; } - // 起始时间和结束时间格式和精确值 + // 时间选择改变前-默认时间 + if (data.startTime === undefined && data.endTime === undefined) { + var temp = { + startTime: dayjs('2024-08-01').startOf('day').format('YYYY-MM-DD'), + endTime: dayjs().endOf('day').add(-1, 'day').format('YYYY-MM-DD HH:mm:ss'), + }; + searchParams.value = temp; + return temp; + } + // 时间选择改变后-起始时间和结束时间格式和精确值 if (data.startTime && data.endTime) { var temp = { startTime: dayjs(data.startTime).startOf('day').format('YYYY-MM-DD'), @@ -64,7 +73,8 @@ searchParams.value = temp; return temp; } - if (data.startTime === null || data.endTime === undefined) { + // 时间选择点X后 + if (data.startTime === null && data.endTime === undefined) { searchParams.value = {}; } }, @@ -78,7 +88,9 @@ let params: any = {}; let afterTitle = ''; - if ( + if (searchParams.value?.startTime === undefined && searchParams.value?.endTime === undefined) { + afterTitle = afterTitle; + } else if ( dayjs(searchParams.value?.startTime).startOf('day').format('YYYY-MM-DD') === dayjs(searchParams.value?.endTime).endOf('day').format('YYYY-MM-DD') ) { diff --git a/src/views/demo/caseoffence/feifacaikuang_old/index.vue b/src/views/demo/caseoffence/feifacaikuang_old/index.vue index cbe9bf31..5f1dc2fb 100644 --- a/src/views/demo/caseoffence/feifacaikuang_old/index.vue +++ b/src/views/demo/caseoffence/feifacaikuang_old/index.vue @@ -53,8 +53,8 @@ pagination: false, beforeFetch: (data) => { // 接口请求前 参数处理 - console.log(data); - // 默认时间 + // console.log(data); + // 第一次进入页面-默认时间 if (Object.keys(data).length == 0) { var temp = { startTime: dayjs('2024-08-01').startOf('day').format('YYYY-MM-DD'), @@ -63,7 +63,16 @@ searchParams.value = temp; return temp; } - // 起始时间和结束时间格式和精确值 + // 时间选择改变前-默认时间 + if (data.startTime === undefined && data.endTime === undefined) { + var temp = { + startTime: dayjs('2024-08-01').startOf('day').format('YYYY-MM-DD'), + endTime: dayjs().endOf('day').add(-1, 'day').format('YYYY-MM-DD HH:mm:ss'), + }; + searchParams.value = temp; + return temp; + } + // 时间选择改变后-起始时间和结束时间格式和精确值 if (data.startTime && data.endTime) { var temp = { startTime: dayjs(data.startTime).startOf('day').format('YYYY-MM-DD'), @@ -72,7 +81,8 @@ searchParams.value = temp; return temp; } - if (data.startTime === null || data.endTime === undefined) { + // 时间选择点X后 + if (data.startTime === null && data.endTime === undefined) { searchParams.value = {}; } }, @@ -86,7 +96,9 @@ let params: any = {}; let afterTitle = ''; - if ( + if (searchParams.value?.startTime === undefined && searchParams.value?.endTime === undefined) { + afterTitle = afterTitle; + } else if ( dayjs(searchParams.value?.startTime).startOf('day').format('YYYY-MM-DD') === dayjs(searchParams.value?.endTime).endOf('day').format('YYYY-MM-DD') ) { From ad25163d00c741d4bc6c041dace117eba9ff5ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com> Date: Tue, 19 Nov 2024 14:15:08 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E9=9D=9E=E6=B3=95=E9=87=87=E7=9F=BF-?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=88=97=E8=A1=A8-=E5=AF=BC=E5=87=BA-?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E9=80=89=E6=8B=A9=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8F=82=E6=95=B0=E4=B9=9F=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/caseoffence/feifacaikuang/index.vue | 12 ++++++++---- .../demo/caseoffence/feifacaikuang_old/index.vue | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/views/demo/caseoffence/feifacaikuang/index.vue b/src/views/demo/caseoffence/feifacaikuang/index.vue index a2cca8e1..9a6fbbfb 100644 --- a/src/views/demo/caseoffence/feifacaikuang/index.vue +++ b/src/views/demo/caseoffence/feifacaikuang/index.vue @@ -111,10 +111,14 @@ break; } - params = { - startTime: dayjs(searchParams.value?.startTime).startOf('day').format('YYYY-MM-DD'), - endTime: dayjs(searchParams.value?.endTime).endOf('day').format('YYYY-MM-DD HH:mm:ss'), - }; + if ( + !(searchParams.value?.startTime === undefined && searchParams.value?.endTime === undefined) + ) { + params = { + startTime: dayjs(searchParams.value?.startTime).startOf('day').format('YYYY-MM-DD'), + endTime: dayjs(searchParams.value?.endTime).endOf('day').format('YYYY-MM-DD HH:mm:ss'), + }; + } axios({ method: 'post', diff --git a/src/views/demo/caseoffence/feifacaikuang_old/index.vue b/src/views/demo/caseoffence/feifacaikuang_old/index.vue index 5f1dc2fb..94271f3a 100644 --- a/src/views/demo/caseoffence/feifacaikuang_old/index.vue +++ b/src/views/demo/caseoffence/feifacaikuang_old/index.vue @@ -119,10 +119,14 @@ break; } - params = { - startTime: dayjs(searchParams.value?.startTime).startOf('day').format('YYYY-MM-DD'), - endTime: dayjs(searchParams.value?.endTime).endOf('day').format('YYYY-MM-DD HH:mm:ss'), - }; + if ( + !(searchParams.value?.startTime === undefined && searchParams.value?.endTime === undefined) + ) { + params = { + startTime: dayjs(searchParams.value?.startTime).startOf('day').format('YYYY-MM-DD'), + endTime: dayjs(searchParams.value?.endTime).endOf('day').format('YYYY-MM-DD HH:mm:ss'), + }; + } axios({ method: 'post', From abf4f337e2f8bfb09642983675ce032fe2584bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com> Date: Wed, 20 Nov 2024 16:14:04 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BA=91=E6=9F=A5=E8=AF=A2-=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E5=A4=A9=E5=9C=B0=E5=9B=BE=E9=80=89=E9=A1=B9=EF=BC=8C?= =?UTF-8?q?=E5=8A=A0=E9=80=9F=E5=8F=A0=E5=8A=A0=E5=92=8C=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=9A=84=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CloudQueryModal/BasicQuery/index.vue | 289 +++++++++--------- .../test/components/ShowImage/index.vue | 13 +- 2 files changed, 150 insertions(+), 152 deletions(-) diff --git a/src/components/CloudQueryContent/CloudQueryModal/BasicQuery/index.vue b/src/components/CloudQueryContent/CloudQueryModal/BasicQuery/index.vue index 18af479f..3c651201 100644 --- a/src/components/CloudQueryContent/CloudQueryModal/BasicQuery/index.vue +++ b/src/components/CloudQueryContent/CloudQueryModal/BasicQuery/index.vue @@ -1,7 +1,7 @@