|
|
@ -713,6 +713,7 @@ const PatrolTable = (props) => { |
|
|
|
const isPatrol = !isRoad && !isAnomaly |
|
|
|
const reportType = isRoad ? 'road' : isAnomaly ? 'anomaly' : 'patrol'; |
|
|
|
const [isModalOpen, setIsModalOpen] = useState(false); |
|
|
|
const [phoneList, setPhoneList] = useState([]); |
|
|
|
const [form] = Form.useForm(); |
|
|
|
useEffect(() => { |
|
|
|
queryData(); |
|
|
@ -823,6 +824,7 @@ const PatrolTable = (props) => { |
|
|
|
}) |
|
|
|
} |
|
|
|
console.log(phoneList, '789789789789'); |
|
|
|
setPhoneList(phoneList) |
|
|
|
|
|
|
|
}, [anspectionNotificationPhoneList]) |
|
|
|
const showModal = () => { |
|
|
@ -926,15 +928,7 @@ const PatrolTable = (props) => { |
|
|
|
<Form form={form} name="dynamic_form_item" {...formItemLayoutWithOutLabel} > |
|
|
|
<Form.List |
|
|
|
name="phone" |
|
|
|
// rules={[
|
|
|
|
// {
|
|
|
|
// validator: async (_, names) => {
|
|
|
|
// if (!names || names.length < 1) {
|
|
|
|
// return Promise.reject(new Error('At least 2 passengers'));
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// ]}
|
|
|
|
initialValue={phoneList} |
|
|
|
> |
|
|
|
{(fields, { add, remove }, { errors }) => ( |
|
|
|
<> |
|
|
|