forked from gzzfw/frontEnd/gzDyh

liuwh
2024-09-17 5aa4a814ab8d4aa194a9683ebefaefdfc6d92c3a
gz-customerSystem/src/views/register/eventFlow/component/BackModel.jsx
@@ -4,6 +4,7 @@
import ArcoUpload from '@/components/ArcoUpload';
import { Scrollbars } from "react-custom-scrollbars";
import * as $$ from '@/utils/utility';
import { useNavigate } from 'react-router-dom';
const RadioGroup = Radio.Group;
const FormItem = Form.Item;
@@ -15,7 +16,7 @@
}
function delFile(id) {
  return $$.ax.request({ url: `fileInfo/deleteFileById`, type: 'delete', service: 'sys', data: { id } });
  return $$.ax.request({ url: `fileInfo/deleteFileById`, type: 'get', service: 'sys', data: { id } });
}
function returnApply(data) {
@@ -23,6 +24,7 @@
}
export default function BackModel(props) {
  const navigate = useNavigate();
  const formRef = useRef();
  const [id, setId] = useState();
  const options = [
@@ -67,6 +69,7 @@
          handleReturn({
            id,
            caseId: props.caseId,
            caseTaskId: props.caseTaskId,
            returnContent: values.returnContent
          })
        }
@@ -88,6 +91,7 @@
    if (res.type) {
      $$.infoSuccess({ content: '提交申请成功!' });
      props.onCancel()
      navigate('/mediate/visit/visitWorkBench')
    }
  }
@@ -134,7 +138,7 @@
            <Col span={24} className="doubleFile">
              <ArcoUpload
                params={{
                  action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.caseId}&ownerId=${id}&ownerType=22_00018-520`,
                  action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.caseId}&ownerId=${id}&ownerType=22_00018-510`,
                }}
                field='file'
                label='附件材料'