9.7 增加首页照片检测
This commit is contained in:
@ -12,6 +12,7 @@ import { getWarnData } from "../Home/service";
|
||||
import ScreenVideoPlay from "@/components/ElecBidEvaluation/ScreenVideoPlay";
|
||||
import { pictureDisplayPath } from "@/utils/DownloadUtils";
|
||||
import { getURLInformation } from "@/utils/CommonUtils";
|
||||
import { getDicData } from "@/utils/session";
|
||||
|
||||
const statusMap = ["未报道", "已报道"];
|
||||
|
||||
@ -129,6 +130,8 @@ export default (props: any) => {
|
||||
const [backStrangerList, setBackStrangerList] = useState<any[]>([]);
|
||||
//人数预警-回看
|
||||
const [backNumberList, setBackNumberList] = useState<any[]>([]);
|
||||
//采购方式字典
|
||||
const [bidMethodObj, setBidMethodObj] = useState<any>();
|
||||
//监控视频Ref
|
||||
const videoRef = useRef<any>();
|
||||
//定时刷新间隔
|
||||
@ -235,8 +238,21 @@ export default (props: any) => {
|
||||
}
|
||||
})
|
||||
}
|
||||
//初始化字典
|
||||
const initDict = () => {
|
||||
//采购方式字典
|
||||
const getDict: any = getDicData();
|
||||
const dictData = JSON.parse(getDict);
|
||||
const bidMethodArray = dictData["procurement_mode=entrust"] as any[];
|
||||
let obj = {};
|
||||
for (let i = 0, length = bidMethodArray.length; i < length; i++) {
|
||||
obj[bidMethodArray[i].code] = bidMethodArray[i].dicName;
|
||||
}
|
||||
setBidMethodObj(obj);
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
initDict();
|
||||
getRoomData();
|
||||
getWarnInfo();
|
||||
getExpertList();
|
||||
@ -279,7 +295,7 @@ export default (props: any) => {
|
||||
<Row>
|
||||
<Col span={6}>
|
||||
<div className="left-content-g">
|
||||
<p>{basicInfo?.bidMethodDictName}</p>
|
||||
<p>{bidMethodObj?.[basicInfo?.procurementMode]}</p>
|
||||
<p>项目名称:{basicInfo?.projectName}</p>
|
||||
<p>项目编号:{basicInfo?.projectNum}</p>
|
||||
<p>标段名称:{basicInfo?.sectionName}</p>
|
||||
|
Reference in New Issue
Block a user