CaiYuanYiTiHua/src/views/demo/minerals/patchsummary/patchsummary.data.ts

279 lines
5.4 KiB
TypeScript
Raw Normal View History

import { BasicColumn, FormSchema } from '@/components/Table';
import { getChildrenTree } from '@/api/demo/system';
import {
patchSourceOptions,
yearOptions,
markTypeOptions,
nowStatusOptions,
mapTypeOptions,
2024-08-29 10:06:46 +08:00
getOptions,
} from '@/utils/global';
2024-08-29 10:06:46 +08:00
export const columns: BasicColumn[] = [
{
title: '年度',
2024-08-29 10:06:46 +08:00
dataIndex: 'syear_base',
},
{
title: '图斑编号',
dataIndex: 'caseno',
width: 200,
},
{
title: '区县',
dataIndex: 'countyname',
width: 100,
},
{
title: '乡镇',
dataIndex: 'streetname',
},
{
title: '社区/村',
dataIndex: 'communityname',
},
{
title: '行政区划编码',
dataIndex: 'communityname',
},
{
title: '图斑类型',
2024-08-29 10:06:46 +08:00
dataIndex: 'type_base',
},
{
title: '矿种',
dataIndex: 'typename',
},
{
title: '图斑变化情况说明',
dataIndex: 'typename',
},
{
title: '所属重点矿区名称',
dataIndex: 'typename',
},
{
title: '所在国家自热保护区名称',
dataIndex: 'typename',
},
{
title: '图斑面积',
dataIndex: 'area',
width: 110,
},
{
title: '耕地面积',
dataIndex: 'gengdiarea',
width: 110,
},
{
title: '违法开采面积',
dataIndex: 'handlestatusname',
width: 80,
},
{
title: '违法占地面积',
dataIndex: 'handlestatusname',
width: 80,
},
{
title: '是否持续违法',
dataIndex: 'handlestatusname',
width: 80,
},
{
title: '当前状态',
dataIndex: 'handlestatusname',
width: 80,
},
{
title: '判定结果',
dataIndex: 'isillegal',
width: 80,
},
{
title: '下发时间',
dataIndex: 'identificationtime',
},
{
title: '项目主体',
dataIndex: 'xiangmuzhuti',
},
{
title: '开发违法类型',
dataIndex: 'actualuseto',
},
{
title: '加工违法类型',
dataIndex: 'weifaleixing',
},
{
title: '整改措施',
dataIndex: 'measurename',
},
{
title: '处理时限',
dataIndex: 'measurename',
},
{
title: '备注',
dataIndex: 'measurename',
},
];
export const searchFormSchema: FormSchema[] = [
{
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',
};
},
},
{
2024-08-29 10:06:46 +08:00
field: 'syear_base',
component: 'Select',
colProps: { span: 4 },
label: '年度',
componentProps: {
options: yearOptions,
},
},
{
field: 'tubanlaiyuan',
label: '图斑来源',
component: 'Select',
colProps: { span: 4 },
componentProps: {
2024-08-29 10:06:46 +08:00
options: getOptions('tubanlaiyuan'),
},
},
{
2024-08-29 10:06:46 +08:00
field: 'type_base',
label: '图斑类型',
component: 'Select',
colProps: { span: 4 },
componentProps: {
2024-08-29 10:06:46 +08:00
options: getOptions('kctubanleixing'),
},
},
{
2024-08-29 10:06:46 +08:00
field: 'hefapanding_fill',
label: '判定结果',
component: 'Select',
colProps: { span: 4 },
componentProps: {
2024-08-29 10:06:46 +08:00
options: getOptions('kcpandingjieguo'),
},
},
{
2024-08-29 10:06:46 +08:00
field: 'status_base',
label: '当前状态',
component: 'Select',
componentProps: {
2024-08-29 10:06:46 +08:00
options: getOptions('kcdangqianzhuangtai'),
},
colProps: { span: 4 },
},
{
field: 'measureName',
label: '整改措施',
component: 'Select',
colProps: { span: 4 },
componentProps: {
2024-08-29 10:06:46 +08:00
options: getOptions('kczhenggaicuoshi'),
},
},
{
2024-08-29 10:06:46 +08:00
field: 'tubannum_base',
label: '图斑编号',
component: 'Input',
colProps: { span: 4 },
},
{
2024-08-29 10:06:46 +08:00
field: 'wefatype_kcfill',
label: '开采违法类型',
component: 'Select',
colProps: { span: 4 },
componentProps: {
2024-08-29 10:06:46 +08:00
options: getOptions('kaicaiweifa'),
},
},
{
2024-08-29 10:06:46 +08:00
field: 'weifatype_jgfill',
label: '加工违法类型',
component: 'Select',
colProps: { span: 4 },
componentProps: {
2024-08-29 10:06:46 +08:00
options: getOptions('jiagongweifa'),
},
},
// 增加图斑面积、耕地面积、永农面积的筛选项;
{
field: 'tubanmianji',
label: '图斑面积',
colProps: { span: 4 },
slot: 'tubanmianji',
},
{
2024-08-29 10:06:46 +08:00
field: 'zhongdianflag_base',
label: '是否重点矿区',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: [
{ label: '全部', value: '-1' },
{ label: '是', value: '1' },
{ label: '否', value: '0' },
],
},
},
{
2024-08-29 10:06:46 +08:00
field: 'kuangzhong_kcfill',
label: '权属矿种',
component: 'Select',
colProps: { span: 4 },
componentProps: {
2024-08-29 10:06:46 +08:00
options: getOptions('kuangzhong'),
},
},
{
2024-08-29 10:06:46 +08:00
field: '[startTime, endTime]',
label: '日期范围',
component: 'RangePicker',
componentProps: {
format: 'YYYY-MM-DD',
placeholder: ['开始日期', '结束日期'],
},
},
];