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

329 lines
6.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,
} from '@/utils/global';
export const columns: BasicColumn[] = [
{
title: '年度',
dataIndex: 'year',
},
{
title: '图斑编号',
dataIndex: 'caseno',
width: 200,
},
{
title: '区县',
dataIndex: 'countyname',
width: 100,
},
{
title: '乡镇',
dataIndex: 'streetname',
},
{
title: '社区/村',
dataIndex: 'communityname',
},
{
title: '行政区划编码',
dataIndex: 'communityname',
},
{
title: '图斑类型',
dataIndex: 'typename',
},
{
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',
};
},
},
{
field: 'year',
component: 'Select',
colProps: { span: 4 },
label: '年度',
componentProps: {
options: yearOptions,
},
},
{
field: 'tubanlaiyuan',
label: '图斑来源',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: patchSourceOptions,
},
},
{
field: 'typename',
label: '图斑类型',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: [
{ label: '部级矿产卫片图斑', value: '部级矿产卫片图斑' },
{ label: '省级矿产卫片图斑', value: '省级矿产卫片图斑' },
],
},
},
{
field: 'isIllegal',
label: '判定结果',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: mapTypeOptions,
},
},
{
field: 'nowStatus',
label: '当前状态',
component: 'Select',
componentProps: {
options: nowStatusOptions,
},
colProps: { span: 4 },
},
{
field: 'measureName',
label: '整改措施',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: [
{ label: '拆除复耕', value: '0' },
{ label: '补办手续', value: '1' },
],
},
},
// {
// field: 'picihao',
// label: '批次',
// component: 'Select',
// colProps: { span: 4 },
// componentProps: {
// options: [],
// },
// },
// {
// field: 'isBuildName',
// label: '标注类型',
// component: 'Select',
// colProps: { span: 4 },
// componentProps: {
// options: markTypeOptions,
// },
// },
{
field: 'caseNo',
label: '图斑编号',
component: 'Input',
colProps: { span: 4 },
},
// {
// field: 'originalcaseno',
// label: '标识号',
// component: 'Input',
// colProps: { span: 4 },
// },
{
field: 'measureName',
label: '开采违法类型',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: [
{ label: '拆除复耕', value: '0' },
{ label: '补办手续', value: '1' },
],
},
},
{
field: 'measureName',
label: '加工违法类型',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: [
{ label: '拆除复耕', value: '0' },
{ label: '补办手续', value: '1' },
],
},
},
// 增加图斑面积、耕地面积、永农面积的筛选项;
{
field: 'tubanmianji',
label: '图斑面积',
colProps: { span: 4 },
slot: 'tubanmianji',
},
// {
// field: 'gengdimianji',
// label: '耕地面积',
// colProps: { span: 4 },
// slot: 'gengdimianji',
// },
// {
// field: 'jibennongtianmianji',
// label: '永农面积',
// colProps: { span: 4 },
// slot: 'jibennongtianmianji',
// },
{
field: 'measureName',
label: '是否重点矿区',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: [
{ label: '全部', value: '-1' },
{ label: '是', value: '1' },
{ label: '否', value: '0' },
],
},
},
{
field: 'measureName',
label: '权属矿种',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: [],
},
},
{
field: '[startDate, endDate]',
label: '日期范围',
component: 'RangePicker',
componentProps: {
format: 'YYYY-MM-DD',
placeholder: ['开始日期', '结束日期'],
},
},
];