Commit d4617766 authored by 皮倩雯's avatar 皮倩雯

fix: '地图方案权限配置关联站点优化'

parent 01c660bd
Pipeline #82569 passed with stages
This diff is collapsed.
......@@ -35,6 +35,7 @@ const VectorData = props => {
const [leafs, setLeafs] = useState([]);
const [addVisible, setAddVisible] = useState(false);
const [checkValue, setCheckValue] = useState([]);
const [gisType, setGisType] = useState('');
const columns = [
{
......@@ -65,7 +66,10 @@ const VectorData = props => {
render: record => (
<Space size="middle">
<UserAddOutlined
onClick={() => pickRole(record)}
onClick={() => {
pickRole(record);
setGisType('web');
}}
style={{ fontSize: '18px', color: '#1890FF' }}
/>
</Space>
......@@ -124,7 +128,10 @@ const VectorData = props => {
render: record => (
<Space size="middle">
<UserAddOutlined
onClick={() => pickRole(record)}
onClick={() => {
pickRole(record);
setGisType('phone');
}}
style={{ fontSize: '18px', color: '#1890FF' }}
/>
</Space>
......@@ -779,6 +786,8 @@ const VectorData = props => {
groupName="站点" // 打开组件展示的分组名,用来首次获取数据
chooseGroupName={['站点']} // 可选分组名
dataType="id"
mapSite={true}
gisType={gisType}
// isRadio={true} // 站点单选
/>
{/* <RoleModal
......
......@@ -349,3 +349,6 @@ export const SortSchemePost = param => post(`${PANDA_GIS}/MapLayer/SortSchemePos
export const GetUserName = param => get(`${PUBLISH_SERVICE}/UserCenter/GetUserName`, param);
export const ProductRepair = param => get(`${PUBLISH_SERVICE}/DBManager/ProductRepair`, param);
export const GetMapLayerStationList = param =>
get(`${PANDA_GIS}/MapLayer/GetMapLayerStationList`, param);
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