diff --git a/src/api/demo/system.ts b/src/api/demo/system.ts index c224197..cc67ab9 100644 --- a/src/api/demo/system.ts +++ b/src/api/demo/system.ts @@ -68,7 +68,8 @@ enum Api { UpdateNotice = '/api/DroneCaseinfo/UpdateMessage', DeleteNotice = '/api/DroneCaseinfo/UpdateDelMessage', UserList = '/api/users/load', - // StatisticalList='/api/DroneCaseinfo/CaseSynthesisCensus', + CaseOffenceForSsny ='/api/DroneSsnyStatistics/CaseOffenceForSsny', + GetCaseInfo ='/api/DroneSsnyStatistics/GetCaseInfo', StatisticalList = '/api/DroneCaseInfoSingle/CaseSynthesisCensusSingle', StatisticalListExport = '/api/DroneCaseInfoSingle/ExportCaseSynthesisCensusStreet', LoadNoticeDetail = '/api/DroneCaseinfo/LoadMessage', @@ -339,7 +340,11 @@ export const getReportList = (params: ReportParams) => export const getStatisticalList = (params: ReportParams) => defHttp.get({ url: Api.StatisticalList, params }); - +export const getCaseOffenceForSsnyList = (params: ReportParams) => + defHttp.get({ url: Api.CaseOffenceForSsny, params }); +export const getCaseOffenceInfoList = (params: ReportParams) => + defHttp.get({ url: Api.GetCaseInfo, params }); + export const exportStatisticalList = (params: ReportParams) => { return defHttp.post({ url: Api.StatisticalListExport, diff --git a/src/views/demo/statisticalanalysis/RecordList.vue b/src/views/demo/statisticalanalysis/RecordList.vue new file mode 100644 index 0000000..5a2fe99 --- /dev/null +++ b/src/views/demo/statisticalanalysis/RecordList.vue @@ -0,0 +1,138 @@ + + + diff --git a/src/views/demo/statisticalanalysis/index.vue b/src/views/demo/statisticalanalysis/index.vue new file mode 100644 index 0000000..026fd92 --- /dev/null +++ b/src/views/demo/statisticalanalysis/index.vue @@ -0,0 +1,102 @@ + + + diff --git a/src/views/demo/statisticalanalysis/page.ts b/src/views/demo/statisticalanalysis/page.ts new file mode 100644 index 0000000..64f58ff --- /dev/null +++ b/src/views/demo/statisticalanalysis/page.ts @@ -0,0 +1,3 @@ + +export { default as RecordList} from './RecordList.vue' + diff --git a/src/views/demo/statisticalanalysis/statistical.data.ts b/src/views/demo/statisticalanalysis/statistical.data.ts new file mode 100644 index 0000000..988254f --- /dev/null +++ b/src/views/demo/statisticalanalysis/statistical.data.ts @@ -0,0 +1,152 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; +import { h } from 'vue'; +import { Switch,Tag } from 'ant-design-vue'; +import { setRoleStatus } from '@/api/demo/system'; +import { useMessage } from '@/hooks/web/useMessage'; + +type CheckedType = boolean | string | number; + + +export const columnsDataPreview: BasicColumn[] = [ + { + title: '乡镇', + dataIndex: 'countyname', + width: 120, + },{ + title: '项目个数', + dataIndex: 'xmcount', + width: 120, + },{ + title: '项目总用地面积', + dataIndex: 'xmzydmj', + width: 120, + },{ + title: '按功能区分', + children:[ + { + title: '生产用地', + dataIndex: 'scydmj', + width: 120, + },{ + title: '生成辅助用地', + dataIndex: 'scfzydmj', + width: 120, + } + ] + },{ + title: '其中面积', + dataIndex: '', + children:[ + { + title: '农用地', + dataIndex: 'nydmj', + width: 120, + },{ + title: '耕地', + dataIndex: 'gdmj', + width: 120, + },{ + title: '永久基本农田', + dataIndex: 'yjjbntmj', + width: 120, + } + ] + } +]; + +export const columns: BasicColumn[] = [ + { + title: '乡镇', + dataIndex: 'countyname', + width: 120, + },{ + title: '项目个数', + dataIndex: 'xmcount', + width: 120, + },{ + title: '项目总用地面积', + dataIndex: 'xmzydmj', + width: 120, + },{ + title: '按功能区分', + children:[ + { + title: '生产用地', + dataIndex: 'scydmj', + width: 120, + },{ + title: '生成辅助用地', + dataIndex: 'scfzydmj', + width: 120, + } + ] + },{ + title: '其中面积', + dataIndex: '', + children:[ + { + title: '农用地', + dataIndex: 'nydmj', + width: 120, + },{ + title: '耕地', + dataIndex: 'gdmj', + width: 120, + },{ + title: '永久基本农田', + dataIndex: 'yjjbntmj', + width: 120, + } + ] + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'tubanlaiyuan', + label: '图斑来源', + component: 'Input', + colProps: { span: 6 }, + }, + { + field: '[startTime, endTime]', + label: '日期范围', + component: 'RangePicker', + colProps: { span: 8 }, + componentProps: { + format: 'YYYY-MM-DD', + placeholder: ['开始日期', '结束日期'], + }, + }, + +]; + + + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: '角色名称', + required: true, + component: 'Input', + ifShow:false, + }, + { + field: 'name', + label: '角色名称', + required: true, + component: 'Input', + }, + { + field: 'status', + label: '状态', + component: 'RadioButtonGroup', + defaultValue: 0, + componentProps: { + options: [ + { label: '启用', value: 0}, + { label: '停用', value: 1 }, + ], + }, + }, +];