Commit b7e9fa93 authored by mayongxin's avatar mayongxin

范围优化

parent 32ec6209
Pipeline #26958 passed with stages
in 37 minutes 26 seconds
...@@ -139,7 +139,7 @@ const CardData = props => { ...@@ -139,7 +139,7 @@ const CardData = props => {
</Popconfirm> </a>} style={{ width: 300 }}> </Popconfirm> </a>} style={{ width: 300 }}>
<p><span className={styles.schemeName}>矢量</span> {props.item.servicename}</p> <p><span className={styles.schemeName}>矢量</span> {props.item.servicename}</p>
<div> <div>
<span className={styles.schemeName}>矢量</span> <span className={styles.schemeName}>范围</span>
<Button style={{ width: '12rem', marginBottom: '0.5rem' }} onClick={() => setMapScopeVisible(true)}>选择范围</Button> <Button style={{ width: '12rem', marginBottom: '0.5rem' }} onClick={() => setMapScopeVisible(true)}>选择范围</Button>
</div> </div>
<div className={styles.schemeItem}><span className={styles.schemeName}>瓦片</span> <div className={styles.schemeItem}><span className={styles.schemeName}>瓦片</span>
......
...@@ -45,7 +45,8 @@ import { ...@@ -45,7 +45,8 @@ import {
setUserState as postSetUserState, setUserState as postSetUserState,
multiDeleteUsers, multiDeleteUsers,
setOrgArea, setOrgArea,
getOrgArea getOrgArea,
GetMapSetByGroupID
} from '@/services/userCenter/userManage/api'; } from '@/services/userCenter/userManage/api';
import Tree from '@/components/ExpendableTree'; import Tree from '@/components/ExpendableTree';
import classnames from 'classnames'; import classnames from 'classnames';
...@@ -372,13 +373,23 @@ const UserManage = () => { ...@@ -372,13 +373,23 @@ const UserManage = () => {
} else { } else {
setCurrentSelectOrg(props[0]); setCurrentSelectOrg(props[0]);
} }
orgAreas.map((item)=>{ // orgAreas.map((item)=>{
if(item.OUID == props[0]){ // if(item.OUID == props[0]){
setCurrentOrgArea(item.Extent) // setCurrentOrgArea(item.Extent)
setCurrentOrgDistinct(item.AreaName) // setCurrentOrgDistinct(item.AreaName)
// }
// })
GetMapSetByGroupID({
groupID:props[0]
}).then(
res=>{
if(res.code == 0){
setCurrentOrgArea(res.data.MapRange)
setCurrentOrgDistinct(res.data.AreeName)
} }
}) }
)
setOrgID(props[0] || currentSelectOrg); setOrgID(props[0] || currentSelectOrg);
// 树节点变化(即props不为空)时才请求,避免重复请求 // 树节点变化(即props不为空)时才请求,避免重复请求
if (props[0]) { if (props[0]) {
......
...@@ -174,3 +174,5 @@ export const setOrgArea = params => ...@@ -174,3 +174,5 @@ export const setOrgArea = params =>
get(`${CITY_SERVICE}/OMS.svc/SetOrgUserArea`, params) get(`${CITY_SERVICE}/OMS.svc/SetOrgUserArea`, params)
export const getOrgArea = params => export const getOrgArea = params =>
get(`${CITY_SERVICE}/OMS.svc/GetOrgUserArea`, params) get(`${CITY_SERVICE}/OMS.svc/GetOrgUserArea`, params)
export const GetMapSetByGroupID = params =>
get(`${PUBLISH_SERVICE}/GetMapSetByGroupID`, params)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment