diff --git a/src/api/demo/system.ts b/src/api/demo/system.ts index dd3c35e1..caf1c6d6 100644 --- a/src/api/demo/system.ts +++ b/src/api/demo/system.ts @@ -80,6 +80,14 @@ enum Api { CaseOffence = '/api/DroneCaseInfoSingle/CaseOffence', LoadCaseInfoListOffence = '/api/DroneCaseInfoSingle/LoadCaseInfoListOffence', DealIllegalCaseInfo = '/api/DroneCaseInfoSingle/dealIllegalCaseInfo', + // 修改案件-获取案件列表 + LoadCaseInfoListForUpdate = '/api/DroneCaseInfoSingle/LoadCaseInfoListForUpdate', + // 修改案件-获取单个案件信息 + LoadCaseInfoById = '/api/DroneCaseInfoSingle/LoadCaseInfoById', + // 修改案件-修改案件信息 + UpdateCaseInfo = '/api/DroneCaseInfoSingle/UpdateCaseInfo', + // 修改案件-获取案件历史信息 + LoadCaseHistoryInfoList = '/api/DroneCaseInfoSingle/LoadCaseHistoryInfoList', } export const getPositionsTree = (params?: AccountParams) => @@ -356,3 +364,27 @@ export function dealIllegalCaseInfo(params) { params, }); } +export function LoadCaseInfoListForUpdate(params) { + return defHttp.get({ + url: Api.LoadCaseInfoListForUpdate, + params, + }); +} +export function LoadCaseInfoById(params:{id: string}) { + return defHttp.get({ + url: Api.LoadCaseInfoById, + params, + }); +} +export function UpdateCaseInfo(data) { + return defHttp.post({ + url: Api.UpdateCaseInfo, + data, + }); +} +export function LoadCaseHistoryInfoList(params:{key: string}) { + return defHttp.get({ + url: Api.LoadCaseHistoryInfoList, + params, + }); +} diff --git a/src/views/demo/system/casemodification/HistoryModal/ShowDetail/index.vue b/src/views/demo/system/casemodification/HistoryModal/ShowDetail/index.vue new file mode 100644 index 00000000..f8fc9cca --- /dev/null +++ b/src/views/demo/system/casemodification/HistoryModal/ShowDetail/index.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/src/views/demo/system/casemodification/HistoryModal/index.vue b/src/views/demo/system/casemodification/HistoryModal/index.vue new file mode 100644 index 00000000..1a01335f --- /dev/null +++ b/src/views/demo/system/casemodification/HistoryModal/index.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/src/views/demo/system/casemodification/HistoryModal/util.ts b/src/views/demo/system/casemodification/HistoryModal/util.ts new file mode 100644 index 00000000..4cace844 --- /dev/null +++ b/src/views/demo/system/casemodification/HistoryModal/util.ts @@ -0,0 +1,42 @@ +export const columns = [ + { + title: '修改时间', + dataIndex: 'recordingtime', + key: 'recordingtime', + }, + { + title: '面积', + dataIndex: 'area', + key: 'area', + }, + { + title: '农用地面积', + dataIndex: 'nongyongdi_area', + key: 'nongyongdi_area', + }, + { + title: '耕地面积', + dataIndex: 'gengdi_area', + key: 'gengdi_area', + }, + { + title: '永久基本农田面积', + dataIndex: 'yongjiujibennongtian_area', + key: 'yongjiujibennongtian_area', + }, + { + title: '重点区域面积', + dataIndex: 'zhongdianquyu_area', + key: 'zhongdianquyu_area', + }, + { + title: '生态保护红线面积', + dataIndex: 'shengtaibaohuhongxian_area', + key: 'shengtaibaohuhongxian_area', + }, + { + title: '国土空间规划面积', + dataIndex: 'guotukongjianguihua_area', + key: 'guotukongjianguihua_area', + } +] \ No newline at end of file diff --git a/src/views/demo/system/casemodification/InfoModal/index.vue b/src/views/demo/system/casemodification/InfoModal/index.vue new file mode 100644 index 00000000..fac78987 --- /dev/null +++ b/src/views/demo/system/casemodification/InfoModal/index.vue @@ -0,0 +1,217 @@ + + + + diff --git a/src/views/demo/system/casemodification/casemodification.data.ts b/src/views/demo/system/casemodification/casemodification.data.ts new file mode 100644 index 00000000..35c6113a --- /dev/null +++ b/src/views/demo/system/casemodification/casemodification.data.ts @@ -0,0 +1,222 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; +// import { getChildrenTree } from '@/api/demo/system'; + +const getYearList = () => { + const num = 10; + const currentYear = new Date().getFullYear(); + // 存储年份数据的数组 + const list: any = []; + // 获取当前年份 + // year.value = Number(`${currentYear}`); + list.push({ + value: Number(`${currentYear}`), + label: Number(`${currentYear}`), + }); + // 获取后面几年的数据 + for (let i = 1; i <= num; i++) { + list.push({ + value: Number(`${currentYear - i}`), + label: Number(`${currentYear - i}`), + }); + } + return list; +}; +export const columns: BasicColumn[] = [ + { + title: '图斑编号', + dataIndex: 'case_no', + width:180, + }, + { + title: '图斑描述', + dataIndex: 'case_description', + width:230, + }, + { + title: '区县', + dataIndex: 'countyname', + }, + { + title: '乡镇', + dataIndex: 'streetname', + }, + { + title: '社区', + dataIndex: 'communityname', + }, + { + title: '图斑面积', + dataIndex: 'area', + }, + { + title: '农用地面积', + dataIndex: 'nongyongdi_area', + }, + { + title: '耕地面积', + dataIndex: 'gengdi_area', + }, + { + title: '永久基本农田面积', + dataIndex: 'yongjiujibennongtian_area', + }, + { + title: '重点区域面积', + dataIndex: 'zhongdianquyu_area', + }, + { + title: '生态保护红线面积', + dataIndex: 'shengtaibaohuhongxian_area', + }, + { + title: '国土空间规划面积', + dataIndex: 'guotukongjianguihua_area', + }, +]; + +export const searchFormSchema: FormSchema[] = [ + // { + // field: 'year', + // component: 'Select', + // colProps: { span: 4 }, + // label: '年份', + // componentProps: { + // options: getYearList(), + // }, + // }, + // { + // field: 'tubanlaiyuan', + // label: '图斑来源', + // component: 'Select', + // colProps: { span: 4 }, + // componentProps: { + // options: [ + // { + // label: '全域巡查', + // value: '全域巡查', + // }, + // { + // label: '卫片下发', + // value: '卫片下发', + // }, + // ], + // }, + // }, + // { + // field: 'picihao', + // label: '批次', + // component: 'Select', + // colProps: { span: 4 }, + // componentProps: { + // options: [], + // }, + // }, + // { + // field: 'typename', + // label: '图斑类型', + // component: 'Select', + // colProps: { span: 4 }, + // componentProps: { + // options: [ + // { label: '农用地', value: '农用地' }, + // { label: '建设用地', value: '建设用地' }, + // { label: '推堆土', value: '推堆土' }, + // ], + // }, + // }, + // { + // field: 'isBuildName', + // label: '标注类型', + // component: 'Select', + // colProps: { span: 4 }, + // componentProps: { + // options: [ + // { label: '在建', value: '在建' }, + // { label: '已建成', value: '已建成' }, + // { label: '持续变化', value: '持续变化' }, + // ], + // }, + // }, + // { + // field: 'isIllegal', + // label: '判定结果', + // component: 'Select', + // colProps: { span: 4 }, + // componentProps: { + // options: [ + // { label: '合法', value: 0 }, + // { label: '违法', value: 1 }, + // { label: '其他', value: 2 }, + // ], + // }, + // }, + // { + // field: 'nowStatus', + // label: '当前状态', + // component: 'Select', + // componentProps: { + // options: [ + // { label: '待接收', value: '待接收' }, + // { label: '待填报', value: '待填报' }, + // { label: '待整改', value: '待整改' }, + // { label: '市级审核', value: '市级审核' }, + // { label: '县级审核', value: '县级审核' }, + // { label: '已归档', value: '已归档' }, + // ], + // }, + // colProps: { span: 4 }, + // }, + // { + // field: 'measureName', + // label: '整改措施', + // component: 'Select', + // colProps: { span: 4 }, + // componentProps: { + // options: [ + // { label: '拆除复耕', value: '0' }, + // { label: '补办手续', value: '1' }, + // ], + // }, + // }, + // { + // field: 'countyid', + // label: '区县', + // component: 'ApiSelect', + // colProps: { span: 4 }, + // componentProps: ({ tableAction, formModel }) => { + // return { + // api: getChildrenTree, + // params: { parentId: 371300 }, + // // 接口参数 + // resultField: 'result', + // labelField: 'name', + // valueField: 'id', + // onChange: () => { + // formModel.streetid = ''; + // }, + // }; + // }, + // }, + // { + // field: 'streetid', + // label: '乡镇', + // component: 'ApiSelect', + // colProps: { span: 4 }, + // componentProps: ({ formModel }) => { + // return { + // api: formModel.countyid && getChildrenTree, + // params: { parentId: formModel.countyid }, + // // 接口参数 + // resultField: 'result', + // labelField: 'name', + // valueField: 'id', + // }; + // }, + // }, + { + field: 'key', + label: '图斑编号', + component: 'Input', + colProps: { span: 4 }, + }, +]; diff --git a/src/views/demo/system/casemodification/index.vue b/src/views/demo/system/casemodification/index.vue new file mode 100644 index 00000000..8102030b --- /dev/null +++ b/src/views/demo/system/casemodification/index.vue @@ -0,0 +1,118 @@ + + +