|
|
@ -3,7 +3,7 @@ import { connect } from 'react-redux'; |
|
|
|
import { ApiTable, EmisApiTable, EmisRequest } from '$utils' |
|
|
|
import { Skeleton, Button, Pagination, Form, Popconfirm, Table, Toast } from '@douyinfe/semi-ui'; |
|
|
|
import { IconSearch } from '@douyinfe/semi-icons'; |
|
|
|
import { SkeletonScreen, WorkflowModal } from "$components"; |
|
|
|
import { SkeletonScreen, WorkflowModal, WorkflowApprovalModal } from "$components"; |
|
|
|
import moment from "moment"; |
|
|
|
|
|
|
|
|
|
|
@ -28,8 +28,8 @@ const Rest = (props) => { |
|
|
|
const [tableData, setTableData] = useState([]); //获取项目状态列表 |
|
|
|
const [loading, setLoading] = useState(true); //获取项目状态列表 |
|
|
|
const [workflowModalVisible, setWorkflowModalVisible] = useState(false) |
|
|
|
const [processInstanceId, setProcessInstanceId] = useState(null) |
|
|
|
|
|
|
|
const [checkProcessInstanceId, setCheckProcessInstanceId] = useState(null) |
|
|
|
const [processData, setProcessData] = useState([]) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
@ -80,9 +80,8 @@ const Rest = (props) => { |
|
|
|
title: '操作', |
|
|
|
dataIndex: 'hadle', |
|
|
|
render: (text, record, index) => <div style={{ width: 60, color: "#1890ff", cursor: "pointer" }} onClick={() => { |
|
|
|
setProcessInstanceId(record.processInstanceId) |
|
|
|
setCheckProcessInstanceId(record.processInstanceId) |
|
|
|
setWorkflowModalVisible(true) |
|
|
|
|
|
|
|
}}>查看详情</div> |
|
|
|
}] |
|
|
|
|
|
|
@ -134,8 +133,6 @@ const Rest = (props) => { |
|
|
|
查询 |
|
|
|
</Button> |
|
|
|
</Form> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
@ -184,10 +181,10 @@ const Rest = (props) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<WorkflowModal |
|
|
|
<WorkflowApprovalModal |
|
|
|
visible={workflowModalVisible} |
|
|
|
title={''} |
|
|
|
processId={processInstanceId} |
|
|
|
processAuditList={tableData} |
|
|
|
checkProcessInstanceId={checkProcessInstanceId} |
|
|
|
onCancel={() => { setWorkflowModalVisible(false) }} |
|
|
|
successCallBack={() => { setWorkflowModalVisible(false) }} |
|
|
|
/> |
|
|
|