| | |
| | | export default { |
| | | dev: { |
| | | SERVER_URL: 'http://192.168.110.188:6194', |
| | | SERVER_URL: 'http://192.168.110.106:6194', |
| | | // SERVER_URL: 'https://huacheng.psciio.com', |
| | | }, |
| | | test: { |
| | |
| | | import { getList } from './service'; |
| | | |
| | | const Account = () => { |
| | | const actionRef = useRef(); |
| | | const access = useAccess(); |
| | | const formRef = useRef(); |
| | | |
| | | const columns = [ |
| | | { |
| | | title: '述求号', |
| | | dataIndex: 'reportUserName', |
| | | dataIndex: 'serialNumber', |
| | | order: 8, |
| | | }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | title: '申请人', |
| | | dataIndex: 'name', |
| | | dataIndex: 'applyUserName', |
| | | order: 5, |
| | | }, |
| | | { |
| | | title: '申请时间', |
| | | dataIndex: 'name', |
| | | dataIndex: 'applyTime', |
| | | hideInTable: true, |
| | | valueType: 'dateRange', |
| | | order: 3, |
| | | }, |
| | | { |
| | | title: '审批时间', |
| | | dataIndex: 'name', |
| | | dataIndex: 'examineTime', |
| | | valueType: 'dateRange', |
| | | order: 2, |
| | | }, |
| | | { |
| | | title: '审批人', |
| | | dataIndex: 'name', |
| | | dataIndex: 'examineUserName', |
| | | order: 4, |
| | | }, |
| | | { |
| | | title: '驳回理由', |
| | | dataIndex: 'contactNumber', |
| | | dataIndex: 'remark', |
| | | hideInSearch: true, |
| | | }, |
| | | { |
| | |
| | | 1: '延期办理', |
| | | 2: '超时办理', |
| | | 3: '已办结', |
| | | 4: '上报待审核', |
| | | 4: '群众撤销', |
| | | 5: '上报待审核', |
| | | 6: '上级驳回', |
| | | 7: '延期待审核', |
| | | 8: '已评价', |
| | | 9: '延期驳回', |
| | | }, |
| | | render: (text, record) => { |
| | | return Number(record.status) == 0 ? '正在办理' : record.status == 1 ? '延期办理' : record.status == 2 ? '超时办理' : record.status == 3 ? '已办结' : record.status == 4 ? '上报待审核' : '已办结'; |
| | | } |
| | | }, |
| | | { |
| | | title: '操作', |
| | |
| | | > |
| | | <ProTable |
| | | rowKey="id" |
| | | actionRef={actionRef} |
| | | columns={columns} |
| | | formRef={formRef} |
| | | request={async (params) => { |
| | | |
| | | if (params.time && params.time.length > 0) { |
| | | params.startTime = moment(params.time[0]).format('YYYY-MM-DD HH:mm:ss'); |
| | | params.endTime = moment(params.time[1]).format('YYYY-MM-DD 23:59:59'); |
| | | delete params.time |
| | | } else { |
| | | delete params.startTime |
| | | delete params.endTime |
| | | if (params.applyTime && params.applyTime.length > 0) { |
| | | params.applyTime = moment(params.applyTime[0]).format('YYYY-MM-DD') + |
| | | ' - ' + moment(params.applyTime[1]).format('YYYY-MM-DD') |
| | | } |
| | | |
| | | if (params.examineTime && params.examineTime.length > 0) { |
| | | params.examineTime = moment(params.examineTime[0]).format('YYYY-MM-DD') + |
| | | ' - ' + moment(params.examineTime[1]).format('YYYY-MM-DD') |
| | | } |
| | | |
| | | return buildProTableDataSource(getList, params); |
| | | }} |
| | |
| | | import { request } from '@umijs/max'; |
| | | |
| | | // 获取诉求列表 |
| | | export const getList = async (data) => { |
| | | return request(`/api/huacheng-sangeshenbian/complaint/page`, { |
| | | method: 'POST', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | // 获取述求详情 |
| | | export const getDetail = async (data) => { |
| | | return request(`/api/huacheng-sangeshenbian/complaint/detail/${data.id}`, { |
| | | export const getList = async (params) => { |
| | | return request(`/api/huacheng-sangeshenbian/complaint-reject/list`, { |
| | | method: 'GET', |
| | | data |
| | | params |
| | | }); |
| | | } |
| | |
| | | const columns = [ |
| | | { |
| | | title: '操作时间', |
| | | dataIndex: 'name', |
| | | dataIndex: 'createTime', |
| | | hideInTable: true, |
| | | valueType: 'dateRange', |
| | | order: 1, |
| | | }, |
| | | { |
| | | title: '操作用户', |
| | | dataIndex: 'reportUserName', |
| | | dataIndex: 'operatorName', |
| | | order: 5, |
| | | }, |
| | | { |
| | | title: '联系电话', |
| | | dataIndex: 'reportUserName', |
| | | dataIndex: 'operatorPhone', |
| | | order: 4, |
| | | }, |
| | | { |
| | | title: '操作类型', |
| | | dataIndex: 'reportUserPhone', |
| | | dataIndex: 'operatorCategory', |
| | | order: 3, |
| | | valueEnum: { |
| | | 1: '登录', |
| | |
| | | }, |
| | | { |
| | | title: '对象名称', |
| | | dataIndex: 'name', |
| | | dataIndex: 'targetName', |
| | | hideInSearch: true, |
| | | }, |
| | | { |
| | | title: '所在IP', |
| | | dataIndex: 'name', |
| | | dataIndex: 'ip', |
| | | order: 2, |
| | | }, |
| | | ]; |
| | | return ( |
| | | <div> |
| | | <PageContainer header={{ |
| | | breadcrumb: {}, |
| | | }} |
| | | title={'日志记录'} |
| | | > |
| | | <ProTable |
| | | rowKey="id" |
| | | actionRef={actionRef} |
| | | columns={columns} |
| | | formRef={formRef} |
| | | request={async (params) => { |
| | | if (params.time && params.time.length > 0) { |
| | | params.startTime = moment(params.time[0]).format('YYYY-MM-DD HH:mm:ss'); |
| | | params.endTime = moment(params.time[1]).format('YYYY-MM-DD 23:59:59'); |
| | | delete params.time |
| | | } else { |
| | | delete params.startTime |
| | | delete params.endTime |
| | | } |
| | | |
| | | |
| | | return buildProTableDataSource(getList, params); |
| | | }} |
| | | search={{ labelWidth: 'auto', defaultCollapsed: false }} |
| | | /> |
| | | </PageContainer> |
| | | </div> |
| | | <PageContainer header={{ |
| | | breadcrumb: {}, |
| | | }} |
| | | title={'日志记录'} |
| | | > |
| | | <ProTable |
| | | rowKey="id" |
| | | actionRef={actionRef} |
| | | columns={columns} |
| | | formRef={formRef} |
| | | request={async (params) => { |
| | | if (params.time && params.time.length > 0) { |
| | | params.startTime = moment(params.time[0]).format('YYYY-MM-DD HH:mm:ss'); |
| | | params.endTime = moment(params.time[1]).format('YYYY-MM-DD 23:59:59'); |
| | | delete params.time |
| | | } else { |
| | | delete params.startTime |
| | | delete params.endTime |
| | | } |
| | | return buildProTableDataSource(getList, params); |
| | | }} |
| | | search={{ labelWidth: 'auto', defaultCollapsed: false }} |
| | | /> |
| | | </PageContainer> |
| | | ); |
| | | }; |
| | | |
| | | export default Account; |
| | | export default Account; |
| | |
| | | import { request } from '@umijs/max'; |
| | | |
| | | // 获取诉求列表 |
| | | export const getList = async (data) => { |
| | | return request(`/api/huacheng-sangeshenbian/complaint/page`, { |
| | | method: 'POST', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | // 获取述求详情 |
| | | export const getDetail = async (data) => { |
| | | return request(`/api/huacheng-sangeshenbian/complaint/detail/${data.id}`, { |
| | | export const getList = async (params) => { |
| | | return request(`/api/huacheng-sangeshenbian/system-log/list`, { |
| | | method: 'GET', |
| | | data |
| | | params |
| | | }); |
| | | } |