|
|
@ -35,6 +35,7 @@ function pushModal (props) { |
|
|
|
const [deviceProportion, setDeviceProportion] = useState(undefined); // |
|
|
|
const [subType, setSubType] = useState([]); //监听模块中的子类 |
|
|
|
const [factorShow, setFactorShow] = useState([]); //结构物对应监测项 |
|
|
|
const [firstPass, setFirstPass] = useState(true) |
|
|
|
|
|
|
|
|
|
|
|
//初始化 |
|
|
@ -89,10 +90,7 @@ function pushModal (props) { |
|
|
|
} |
|
|
|
}) |
|
|
|
setProjectStructure(data) |
|
|
|
|
|
|
|
if (!editObj.id) { |
|
|
|
form.current.setValue('strucId', ProjectId) |
|
|
|
} else { |
|
|
|
if (editObj.id && firstPass) { |
|
|
|
let FactorId = [] |
|
|
|
if (alter?.pomsStrucFactorId) { |
|
|
|
for (let key in alter?.pomsStrucFactorId) { |
|
|
@ -102,6 +100,9 @@ function pushModal (props) { |
|
|
|
} else { |
|
|
|
setFactorShow(ProjectId) |
|
|
|
} |
|
|
|
setFirstPass(false) |
|
|
|
} else { |
|
|
|
form.current.setValue('strucId', ProjectId) |
|
|
|
} |
|
|
|
form.current.validate(['strucId', 'timeType']) |
|
|
|
setStructure(false) |
|
|
@ -400,7 +401,6 @@ function pushModal (props) { |
|
|
|
异常率推送机制 |
|
|
|
</Form.Radio> |
|
|
|
</div> |
|
|
|
|
|
|
|
</Form.RadioGroup> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|