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 ScreenVideoPlay from "@/components/ElecBidEvaluation/ScreenVideoPlay";
import { pictureDisplayPath } from "@/utils/DownloadUtils"; import { pictureDisplayPath } from "@/utils/DownloadUtils";
import { getURLInformation } from "@/utils/CommonUtils"; import { getURLInformation } from "@/utils/CommonUtils";
import { getDicData } from "@/utils/session";
const statusMap = ["未报道", "已报道"]; const statusMap = ["未报道", "已报道"];
@ -129,6 +130,8 @@ export default (props: any) => {
const [backStrangerList, setBackStrangerList] = useState<any[]>([]); const [backStrangerList, setBackStrangerList] = useState<any[]>([]);
//人数预警-回看 //人数预警-回看
const [backNumberList, setBackNumberList] = useState<any[]>([]); const [backNumberList, setBackNumberList] = useState<any[]>([]);
//采购方式字典
const [bidMethodObj, setBidMethodObj] = useState<any>();
//监控视频Ref //监控视频Ref
const videoRef = useRef<any>(); 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(() => { useEffect(() => {
initDict();
getRoomData(); getRoomData();
getWarnInfo(); getWarnInfo();
getExpertList(); getExpertList();
@ -279,7 +295,7 @@ export default (props: any) => {
<Row> <Row>
<Col span={6}> <Col span={6}>
<div className="left-content-g"> <div className="left-content-g">
<p>{basicInfo?.bidMethodDictName}</p> <p>{bidMethodObj?.[basicInfo?.procurementMode]}</p>
<p>{basicInfo?.projectName}</p> <p>{basicInfo?.projectName}</p>
<p>{basicInfo?.projectNum}</p> <p>{basicInfo?.projectNum}</p>
<p>{basicInfo?.sectionName}</p> <p>{basicInfo?.sectionName}</p>

View File

@ -1,5 +1,5 @@
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic } from 'antd'; import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Modal } from 'antd';
import { history } from 'umi'; import { history } from 'umi';
import { connect } from 'dva'; import { connect } from 'dva';
import './index.less'; import './index.less';
@ -10,6 +10,7 @@ import moment from 'moment';
import { jurySaveInfo, getSessionUserData } from '@/utils/session'; import { jurySaveInfo, getSessionUserData } from '@/utils/session';
import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail' import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail'
import ExpertEnter from '@/pages/BidEvaluation/components/ExpertEnter'; import ExpertEnter from '@/pages/BidEvaluation/components/ExpertEnter';
import { isInsertIdOrPhoto } from './service';
@connect(({ dashboard, loading }) => ({ @connect(({ dashboard, loading }) => ({
...dashboard, ...dashboard,
@ -47,6 +48,7 @@ class Jury extends PureComponent {
userlevel: "1",                       //网站自定义会员级别1-N可根据选择判断取值显示到小能客户端 userlevel: "1",                       //网站自定义会员级别1-N可根据选择判断取值显示到小能客户端
erpparam: "abc"                          //erpparam为erp功能的扩展字段可选购买erp功能后用于erp功能集成 erpparam: "abc"                          //erpparam为erp功能的扩展字段可选购买erp功能后用于erp功能集成
} }
this.isIdOrPhoto();
} }
onChange = (date, dateString) => { onChange = (date, dateString) => {
this.setState({ this.setState({
@ -96,12 +98,27 @@ class Jury extends PureComponent {
}) })
} }
talkXy = () => { talkXy = () => {
if(NTKF){ if (NTKF) {
NTKF.im_openInPageChat('bl_1000_1492484340268'); NTKF.im_openInPageChat('bl_1000_1492484340268');
} else { } else {
message.warn('小优客服初始化失败,请联系系统管理员!') message.warn('小优客服初始化失败,请联系系统管理员!')
} }
} }
//判断是否有身份证号或照片
isIdOrPhoto = () => {
const { warning } = Modal;
isInsertIdOrPhoto().then(res => {
if (res?.code == 200) {
if (!res?.data) {
warning({
title: '提示',
content: `您尚未维护身份证号与照片信息,请前往【我的工作台】->【专家个人信息管理】补充信息`,
centered: true,
});
}
}
})
}
render() { render() {
const { datevalue, detailId, noticeDetail, recordData, enterVisible } = this.state; const { datevalue, detailId, noticeDetail, recordData, enterVisible } = this.state;
const { Juryuplist, Jurydownlist, staloading, tlist } = this.props; const { Juryuplist, Jurydownlist, staloading, tlist } = this.props;
@ -109,7 +126,7 @@ class Jury extends PureComponent {
<> <>
{ {
START_ENV == 'UAT' || START_ENV == 'DEV' || START_ENV == 'sim' ? '' : START_ENV == 'UAT' || START_ENV == 'DEV' || START_ENV == 'sim' ? '' :
<a className="talk" onClick={() => this.talkXy()}>咨询服务<span>8:30</span><span>|</span><span>12:30</span><span>13:00</span><span>|</span><span>17:00</span><img src={talkPng} /></a> <a className="talk" onClick={() => this.talkXy()}>咨询服务<span>8:30</span><span>|</span><span>12:30</span><span>13:00</span><span>|</span><span>17:00</span><img src={talkPng} /></a>
} }
<div className="dashboard" style={{ height: innerHeight - 70, overflow: "hidden" }}> <div className="dashboard" style={{ height: innerHeight - 70, overflow: "hidden" }}>
<Row className="topt"> <Row className="topt">
@ -182,7 +199,7 @@ class Jury extends PureComponent {
</div> </div>
{noticeDetail && <NoticeDetail detailId={detailId} onCancel={() => { this.noticeModel() }} modalVisible={noticeDetail} />} {noticeDetail && <NoticeDetail detailId={detailId} onCancel={() => { this.noticeModel() }} modalVisible={noticeDetail} />}
{recordData == '' ? null : {recordData == '' ? null :
<ExpertEnter modalVisible={enterVisible} onCancel={() => { this.enterModel() }} onRefresh={() => { this.onRefresh() }} recordData={recordData} />} <ExpertEnter modalVisible={enterVisible} onCancel={() => { this.enterModel() }} onRefresh={() => { this.onRefresh() }} recordData={recordData} />}
</> </>
) )
} }

View File

@ -1,6 +1,6 @@
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import { history } from 'umi'; import { history } from 'umi';
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Empty, message } from 'antd'; import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Empty, message, Modal } from 'antd';
// import PageHeaderWrapper from '@/components/PageHeaderWrapper'; // import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import { connect } from 'dva'; import { connect } from 'dva';
import './index.less'; import './index.less';
@ -9,7 +9,7 @@ import { routerRedux } from 'dva/router';
import { RightOutlined } from '@ant-design/icons'; import { RightOutlined } from '@ant-design/icons';
import moment from 'moment'; import moment from 'moment';
import { followUpAProjectManager, getSessionUserData } from '@/utils/session'; import { followUpAProjectManager, getSessionUserData } from '@/utils/session';
import { getDefId } from './service'; import { getDefId, isInsertIdOrPhoto } from './service';
import { getURLInformation } from '@/utils/CommonUtils'; import { getURLInformation } from '@/utils/CommonUtils';
import MessageDetail from '@/pages/SystemMessage/message/components/messageDetail' import MessageDetail from '@/pages/SystemMessage/message/components/messageDetail'
import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail' import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail'
@ -71,7 +71,8 @@ class manager extends PureComponent {
userlevel: "1",                       //网站自定义会员级别1-N可根据选择判断取值显示到小能客户端 userlevel: "1",                       //网站自定义会员级别1-N可根据选择判断取值显示到小能客户端
erpparam: "abc"                          //erpparam为erp功能的扩展字段可选购买erp功能后用于erp功能集成 erpparam: "abc"                          //erpparam为erp功能的扩展字段可选购买erp功能后用于erp功能集成
} }
this.approvalDetail() this.approvalDetail();
this.isIdOrPhoto();
} }
onChange = (date, dateString) => { onChange = (date, dateString) => {
this.setState({ this.setState({
@ -156,6 +157,22 @@ class manager extends PureComponent {
await followUpAProjectManager(data); await followUpAProjectManager(data);
history.push('/ProjectLayout/Manager/HomePageSectionList'); history.push('/ProjectLayout/Manager/HomePageSectionList');
}; };
//判断是否有身份证号或照片
isIdOrPhoto = () => {
const { warning } = Modal;
isInsertIdOrPhoto().then(res => {
if (res?.code == 200) {
if (!res?.data) {
warning({
title: '提示',
content: `您尚未维护身份证号与照片信息,请前往【我的工作台】->【代理机构信息管理】补充信息`,
centered: true,
});
}
}
})
}
render() { render() {
const { downlist, projectlist, staloading, tlist, trelist, idList, dateNum } = this.props; const { downlist, projectlist, staloading, tlist, trelist, idList, dateNum } = this.props;
const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, mainDetail } = this.state; const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, mainDetail } = this.state;

View File

@ -20,3 +20,13 @@ export async function getCalendarData(params?: any) {
params: params, params: params,
}); });
} }
/**
* 判断当前登录人是否需要录入身份证或相片
*/
export async function isInsertIdOrPhoto() {
return request("/api/biz-service-ebtp-rsms/v1/jury/user/photo/info", {
method: 'GET',
});
}