diff --git a/web/client/src/sections/workOrder/containers/stayDoWorkOrder.jsx b/web/client/src/sections/workOrder/containers/stayDoWorkOrder.jsx index c3249ad..ea72334 100644 --- a/web/client/src/sections/workOrder/containers/stayDoWorkOrder.jsx +++ b/web/client/src/sections/workOrder/containers/stayDoWorkOrder.jsx @@ -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, } from "$components"; +import { SkeletonScreen, WorkflowModal } from "$components"; import moment from "moment"; @@ -27,6 +27,10 @@ const Rest = (props) => { const [projectStatus, setProjectStatus] = useState([]); //获取项目状态列表 const [tableData, setTableData] = useState([]); //获取项目状态列表 const [loading, setLoading] = useState(true); //获取项目状态列表 + const [workflowModalVisible, setWorkflowModalVisible] = useState(false) + const [processInstanceId, setProcessInstanceId] = useState(null) + + useEffect(() => { backlogData() @@ -35,17 +39,13 @@ const Rest = (props) => { let backlogData = () => { setLoading(true) EmisRequest.get(EmisApiTable.processInstancemMyAuditList, - { userId: 1, offset: 0, limit: 10, businessType: '' }) + { userId: user?.id, businessType: '运维中台表单', }) .then(res => { console.log(111, res); setTableData(res) setLimits(res.length || 0) setLoading(false) - // sessionStorage.setItem('pomsUser', JSON.stringify(user)); - // return dispatch({ - // type: LOGIN_SUCCESS, - // payload: { user: user }, - // }); + }, error => { Toast.error({ content: '待办工单请求失败', duration: 1, }) setLoading(false) @@ -79,6 +79,11 @@ const Rest = (props) => { }, { title: '操作', dataIndex: 'hadle', + render: (text, record, index) =>