| | |
| | | return $$.ax.request({ url: `caseTask/listCaseFlow`, type: 'get', service: 'mediate', data }); |
| | | } |
| | | |
| | | function accept(data) { |
| | | return $$.ax.request({ url: `caseTask/accept`, type: 'post', service: 'mediate', data }); |
| | | } |
| | | |
| | | export default function EventFlow(props) { |
| | | const myButton = [ |
| | | { |
| | | label: '受理', |
| | | type: 'primary', |
| | | click: () => { }, |
| | | click: () => { |
| | | Modal.confirm({ |
| | | title: '受理确认', |
| | | content: '确认受理该事件?', |
| | | onOk: async () => { |
| | | const res = await accept({ |
| | | caseTaskId: props.caseTaskId |
| | | }) |
| | | if(res.type) { |
| | | $$.infoSuccess({ content: '受理成功!' }); |
| | | } |
| | | }, |
| | | }); |
| | | }, |
| | | key: 'sl', |
| | | }, |
| | | { |