diff --git a/src/api/demo/model/systemModel.ts b/src/api/demo/model/systemModel.ts index 6fc6a36..54f0bec 100644 --- a/src/api/demo/model/systemModel.ts +++ b/src/api/demo/model/systemModel.ts @@ -88,3 +88,23 @@ export type RolePageListGetResultModel = BasicFetchResult; export type RoleListGetResultModel = RoleListItem[]; export type addDeptModel = addDept[]; + +export type ReportParams = BasicPageParams; + +export interface ReportListItem { + id?:string +} + +export interface NoticeListItem { + Id :string; + msg_title:string; + msg_content:string; + createtime:string; + createuser:string; + createusername:string; + is_delete:number; + msg_type:number; + case_no:string; + caseid:string; + is_read:number; +} \ No newline at end of file diff --git a/src/api/demo/system.ts b/src/api/demo/system.ts index 538e638..86d4ef9 100644 --- a/src/api/demo/system.ts +++ b/src/api/demo/system.ts @@ -10,7 +10,10 @@ import { AccountListGetResultModel, RolePageListGetResultModel, RoleListGetResultModel, - addDept + addDept, + ReportParams, + ReportListGetResultModel, + NoticeListGetResultModel } from './model/systemModel'; import { defHttp } from '@/utils/http/axios'; @@ -55,6 +58,8 @@ enum Api { LoadDataBaseLinkTree = '/api/SysDatabaseLink/LoadDataBaseLinkTree', GetPosInfo = '/api/SysPosition/Get', UpdatePosition = '/api/SysPosition/Update', + ReportList = '/api/DroneCaseinfo/LoadCaseInfoList', + NoticeList = '/api/DroneCaseinfo/LoadMessageList', } export const getPositionsTree = (params?: AccountParams) => @@ -293,4 +298,10 @@ export const getLoadDataBaseLinkTree = () => export const getPosInfo = (params) => defHttp.get({ url: Api.GetPosInfo, params }); +export const getReportList = (params: ReportParams)=> + defHttp.get({ url: Api.ReportList, params }); + + +export const getNoticeList = (params?:Object) => + defHttp.get({url:Api.NoticeList,params}) diff --git a/src/views/demo/notice/DeptModal.vue b/src/views/demo/notice/DeptModal.vue new file mode 100644 index 0000000..61c7da2 --- /dev/null +++ b/src/views/demo/notice/DeptModal.vue @@ -0,0 +1,76 @@ + + diff --git a/src/views/demo/notice/DeptTree.vue b/src/views/demo/notice/DeptTree.vue new file mode 100644 index 0000000..58d1076 --- /dev/null +++ b/src/views/demo/notice/DeptTree.vue @@ -0,0 +1,40 @@ + + \ No newline at end of file diff --git a/src/views/demo/notice/PosGroupModal.vue b/src/views/demo/notice/PosGroupModal.vue new file mode 100644 index 0000000..e9d11d7 --- /dev/null +++ b/src/views/demo/notice/PosGroupModal.vue @@ -0,0 +1,59 @@ + + \ No newline at end of file diff --git a/src/views/demo/notice/dbsource.data.ts b/src/views/demo/notice/dbsource.data.ts new file mode 100644 index 0000000..72aee02 --- /dev/null +++ b/src/views/demo/notice/dbsource.data.ts @@ -0,0 +1,234 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; +import { getDataBaseCodeList } from '@/api/formdesign/index'; + +// 数据源table +export const dbsourcesColumns: BasicColumn[] = [ + { + title: 'ID', + dataIndex: 'id', + ifShow: false, + }, + { + title: '编码', + dataIndex: 'code', + width: 200, + }, + { + title: '名称', + dataIndex: 'name', + width: 200, + }, + { + title: '数据库', + dataIndex: 'dbId', + width: 80, + }, + { + title: '创建人', + dataIndex: 'createUserName', + width: 80, + }, + { + title: '创建时间', + dataIndex: 'createDate', + width: 80, + }, + { + title: '创建人id', + dataIndex: 'reateUserId', + ifShow: false, + }, + { + title: '备注', + dataIndex: 'description', + ifShow: false, + }, + { + title: 'ID', + dataIndex: 'id', + ifShow: false, + }, + { + title: 'modifyDate', + dataIndex: 'modifyDate', + ifShow: false, + }, + { + title: 'modifyUserId', + dataIndex: 'modifyUserId', + ifShow: false, + }, + { + title: 'modifyUserName', + dataIndex: 'modifyUserName', + ifShow: false, + }, + { + title: 'SQL', + dataIndex: 'sql', + ifShow: false, + }, +]; +// 数据源table-搜索 +export const searchFormSchema: FormSchema[] = [ + { + field: 'keyword', + label: '名称', + component: 'Input', + colProps: { span: 8 }, + }, +]; +// 数据源table-新增、编辑 +export const formSchema: FormSchema[] = [ + { + field: 'code', + component: 'Input', + label: '编号', + colProps: { + span: 24, + }, + defaultValue: '', + required: true, + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'name', + component: 'Input', + label: '名称', + colProps: { + span: 24, + }, + defaultValue: '', + required: true, + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'dbId', + component: 'ApiTreeSelect', + label: '数据库', + required: true, + colProps: { + span: 24, + }, + componentProps: { + api: () => + getDataBaseCodeList({}).then((data: Recordable) => { + return new Promise((resolve) => { + resolve(data); + }); + }), + labelField: 'text', + valueField: 'value', + async: true, + onChange: (e, v) => { + console.log('ApiTreeSelect====>:', e, v); + }, + onLoadData: ({ treeData, resolve, treeNode }) => { + setTimeout(() => { + const children: Recordable[] = []; + treeData.value.forEach((item) => { + if (item.id == treeNode.id) { + if (item.childNodes) { + item.childNodes.forEach((val) => { + children.push({ + text: val.text, + value: val.value, + }); + }); + } + } + }); + children.forEach((item) => { + item.isLeaf = false; + item.children = []; + }); + treeNode.dataRef.children = children; + treeData.value = [...treeData.value]; + resolve(); + return; + }, 300); + }, + }, + }, + { + field: 'sql', + component: 'InputTextArea', + label: 'SQL语句', + colProps: { + span: 24, + }, + defaultValue: '', + required: true, + componentProps: { + placeholder: '', + }, + }, + { + field: 'description', + component: 'InputTextArea', + label: '描述', + colProps: { + span: 24, + }, + defaultValue: '', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'id', + component: 'Input', + label: 'id', + ifShow: false, + }, + { + field: 'createUserId', + component: 'Input', + label: '创建人', + ifShow: false, + }, + { + field: 'createUserName', + component: 'Input', + label: '创建人', + ifShow: false, + }, + { + field: 'createDate', + component: 'Input', + label: '创建时间', + ifShow: false, + }, + { + field: 'modifyUserId', + component: 'Input', + label: '修改人', + ifShow: false, + }, + { + field: 'modifyUserName', + component: 'Input', + label: '修改人', + ifShow: false, + }, + { + field: 'modifyDate', + component: 'Input', + label: '修改时间', + ifShow: false, + }, + { + field: 'isEdit', + component: 'Input', + ifShow: false, + }, + { + field: 'tenantId', + component: 'Input', + ifShow: false, + }, +]; diff --git a/src/views/demo/notice/dept.data.ts b/src/views/demo/notice/dept.data.ts new file mode 100644 index 0000000..852d143 --- /dev/null +++ b/src/views/demo/notice/dept.data.ts @@ -0,0 +1,143 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; +import { h } from 'vue'; +import { Tag } from 'ant-design-vue'; +import { getPosGroupList } from '@/api/demo/system'; + +export const columns: BasicColumn[] = [ + { + title: '标题', + dataIndex: 'msg_title', + }, + { + title: '内容', + dataIndex: 'msg_content', + }, + { + title: '编辑人', + dataIndex: 'createusername', + }, + { + title: '创建时间', + dataIndex: 'createtime', + }, + // { + // title: '操作', + // dataIndex: 'createTime', + // width: 180, + // }, + // { + // title: '备注', + // dataIndex: 'remark', + // }, +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'key', + label: '关键字段', + component: 'Input', + colProps: { span: 6 }, + },{ + field: 'msg_type', + component: 'Select', + label: '通知类型', + colProps: { + span: 6, + }, + componentProps: { + options: [ + { + label: '政策法规', + value: '0', + key: '0', + },{ + label: '消息通知', + value: '1', + key: '1', + } + ], + }, + } +]; +export const formGroupSchema: FormSchema[] = [ + { + field: 'posGroupId', + component: 'ApiSelect', + label: '职级组', + required: true, + componentProps: ({ formActionType, formModel }) => { + return { + api: getPosGroupList, // 接口 + // 接口参数 + resultField: 'result', + labelField: 'name', + valueField: 'id', + }; + }, + }, +]; + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: '名称', + component: 'Input', + ifShow:false + }, + { + field: 'name', + label: '通知标题', + component: 'Input', + required: true, + }, + { + field: 'msg_content', + label: '通知内容', + component: 'InputTextArea', + required: true, + }, + { + field: 'msg_type', + label: '通知类型', + component: 'RadioButtonGroup', + defaultValue: 0, + componentProps: { + options: [ + { label: '政策法规', value: 0 }, + { label: '消息通知', value: 1 }, + ], + }, + required: true, + },{ + field: 'is_all', + label: '是否全选', + component: 'RadioButtonGroup', + defaultValue: 0, + componentProps: { + options: [ + { label: '否', value: 0 }, + { label: '是', value: 1 }, + ], + }, + required: true, + }, + { + field: 'parentId', + label: '选择部门', + component: 'TreeSelect', + componentProps: { + fieldNames: { + label: 'name', + key: 'id', + value: 'id', + }, + onChange:(value)=>{ + console.log(value) + }, + getPopupContainer: () => document.body, + }, + // required: true, + }, + + +]; diff --git a/src/views/demo/notice/drawer.vue b/src/views/demo/notice/drawer.vue new file mode 100644 index 0000000..b98c418 --- /dev/null +++ b/src/views/demo/notice/drawer.vue @@ -0,0 +1,94 @@ + + diff --git a/src/views/demo/notice/index.vue b/src/views/demo/notice/index.vue new file mode 100644 index 0000000..ef6a282 --- /dev/null +++ b/src/views/demo/notice/index.vue @@ -0,0 +1,136 @@ + + diff --git a/src/views/demo/notice/modal.vue b/src/views/demo/notice/modal.vue new file mode 100644 index 0000000..3424d14 --- /dev/null +++ b/src/views/demo/notice/modal.vue @@ -0,0 +1,116 @@ + + + + diff --git a/src/views/demo/notice/page.ts b/src/views/demo/notice/page.ts new file mode 100644 index 0000000..4dd7761 --- /dev/null +++ b/src/views/demo/notice/page.ts @@ -0,0 +1,5 @@ + +export { default as DeptTree } from './DeptTree.vue'; +export { default as DeptModal } from './DeptModal.vue'; +export { default as PosGroupModal } from './PosGroupModal.vue'; + diff --git a/src/views/demo/report/index.vue b/src/views/demo/report/index.vue new file mode 100644 index 0000000..f616ca4 --- /dev/null +++ b/src/views/demo/report/index.vue @@ -0,0 +1,162 @@ + + diff --git a/src/views/demo/report/page.ts b/src/views/demo/report/page.ts new file mode 100644 index 0000000..26aa161 --- /dev/null +++ b/src/views/demo/report/page.ts @@ -0,0 +1,6 @@ + +export { default as AccountModal } from './AccountModal.vue'; +export { default as ModulesModal } from './ModulesModal.vue'; +export { default as RoleDrawer } from './RoleDrawer.vue'; +export { default as RoleModal } from './RoleModal.vue'; + diff --git a/src/views/demo/report/report.data.ts b/src/views/demo/report/report.data.ts new file mode 100644 index 0000000..4f6d9a0 --- /dev/null +++ b/src/views/demo/report/report.data.ts @@ -0,0 +1,98 @@ +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 columns: BasicColumn[] = [ + { + title: '案件编号', + dataIndex: 'case_no', + width: 200, + },{ + title: '案件描述', + dataIndex: 'case_description', + width: 200, + },{ + title: '办结状态', + dataIndex: 'handle_status_name', + width: 200, + },{ + title: '上报人', + dataIndex: 'createusername', + width: 200, + },{ + title: '上报时间', + dataIndex: 'createtime', + width: 200, + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'key', + label: '关键字段', + component: 'Input', + colProps: { span: 6 }, + }, + { + field: 'is_intact', + component: 'Select', + label: '案件状态', + colProps: { + span: 6, + }, + componentProps: { + options: [ + { + label: '全部', + value: null, + key: null, + }, + { + label: '未判读', + value: '0', + key: '0', + },{ + label: '已提交', + value: '1', + key: '1', + },{ + label: '已关闭', + value: '99', + key: '99', + }, + ], + }, + }, + +]; + +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 }, + ], + }, + }, +]; diff --git a/src/views/demo/statistical/RecordList.vue b/src/views/demo/statistical/RecordList.vue new file mode 100644 index 0000000..d5edaff --- /dev/null +++ b/src/views/demo/statistical/RecordList.vue @@ -0,0 +1,174 @@ + + + + \ No newline at end of file diff --git a/src/views/demo/statistical/index.vue b/src/views/demo/statistical/index.vue new file mode 100644 index 0000000..8224cd3 --- /dev/null +++ b/src/views/demo/statistical/index.vue @@ -0,0 +1,249 @@ + + + diff --git a/src/views/demo/statistical/page.ts b/src/views/demo/statistical/page.ts new file mode 100644 index 0000000..64f58ff --- /dev/null +++ b/src/views/demo/statistical/page.ts @@ -0,0 +1,3 @@ + +export { default as RecordList} from './RecordList.vue' + diff --git a/src/views/demo/statistical/record.data.ts b/src/views/demo/statistical/record.data.ts new file mode 100644 index 0000000..4466af1 --- /dev/null +++ b/src/views/demo/statistical/record.data.ts @@ -0,0 +1,234 @@ +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: 'streetname', + width: 120, + },{ + title: '无人机发现数量', + dataIndex: 'allCount', + width: 120, + },{ + title: '外业图斑核查情况', + children:[ + { + title: '完成外业核查数量', + dataIndex: 'handleStatus', + width: 120, + },{ + title: '24h内未核查', + dataIndex: 'notDealHour24', + width: 120, + } + ] + },{ + title: '下发疑似图斑类型', + children:[ + { + title: '房屋翻新', + dataIndex: 'typeFanxinCount', + width: 120, + },{ + title: '房屋加盖', + dataIndex: 'typeJiagaiCount', + width: 120, + },{ + title: '房屋翻建', + dataIndex: 'typeFanjianCount', + width: 120, + },{ + title: '存量建设', + dataIndex: 'typeCunliangCount', + width: 120, + },{ + title: '推土', + dataIndex: 'typeTuituCount', + width: 120, + },{ + title: '其他', + dataIndex: 'typeOtherCount', + width: 120, + } + ] + },{ + title: '图斑判定', + children:[ + { + title: '合法', + dataIndex: 'illegal0Count', + width: 120, + },{ + title: '违法', + dataIndex: 'illegal1Count', + width: 120, + },{ + title: '伪变化', + dataIndex: 'illegal2Count', + width: 120, + } + ] + },{ + title: '新增违法图斑整改情况', + dataIndex: 'handle_status_name', + children:[ + { + title: '外业核实后确定违法数', + dataIndex: 'beginTime', + width: 120, + },{ + title: '违法面积', + dataIndex: 'illegalHandleAreaList', + width: 120, + },{ + title: '整改销号数', + dataIndex: 'beginTime', + width: 120, + },{ + title: '销号面积', + dataIndex: 'beginTime', + width: 120, + },{ + title: '尚未整改宗数', + dataIndex: 'beginTime', + width: 120, + },{ + title: '未整改面积', + dataIndex: 'beginTime', + width: 120, + } + ] + },{ + title: '违法图斑整改进度情况', + children:[ + { + title: '3日内未整改完成', + dataIndex: 'notComplete3', + },{ + title: '7日内未整改完成', + dataIndex: 'notComplete7', + },{ + title: '30日内未整改完成', + dataIndex: 'notComplete30', + },{ + title: '30日以上未整改完成', + dataIndex: 'notComplete30More', + } + ] + },{ + title: '百分制考核计分', + dataIndex: 'handle_status_name', + children:[ + { + title: '24h外业核查计分', + dataIndex: 'beginTime', + width: 120, + },{ + title: '整改进度计分', + dataIndex: 'beginTime', + width: 120, + } + ] + },{ + title: '备注', + dataIndex: 'createusername', + width: 200, + } +]; + +export const columns: BasicColumn[] = [ + { + title: '案件编号', + dataIndex: 'case_no', + width: 120, + } + ,{ + title: '村/社区', + dataIndex: 'communityname', + width: 120, + },{ + title: '案件描述', + dataIndex: 'case_description', + width: 120, + },{ + title: '所属类型', + dataIndex: 'typename', + width: 120, + },{ + title: '处理人', + dataIndex: 'deal_username', + width: 120, + },{ + title: '处理时间', + dataIndex: 'deal_time', + width: 120, + }, + { + title: '审核人', + dataIndex: 'verifyuser', + width: 120, + },{ + title: '审核时间', + dataIndex: 'verifytime', + width: 120, + },{ + title: '案件状态', + dataIndex: 'handle_status_name', + width: 120, + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'key', + label: '关键字段', + component: 'Input', + colProps: { span: 6 }, + }, + { + field: '[startDate, endDate]', + 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 }, + ], + }, + }, +]; diff --git a/src/views/demo/statistical/statistical.data.ts b/src/views/demo/statistical/statistical.data.ts new file mode 100644 index 0000000..f15a89d --- /dev/null +++ b/src/views/demo/statistical/statistical.data.ts @@ -0,0 +1,328 @@ +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: 'streetname', + width: 120, + },{ + title: '无人机发现数量', + dataIndex: 'allCount', + width: 120, + },{ + title: '外业图斑核查情况', + children:[ + { + title: '完成外业核查数量', + dataIndex: 'handleStatus', + width: 120, + },{ + title: '24h内未核查', + dataIndex: 'notDealHour24', + width: 120, + } + ] + },{ + title: '下发疑似图斑类型', + children:[ + { + title: '房屋翻新', + dataIndex: 'typeFanxinCount', + width: 120, + },{ + title: '房屋加盖', + dataIndex: 'typeJiagaiCount', + width: 120, + },{ + title: '房屋翻建', + dataIndex: 'typeFanjianCount', + width: 120, + },{ + title: '存量建设', + dataIndex: 'typeCunliangCount', + width: 120, + },{ + title: '推土', + dataIndex: 'typeTuituCount', + width: 120, + },{ + title: '其他', + dataIndex: 'typeOtherCount', + width: 120, + } + ] + },{ + title: '图斑判定', + children:[ + { + title: '合法', + dataIndex: 'illegal0Count', + width: 120, + },{ + title: '违法', + dataIndex: 'illegal1Count', + width: 120, + },{ + title: '伪变化', + dataIndex: 'illegal2Count', + width: 120, + } + ] + },{ + title: '新增违法图斑整改情况', + dataIndex: 'handle_status_name', + children:[ + { + title: '外业核实后确定违法数', + dataIndex: 'beginTime', + width: 120, + },{ + title: '违法面积', + dataIndex: 'illegalHandleAreaList', + width: 120, + },{ + title: '整改销号数', + dataIndex: 'beginTime', + width: 120, + },{ + title: '销号面积', + dataIndex: 'beginTime', + width: 120, + },{ + title: '尚未整改宗数', + dataIndex: 'beginTime', + width: 120, + },{ + title: '未整改面积', + dataIndex: 'beginTime', + width: 120, + } + ] + },{ + title: '违法图斑整改进度情况', + children:[ + { + title: '3日内未整改完成', + dataIndex: 'notComplete3', + },{ + title: '7日内未整改完成', + dataIndex: 'notComplete7', + },{ + title: '30日内未整改完成', + dataIndex: 'notComplete30', + },{ + title: '30日以上未整改完成', + dataIndex: 'notComplete30More', + } + ] + },{ + title: '百分制考核计分', + dataIndex: 'handle_status_name', + children:[ + { + title: '24h外业核查计分', + dataIndex: 'beginTime', + width: 120, + },{ + title: '整改进度计分', + dataIndex: 'beginTime', + width: 120, + } + ] + },{ + title: '备注', + dataIndex: 'createusername', + width: 200, + } +]; + +export const columns: BasicColumn[] = [ + { + title: '乡镇(街道)', + dataIndex: 'streetname', + width: 120, + },{ + title: '无人机发现数量', + dataIndex: 'allCount', + width: 120, + },{ + title: '外业图斑核查情况', + children:[ + { + title: '完成外业核查数量', + dataIndex: 'handleStatus', + width: 120, + },{ + title: '24h内未核查', + dataIndex: 'notDealHour24', + width: 120, + } + ] + },{ + title: '下发疑似图斑类型', + children:[ + { + title: '房屋翻新', + dataIndex: 'typeFanxinCount', + width: 120, + },{ + title: '房屋加盖', + dataIndex: 'typeJiagaiCount', + width: 120, + },{ + title: '房屋翻建', + dataIndex: 'typeFanjianCount', + width: 120, + },{ + title: '存量建设', + dataIndex: 'typeCunliangCount', + width: 120, + },{ + title: '推土', + dataIndex: 'typeTuituCount', + width: 120, + },{ + title: '其他', + dataIndex: 'typeOtherCount', + width: 120, + } + ] + },{ + title: '图斑判定', + children:[ + { + title: '合法', + dataIndex: 'illegal0Count', + width: 120, + },{ + title: '违法', + dataIndex: 'illegal1Count', + width: 120, + },{ + title: '伪变化', + dataIndex: 'illegal2Count', + width: 120, + } + ] + },{ + title: '新增违法图斑整改情况', + dataIndex: 'handle_status_name', + children:[ + { + title: '外业核实后确定违法数', + dataIndex: 'beginTime', + width: 120, + },{ + title: '违法面积', + dataIndex: 'illegalHandleAreaList', + width: 120, + },{ + title: '整改销号数', + dataIndex: 'beginTime', + width: 120, + },{ + title: '销号面积', + dataIndex: 'beginTime', + width: 120, + },{ + title: '尚未整改宗数', + dataIndex: 'beginTime', + width: 120, + },{ + title: '未整改面积', + dataIndex: 'beginTime', + width: 120, + } + ] + },{ + title: '违法图斑整改进度情况', + children:[ + { + title: '3日内未整改完成', + dataIndex: 'notComplete3', + },{ + title: '7日内未整改完成', + dataIndex: 'notComplete7', + },{ + title: '30日内未整改完成', + dataIndex: 'notComplete30', + },{ + title: '30日以上未整改完成', + dataIndex: 'notComplete30More', + } + ] + },{ + title: '百分制考核计分', + dataIndex: 'handle_status_name', + children:[ + { + title: '24h外业核查计分', + dataIndex: 'beginTime', + width: 120, + },{ + title: '整改进度计分', + dataIndex: 'beginTime', + width: 120, + } + ] + },{ + title: '备注', + dataIndex: 'createusername', + width: 200, + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'key', + label: '关键字段', + component: 'Input', + colProps: { span: 6 }, + }, + { + field: '[startDate, endDate]', + 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 }, + ], + }, + }, +];