From 46d05b50f5107719219c28a1ed9137d31e3ed6ee Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Sat, 24 May 2025 08:41:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E9=A1=B9=E7=9B=AE=E7=94=BB?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/earlywarning/index.ts | 11 +++ src/views/demo/projectlist/index.vue | 103 +++++++++++++++++++++++++++ src/views/demo/projectlist/utils.ts | 76 ++++++++++++++++++++ 3 files changed, 190 insertions(+) create mode 100644 src/views/demo/projectlist/index.vue create mode 100644 src/views/demo/projectlist/utils.ts diff --git a/src/api/earlywarning/index.ts b/src/api/earlywarning/index.ts index 19a9917..682ae2b 100644 --- a/src/api/earlywarning/index.ts +++ b/src/api/earlywarning/index.ts @@ -1,11 +1,19 @@ import { defHttp } from '@/utils/http/axios'; enum Api { + // 到期预警 TimeoutWarning = '/api/DroneSsny/TimeoutWarning', + // 超期预警 TimeOutAlarmList = '/api/DroneSsny/TimeOutAlarmList', + // 到期预警导出 TimeoutWarningExport = '/api/DroneSsny/TimeoutWarningExport', + // 超期预警导出 TimeoutAlarmExport = '/api/DroneSsny/TimeoutAlarmExport', + // 历史项目 HistoryProject = '/api/DroneSsny/HistoryProject', + // 历史项目导出 HistoryProjectExport = '/api/DroneSsny/HistoryProjectExport', + // 项目列表 + GetDronssnydList = '/api/DroneSsny/GetDronssnydList', } export function TimeoutWarning(params) { @@ -39,4 +47,7 @@ export function HistoryProjectExport(params) { params, responseType: 'blob', }); +} +export function GetDronssnydList(params) { + return defHttp.get({ url: Api.GetDronssnydList, params }); } \ No newline at end of file diff --git a/src/views/demo/projectlist/index.vue b/src/views/demo/projectlist/index.vue new file mode 100644 index 0000000..775c452 --- /dev/null +++ b/src/views/demo/projectlist/index.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/views/demo/projectlist/utils.ts b/src/views/demo/projectlist/utils.ts new file mode 100644 index 0000000..b3653b4 --- /dev/null +++ b/src/views/demo/projectlist/utils.ts @@ -0,0 +1,76 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; +import { getChildrenTree } from '@/api/demo/system'; + +export const columns: BasicColumn[] = [ + { + title: '项目编号', + dataIndex: 'xiangmu_no', + }, + { + title: '项目名称', + dataIndex: 'xiangmu_name', + width: 200, + }, + { + title: '行政区划', + dataIndex: 'xingzhengquhua', + }, + { + title: '备案编号', + dataIndex: 'beian_no', + }, + { + title: '项目开始时间', + dataIndex: 'start_time', + width: 200, + }, + { + title: '项目结束时间', + dataIndex: 'end_time', + }, + { + title: '项目当前用途', + dataIndex: 'xiangmu_yt', + width: 110, + }, + { + title: '设施农业申请用地面积(公顷)', + dataIndex: 'shenqing_area', + width: 200, + }, + { + title: '生产设施用地(公顷)', + dataIndex: 'shengchan_area', + width: 200, + }, + { + title: '辅助设施用地(公顷)', + dataIndex: 'fuzhu_area', + width: 200, + }, +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'xiangmumc', + component: 'Input', + colProps: { span: 5 }, + label: '项目名称', + }, + { + field: 'streetid', + label: '乡镇', + component: 'ApiSelect', + colProps: { span: 4 }, + componentProps: ({ formModel }) => { + return { + api: getChildrenTree, + params: { parentId: 371324 }, + // 接口参数 + resultField: 'result', + labelField: 'name', + valueField: 'id', + }; + }, + }, +];