CaiYuanYiTiHua/src/views/demo/caseoffence/index.data.ts

258 lines
5.1 KiB
TypeScript

import { BasicColumn, FormSchema } from '@/components/Table';
import dayjs from 'dayjs';
import { getLoad } from '@/api/sys/sysDataItemDetail';
// 无人机发现违法行为情况统计明细表-table
export const columns: BasicColumn[] = [
{
title: 'countyid',
dataIndex: '县区id',
ifShow: false,
},
{
title: '县区',
dataIndex: 'countyname',
width: 100,
fixed: 'left',
},
{
title: '下发图斑',
children: [
{
title: '宗数',
dataIndex: 'xftbzs',
width: 90,
},
{
title: '面积',
dataIndex: 'xfmj',
width: 90,
},
{
title: '耕地面积',
dataIndex: 'xfgdmj',
width: 90,
},
],
},
{
title: '合法',
children: [
{
title: '宗数',
dataIndex: 'hfzs',
width: 90,
},
{
title: '面积',
dataIndex: 'hfmj',
width: 90,
},
{
title: '耕地面积',
dataIndex: 'hfgdmj',
width: 90,
},
],
},
{
title: '违法',
children: [
{
title: '小计',
children: [
{
title: '宗数',
dataIndex: 'wfzs',
width: 90,
},
{
title: '面积',
dataIndex: 'wfmj',
width: 90,
},
{
title: '耕地面积',
dataIndex: 'wfgdmj',
width: 90,
},
],
},
{
title: '非农化',
children: [
{
title: '宗数',
dataIndex: 'fnhzs',
width: 90,
},
{
title: '面积',
dataIndex: 'fnhmj',
width: 90,
},
{
title: '耕地面积',
dataIndex: 'fnhgdmj',
width: 90,
},
],
},
{
title: '非粮化',
children: [
{
title: '宗数',
dataIndex: 'flhzs',
width: 90,
},
{
title: '面积',
dataIndex: 'flhmj',
width: 90,
},
{
title: '耕地面积',
dataIndex: 'flhgdmj',
width: 90,
},
],
},
],
},
{
title: '其他',
children: [
{
title: '宗数',
dataIndex: 'qtzs',
width: 90,
},
{
title: '面积',
dataIndex: 'qtmj',
width: 90,
},
{
title: '耕地面积',
dataIndex: 'qtgdmj',
width: 90,
},
],
},
{
title: '整改情况',
children: [
{
title: '补办手续',
children: [
{
title: '宗数',
dataIndex: 'bbsxzs',
width: 90,
},
{
title: '面积',
dataIndex: 'bbsxmj',
width: 90,
},
{
title: '耕地面积',
dataIndex: 'bbsxgdmj',
width: 90,
},
],
},
{
title: '拆除复耕',
children: [
{
title: '宗数',
dataIndex: 'cczs',
width: 90,
},
{
title: '面积',
dataIndex: 'ccmj',
width: 90,
},
{
title: '耕地面积',
dataIndex: 'ccgdmj',
width: 90,
},
],
},
],
},
{
title: '新增违法占用耕地情况',
children: [
{
title: '核实后新增违法耕地',
children: [
{
title: '宗数',
dataIndex: 'hshxzwfgdzs',
width: 90,
},
{
title: '耕地面积',
dataIndex: 'hshxzwfgdgdmj',
width: 90,
},
],
},
{
title: '整改后剩余违法耕地',
children: [
{
title: '宗数',
dataIndex: 'zghsywfgdzs',
width: 90,
},
{
title: '耕地面积',
dataIndex: 'zghsywfgdgdmj',
width: 90,
},
],
},
],
},
];
// 无人机发现违法行为情况统计明细表-搜索
export const searchFormSchema: FormSchema[] = [
{
field: '[startTime, endTime]',
label: '日期范围',
component: 'RangePicker',
colProps: { span: 8 },
componentProps: {
format: 'YYYY-MM-DD',
// picker: 'month',
placeholder: ['开始日期', '结束日期'],
defaultValue: [dayjs(dayjs().add(-1, 'day'), 'YYYY-MM-DD'), dayjs(dayjs().add(-1, 'day'), 'YYYY-MM-DD')]
},
},
{
field: 'tubanlaiyuan',
label: '图斑来源',
component: 'ApiSelect',
colProps: { span: 5 },
componentProps: ({ formModel }) => {
return {
api: getLoad,
params: { code: 'wfydtbly' },
// 接口参数
resultField: 'result',
labelField: 'itemName',
valueField: 'itemValue',
mode: 'multiple',
maxTagCount: 1
};
},
},
];