forked from gzzfw/frontEnd/gzDyh

zhangyongtian
2024-09-08 2d21b21363b1ba0455c37ae2ccd69fadb772450d
feat: 受理
1 files modified
19 ■■■■■ changed files
gz-customerSystem/src/views/register/eventFlow/component/EventFlow.jsx 19 ●●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/eventFlow/component/EventFlow.jsx
@@ -18,12 +18,29 @@
    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',
    },
    {