| | |
| | | import React, { useState, useRef, useEffect } from 'react'; |
| | | import { useParams } from 'react-router-dom'; |
| | | import { Col, Space, Row, Tooltip } from 'antd'; |
| | | import { register, aiPerson } from '@/assets/images'; |
| | | import { Form, Input, Tabs, Typography, Button, Modal, Select } from '@arco-design/web-react'; |
| | |
| | | } |
| | | |
| | | function delFile(id) { |
| | | return $$.ax.request({ url: `fileInfo/deleteFileById`, type: 'get', service: 'sys', data: { id } }); |
| | | return $$.ax.request({ url: `fileInfo/deleteFileById`, type: 'delete', service: 'sys', data: { id } }); |
| | | } |
| | | |
| | | function getNewTimeIdApi(id) { |
| | |
| | | |
| | | const Handle = () => { |
| | | const formRef = useRef(); |
| | | const routeData = useParams(); |
| | | const [selectedTab, setSelectedTab] = useState('1'); // 默认选中第一个 tab |
| | | const [selectedTab1, setSelectedTab1] = useState('1'); // 默认选中第一个 tab |
| | | const [wantUser, setWantUser] = useState({}); |
| | |
| | | const [isModalVisible, setIsModalVisible] = useState(false); |
| | | const [id, setId] = useState(''); |
| | | const [uniteHandleId, setUniteHandleId] = useState(''); |
| | | const [caseResultId, setCaseResultId] = useState(''); |
| | | |
| | | |
| | | |
| | | const tabs = [ |
| | |
| | | } |
| | | if (type === 'addMark') |
| | | setId(res.data) |
| | | if (type === 'caseResult') { |
| | | setCaseResultId(res.data) |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | const handlePersonView = () => { |
| | | setPersonView(!personView) |
| | | |
| | | } |
| | | |
| | | const handleCaseResultApply = () => { |
| | | SetCaseResult(!caseResult) |
| | | getNewTimeId('caseResult') |
| | | } |
| | | |
| | | |
| | |
| | | <Space style={{ marginTop: '38px', bottom: '4px' }}> |
| | | <Button type="primary" style={{ backgroundColor: '#1A6FB8' }} onClick={() => addMark()}>添加办理记录</Button> |
| | | <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} onClick={() => uniteHandle()}>联合处置申请</Button> |
| | | <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} onClick={() => SetCaseResult(!caseResult)}>结案申请</Button> |
| | | <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} onClick={() => handleCaseResultApply()} >结案申请</Button> |
| | | <Button type='outline' style={{ color: '#EF6C24', border: '1px solid #EF6C24' }} onClick={() => Supervising()}>督办</Button> |
| | | <Button type='secondary'>返回上级页面</Button> |
| | | </Space> |
| | |
| | | </Form> |
| | | </Modal> |
| | | <UniteHandle id={uniteHandleId} visible={uniteHandleView} handleOnCancel={() => setUniteHandleView(false)} /> |
| | | <CaseResult visible={caseResult} handleOnCancel={() => SetCaseResult(false)} /> |
| | | <CaseResult visible={caseResult} handleOnCancel={() => SetCaseResult(false)} caseResultId={caseResultId} caseId={routeData.caseId} /> |
| | | |
| | | </div> |
| | | </> |