forked from gzzfw/frontEnd/gzDyh

zhangyongtian
2024-09-12 8e9f556423b0e3a19ce70df2bca8c351035368b0
gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx
@@ -6,6 +6,8 @@
import SelectObjModal from '@/components/SelectObjModal/selectPerson';
import { useParams } from 'react-router-dom';
import * as $$ from '@/utils/utility';
import { useNavigate } from 'react-router-dom';
const FormItem = Form.Item;
const TextArea = Input.TextArea;
@@ -21,6 +23,7 @@
export default function BackModel(props) {
  const routeData = useParams();
  const navigate = useNavigate();
  const formRef = useRef();
  const [isModalVisible, setIsModalVisible] = useState(false);
  const [wantUser, setWantUser] = useState({});
@@ -52,7 +55,7 @@
  const handleTemplate = (type) => {
    if (type === 1) {
      formRef.current.setFieldValue('assignContent', '本事项经初步核实,认为属于贵部门职责范围内的矛盾纠纷化解工作。请组织专门人员负责此事,尽快查明事实真相,依法依规进行处理,并在处理过程中充分考虑当事人的合理诉求,确保公平公正,维护当事人的合法权益。同时,请务必保持与当事人的沟通畅通,及时反馈办理进展,以增强矛盾纠纷化解工作的透明度和公信力。')
      formRef.current.setFieldValue('assignContent', '本事项经初步核实,认为属于贵部门职责范围内的矛盾纠纷化解工作。请指定专人负责跟进此事,尽快核清事实,依法依规进行处理,并在处理过程中充分考虑当事人的合理诉求,确保公平公正,维护当事人的合法权益。同时,请务必做好与当事人的沟通解释,及时反馈办理进展,以增强矛盾纠纷化解工作的透明度和公信力')
    } else {
      formRef.current.setFieldValue('assignContent', '')
    }
@@ -63,7 +66,8 @@
    const res = await assign({ ...data, caseTaskId: props.caseTaskId })
    if (res.type) {
      $$.infoSuccess({ content: '交办成功!' });
      props.onCancel()
      props.onCancel();
      navigate('/mediate/visit/visitWorkBench')
    }
  }