Commit fca99143 authored by 涂伟's avatar 涂伟

fix: '网管高级配置GIS回填显示逻辑优化'

parent 8b2fc1c7
...@@ -62,7 +62,7 @@ const ConfigAccount = (props, ref) => { ...@@ -62,7 +62,7 @@ const ConfigAccount = (props, ref) => {
}); });
}); });
res.data.AreaTaskFormData.map(i => { res.data.AreaTaskFormData.map(i => {
i.type = '区域任务'; i.type = '工单任务';
i.TableFields.map(j => { i.TableFields.map(j => {
j.table = i.TableName; j.table = i.TableName;
j.type = 'areaTaskFormMapping'; j.type = 'areaTaskFormMapping';
......
...@@ -48,9 +48,9 @@ const NodeModal = props => { ...@@ -48,9 +48,9 @@ const NodeModal = props => {
let needConfigField = useRef(false); //首节点验证是否配置了处理站点 let needConfigField = useRef(false); //首节点验证是否配置了处理站点
useEffect(() => { useEffect(() => {
setActiveConfig('常用配置'); setActiveConfig('常用配置');
if(editMsg.NodeType == 1){ if (editMsg.NodeType == 1) {
getVaildField(); getVaildField();
}else{ } else {
needConfigField.current = false; needConfigField.current = false;
} }
}, [editMsg]); }, [editMsg]);
...@@ -70,13 +70,13 @@ const NodeModal = props => { ...@@ -70,13 +70,13 @@ const NodeModal = props => {
const onOk = () => { const onOk = () => {
//首节点检查有无配置处【处理站点】 //首节点检查有无配置处【处理站点】
if(needConfigField.current && !editMsg.Fields?.split(',')?.includes('处理站点')){ if (needConfigField.current && !editMsg.Fields?.split(',')?.includes('处理站点')) {
confirm({ confirm({
title: '提示', title: '提示',
content: <>首节点未配置<span style={{ color: 'red' }}>处理站点</span>,确定继续吗?</>, content: <>首节点未配置<span style={{ color: 'red' }}>处理站点</span>,确定继续吗?</>,
onOk: onFinish onOk: onFinish
}) })
}else{ } else {
onFinish(); onFinish();
} }
} }
...@@ -227,7 +227,8 @@ const NodeModal = props => { ...@@ -227,7 +227,8 @@ const NodeModal = props => {
{/* GIS配置 */} {/* GIS配置 */}
<div <div
style={{ style={{
display: editMsg.NodeType === '2' ? 'block' : 'none', // display: editMsg.NodeType === '2' ? 'block' : 'none',
display: editMsg.NodeType * 1 < 20 ? 'block' : 'none',
}} }}
> >
<ConfigGIS <ConfigGIS
......
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