| @@ -8,6 +8,6 @@ | |||
| </head> | |||
| <body> | |||
| <div id="root"></div> | |||
| <script src="/umi.70c8d99a.js"></script> | |||
| <script src="/umi.4b70ae83.js"></script> | |||
| </body> | |||
| </html> | |||
| @@ -10,9 +10,9 @@ const MapComponent: React.FC<MapModelProps> = ({ getLoc, lat, lng }) => { | |||
| let isCurrent = true | |||
| useEffect(() => { | |||
| setSrc('https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=' + 'MPBBZ-HUICZ-EGRXB-7AHZI-R4GQZ-QWBSO' + '&referer=' + 'myapp'); | |||
| setSrc('https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=' + '123' + '&referer=' + 'myapp'); | |||
| if (lat && lng) { | |||
| setSrc('https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=' + 'MPBBZ-HUICZ-EGRXB-7AHZI-R4GQZ-QWBSO' + '&referer=' + 'myapp' + `&coord=${lat},${lng}`); | |||
| setSrc('https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=' + '123' + '&referer=' + 'myapp' + `&coord=${lat},${lng}`); | |||
| } | |||
| const handleMessage = (event: any) => { | |||
| @@ -98,7 +98,7 @@ const PagesMainActivityListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| <Row gutter={[16, 16]}> | |||
| <Col span={24}> | |||
| <Row gutter={[16, 16]}> | |||
| <Col span={24}> | |||
| {/* <Col span={24}> | |||
| <Switch checked={mapSwitch} checkedChildren='地图已显示' unCheckedChildren="地图已关闭" onChange={(val) => { | |||
| setMapSwitch(val) | |||
| }} /> | |||
| @@ -124,7 +124,7 @@ const PagesMainActivityListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| required: true, message: '请选择打开地图并选择纬度', | |||
| }]} | |||
| /> | |||
| </Col> | |||
| </Col> */} | |||
| <Col span={8}> | |||
| <ProFormText | |||
| label="门店地址" | |||
| @@ -133,7 +133,7 @@ const PagesMainActivityListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| rules={[{ required: true, message: '请在地图上选择或输入门店地址' }]} | |||
| /> | |||
| </Col> | |||
| {/* | |||
| { | |||
| mapSwitch && <Col span={24}> | |||
| <MapComponent lat={lat} lng={lng} getLoc={(values) => { | |||
| @@ -147,7 +147,7 @@ const PagesMainActivityListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| setMapSwitch(false) | |||
| }}></MapComponent> | |||
| </Col> | |||
| } | |||
| } */} | |||
| </Row> | |||
| </Col> | |||
| <Col span={24}> | |||
| @@ -342,7 +342,7 @@ const PagesMainCompanyListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| }} | |||
| > | |||
| <Row gutter={[16, 16]}> | |||
| <Col span={24}> | |||
| {/* <Col span={24}> | |||
| <Switch checked={mapSwitch} checkedChildren='地图已显示' unCheckedChildren="地图已关闭" onChange={(val) => { | |||
| setMapSwitch(val) | |||
| }} /> | |||
| @@ -368,7 +368,7 @@ const PagesMainCompanyListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| required: true, message: '请选择打开地图并选择纬度', | |||
| }]} | |||
| /> | |||
| </Col> | |||
| </Col> */} | |||
| <Col span={8}> | |||
| <ProFormText | |||
| label="详细地址" | |||
| @@ -378,7 +378,7 @@ const PagesMainCompanyListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| /> | |||
| </Col> | |||
| { | |||
| {/* { | |||
| mapSwitch && <Col span={24}> | |||
| <MapComponent lat={lat} lng={lng} getLoc={(values) => { | |||
| formRef.current.setFieldsValue({ | |||
| @@ -391,7 +391,7 @@ const PagesMainCompanyListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| setMapSwitch(false) | |||
| }}></MapComponent> | |||
| </Col> | |||
| } | |||
| } */} | |||
| </Row> | |||
| </ProCard> | |||
| </StepsForm.StepForm> | |||
| @@ -560,7 +560,7 @@ const PagesMainCompanyListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| }} | |||
| > | |||
| <Row gutter={[16, 16]}> | |||
| <Col span={24}> | |||
| {/* <Col span={24}> | |||
| <Switch checked={mapSwitch} checkedChildren='地图已显示' unCheckedChildren="地图已关闭" onChange={(val) => { | |||
| setMapSwitch(val) | |||
| }} /> | |||
| @@ -586,7 +586,7 @@ const PagesMainCompanyListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| required: true, message: '请选择打开地图并选择纬度', | |||
| }]} | |||
| /> | |||
| </Col> | |||
| </Col> */} | |||
| <Col span={6}> | |||
| <ProFormText | |||
| label="面试地址" | |||
| @@ -601,7 +601,7 @@ const PagesMainCompanyListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| placeholder="请输入其他地址" | |||
| /> | |||
| </Col> | |||
| { | |||
| {/* { | |||
| mapSwitch && <Col span={24}> | |||
| <MapComponent lat={lat} lng={lng} getLoc={(values) => { | |||
| formRef.current.setFieldsValue({ | |||
| @@ -614,7 +614,7 @@ const PagesMainCompanyListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| setMapSwitch(false) | |||
| }}></MapComponent> | |||
| </Col> | |||
| } | |||
| } */} | |||
| </Row> | |||
| </ProCard> | |||
| </StepsForm.StepForm> | |||
| @@ -130,11 +130,11 @@ const PagesMainCompanyDepartmentCreate: React.FC = ({ dispatch, dictModel, openM | |||
| rules={[{ required: true, message: '请选择有效的时间范围' }]} | |||
| /> | |||
| <Row gutter={[16, 16]}> | |||
| <Col span={24}> | |||
| {/* <Col span={24}> | |||
| <Switch checked={mapSwitch} checkedChildren='地图已显示' unCheckedChildren="地图已关闭" onChange={(val) => { | |||
| setMapSwitch(val) | |||
| }} /> | |||
| </Col> | |||
| </Col> */} | |||
| <Col span={24}> | |||
| <ProFormText | |||
| label="详细地址" | |||
| @@ -143,7 +143,7 @@ const PagesMainCompanyDepartmentCreate: React.FC = ({ dispatch, dictModel, openM | |||
| rules={[{ required: true, message: '请输入详细地址' }]} | |||
| /> | |||
| </Col> | |||
| { | |||
| {/* { | |||
| mapSwitch && <Col span={24}> | |||
| <MapComponent lat={0} lng={0} getLoc={(values) => { | |||
| formRef.current.setFieldsValue({ | |||
| @@ -152,7 +152,7 @@ const PagesMainCompanyDepartmentCreate: React.FC = ({ dispatch, dictModel, openM | |||
| setMapSwitch(false) | |||
| }}></MapComponent> | |||
| </Col> | |||
| } | |||
| } */} | |||
| </Row> | |||
| </ProForm> | |||
| </Modal> | |||
| @@ -139,11 +139,11 @@ const PagesMainFairListCreate: React.FC = ({ dispatch, dictModel, openModel, id | |||
| rules={[{ required: true, message: '请选择有效的时间范围' }]} | |||
| /> | |||
| <Row gutter={[16, 16]}> | |||
| <Col span={24}> | |||
| {/* <Col span={24}> | |||
| <Switch checked={mapSwitch} checkedChildren='地图已显示' unCheckedChildren="地图已关闭" onChange={(val) => { | |||
| setMapSwitch(val) | |||
| }} /> | |||
| </Col> | |||
| </Col> */} | |||
| <Col span={24}> | |||
| <ProFormText | |||
| label="详细地址" | |||
| @@ -152,7 +152,7 @@ const PagesMainFairListCreate: React.FC = ({ dispatch, dictModel, openModel, id | |||
| rules={[{ required: true, message: '请输入详细地址' }]} | |||
| /> | |||
| </Col> | |||
| { | |||
| {/* { | |||
| mapSwitch && <Col span={24}> | |||
| <MapComponent lat={0} lng={0} getLoc={(values) => { | |||
| formRef.current.setFieldsValue({ | |||
| @@ -161,7 +161,7 @@ const PagesMainFairListCreate: React.FC = ({ dispatch, dictModel, openModel, id | |||
| setMapSwitch(false) | |||
| }}></MapComponent> | |||
| </Col> | |||
| } | |||
| } */} | |||
| </Row> | |||
| </ProForm> | |||
| </Modal> | |||