Commit fca99143 authored by 涂伟's avatar 涂伟

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

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