diff --git a/web/client/src/sections/projectRegime/components/projectAddModel.js b/web/client/src/sections/projectRegime/components/projectAddModel.js index bf71144..adb7527 100644 --- a/web/client/src/sections/projectRegime/components/projectAddModel.js +++ b/web/client/src/sections/projectRegime/components/projectAddModel.js @@ -9,6 +9,7 @@ import moment from 'moment'; const ProjectAddModel = ({ dispatch, actions, user, modelData, close, success, firmList }) => { const { projectRegime } = actions + const [showBaiduMap, setShowBaiduMap] = useState(true) const [form] = Form.useForm(); useEffect(() => { @@ -70,12 +71,11 @@ const ProjectAddModel = ({ dispatch, actions, user, modelData, close, success, f { value: '管廊', label: '管廊' }]} />
- { const sjh = /^\d+$|^\d*\.\d+$/g; - if (value) { + if (value) { let valid = sjh.test(value); if (!valid) { return callback([new Error("横坐标填写错误")]); @@ -93,7 +93,7 @@ const ProjectAddModel = ({ dispatch, actions, user, modelData, close, success, f rules={[{ required: true, message: '', }, { validator: (rule, value, callback) => { const sjh = /^\d+$|^\d*\.\d+$/g; - if (value) { + if (value) { let valid = sjh.test(value); if (!valid) { return callback([new Error("纵坐标填写错误")]); @@ -107,6 +107,21 @@ const ProjectAddModel = ({ dispatch, actions, user, modelData, close, success, f
+ {/* + + + +
+
*/}