5.10 风险点接口屏蔽

This commit is contained in:
jl-zhoujl2
2022-05-10 09:25:31 +08:00
parent c929279c3c
commit fb531f8422

View File

@ -35,7 +35,7 @@ const BiddingRoom = (props) => {
const roomId = getRoomId(); const roomId = getRoomId();
const [list, setList] = useState(); const [list, setList] = useState();
const [selectedPath, setSelectedPath] = useState(window.location.pathname.replace('ReviewResults/Jury', 'ReviewResults').replace('ReviewResults/GroupLeader', 'ReviewResults')); const [selectedPath, setSelectedPath] = useState(window.location.pathname.replace('ReviewResults/Jury', 'ReviewResults').replace('ReviewResults/GroupLeader', 'ReviewResults'));
const [risky, riskySet] = useState(); // const [risky, riskySet] = useState();
//字段类型(两种) 评标,评审 //字段类型(两种) 评标,评审
let sectionTypeTwo = MethodDict == "procurement_mode_1" || MethodDict == "procurement_mode_2" ? "评标" : "评审" let sectionTypeTwo = MethodDict == "procurement_mode_1" || MethodDict == "procurement_mode_2" ? "评标" : "评审"
//字段类型(三种) 评标,评审,谈判 //字段类型(三种) 评标,评审,谈判
@ -156,19 +156,19 @@ const BiddingRoom = (props) => {
}, []) }, [])
//风险点展示获取是否有风险 //风险点展示获取是否有风险
async function isRisky() { // async function isRisky() {
await getRiskStatus({ assessRoomId: roomId, tpId: tpId }).then((res) => { // await getRiskStatus({ assessRoomId: roomId, tpId: tpId }).then((res) => {
if (res.code == 200) { // if (res.code == 200) {
if (res?.data) { // if (res?.data) {
riskySet( // riskySet(
<Tooltip title="当前存在风险项"> // <Tooltip title="当前存在风险项">
<ExclamationCircleOutlined style={{ color: 'rgb(250,173,20)', position: 'absolute', fontSize: 26, top: 12 }} /> // <ExclamationCircleOutlined style={{ color: 'rgb(250,173,20)', position: 'absolute', fontSize: 26, top: 12 }} />
</Tooltip> // </Tooltip>
) // )
} // }
} // }
}) // })
} // }
//评审结果页签点击事件 //评审结果页签点击事件
const onclick = async (path, id) => { const onclick = async (path, id) => {
@ -285,7 +285,7 @@ const BiddingRoom = (props) => {
//初始化数据 //初始化数据
const listRender = async () => { const listRender = async () => {
await isRisky(); // await isRisky();
//供应商是否用ipass解密判断 //供应商是否用ipass解密判断
IPassDecode == 0 ? null : supplierList.splice(2, 1) IPassDecode == 0 ? null : supplierList.splice(2, 1)
//供应商是否显示评审进展判断(招标类不显示) //供应商是否显示评审进展判断(招标类不显示)