Browse Source

点位修改

master
wenlele 2 years ago
parent
commit
b4bc9d021e
  1. 23
      web/client/src/sections/projectRegime/components/projectAddModel.js

23
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: '管廊' }]} />
</Form.Item>
<div style={{}}>
<Form.Item label="所在地区:" labelCol={{ span: 11 }} labelAlign='right' name="longitude" initialValue={modelData?.longitude} style={{ display: 'inline-block', width: 'calc(60% - 30px)', }}
rules={[{ required: true, message: '',},{
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("横坐标填写错误")]);
@ -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
<Input placeholder="维度支持数字" />
</Form.Item>
</div>
{/* <Form.Item
label={"地址"}
name='des'
style={showBaiduMap ? { display: 'block' } : { display: 'none' }}
>
<Input id={"suggestId"} placeholder="输入地址,定位结构物位置" />
</Form.Item>
<Form.Item
label="地图"
name='dvdsv'
style={showBaiduMap ? { display: 'block' } : { display: 'none' }}
>
<div id={"map"} style={{ width: '100%', height: '425px', marginBottom: '15px' }}></div>
</Form.Item> */}
<Form.Item name='describe' label="描述">
<TextArea />
</Form.Item>

Loading…
Cancel
Save