Commit 94b94eb5 authored by 张志伟's avatar 张志伟

perf:管网配置界面图层的显隐和文件内容保持一致

parent baea56c4
Pipeline #95224 waiting for manual action with stages
...@@ -332,6 +332,7 @@ ...@@ -332,6 +332,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 5px; gap: 5px;
cursor: pointer;
.layerTitle_icon{ .layerTitle_icon{
width: 3px; width: 3px;
border-radius: 2px; border-radius: 2px;
......
...@@ -61,7 +61,9 @@ const MeteDataModal = props => { ...@@ -61,7 +61,9 @@ const MeteDataModal = props => {
title:i.layerName, title:i.layerName,
key, key,
} }
allKeys.push(key) if(i.defaultVisibility && i.parentLayerId != -1){
allKeys.push(key)
}
roots.push(params) roots.push(params)
} }
}) })
...@@ -128,7 +130,7 @@ const MeteDataModal = props => { ...@@ -128,7 +130,7 @@ const MeteDataModal = props => {
const onSelect = e => { const onSelect = e => {
setLoading(true); setLoading(true);
if (e.layerID != null) { if (e?.layerID != null) {
GetLayerMetaDataPreview({ GetLayerMetaDataPreview({
serviceName: metaData.GISServerProjectName, serviceName: metaData.GISServerProjectName,
layerID: e.layerID, layerID: e.layerID,
...@@ -158,6 +160,7 @@ const MeteDataModal = props => { ...@@ -158,6 +160,7 @@ const MeteDataModal = props => {
}); });
EditLayerMetaDataInfo(metaData.GISServerProjectName,items).then(res=>{ EditLayerMetaDataInfo(metaData.GISServerProjectName,items).then(res=>{
if(res.code ==0){ if(res.code ==0){
onCancel()
return message.success(res.data) return message.success(res.data)
}else{ }else{
return message.info(res?.data || '元数据信息修改失败!') return message.info(res?.data || '元数据信息修改失败!')
......
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