import React, { useEffect, useState } from 'react'; import { Tabs } from 'antd'; import First from './components/first'; import Detailed from './components/detailed'; import { getURLInformation } from '@/utils/CommonUtils' import { getBizInfo } from './service' const Config: React.FC<{}> = () => { const { TabPane } = Tabs; //控制展示页 const callback = (key: any) => { } const [method, methodSet] = useState(false)//评分办法 true 综合评估法(有详审) false 最低价(无) const [proType, proTypeSet] = useState(false)//采购方式 useEffect(() => { let bizId = '' let commonId: any = ""; if (getURLInformation("id") != null) { commonId = getURLInformation("id") } let nodeId: any = ''; if (getURLInformation("nodeId") != null) { nodeId = getURLInformation("nodeId"); bizId = nodeId; } //查评分办法和采购方式 getBizInfo(bizId).then((res) => { console.log(res); let methodT = false; if (res.code == 200) { const data = res.data; data.evalMethodDict === 'eval_method_2' ? methodT = true : null } methodSet(methodT); }); }, []) return (
{method ? : null }
) } export default Config;