9.7 增加首页照片检测

This commit is contained in:
jl-zhoujl2
2022-09-07 10:51:30 +08:00
parent 8cc259751b
commit 90c5085fc8
4 changed files with 69 additions and 9 deletions

View File

@ -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>