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>
|
||||
|
@ -1,5 +1,5 @@
|
||||
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 { connect } from 'dva';
|
||||
import './index.less';
|
||||
@ -10,6 +10,7 @@ import moment from 'moment';
|
||||
import { jurySaveInfo, getSessionUserData } from '@/utils/session';
|
||||
import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail'
|
||||
import ExpertEnter from '@/pages/BidEvaluation/components/ExpertEnter';
|
||||
import { isInsertIdOrPhoto } from './service';
|
||||
|
||||
@connect(({ dashboard, loading }) => ({
|
||||
...dashboard,
|
||||
@ -47,6 +48,7 @@ class Jury extends PureComponent {
|
||||
userlevel: "1", //网站自定义会员级别,1-N,可根据选择判断,取值显示到小能客户端
|
||||
erpparam: "abc" //erpparam为erp功能的扩展字段,可选,购买erp功能后用于erp功能集成
|
||||
}
|
||||
this.isIdOrPhoto();
|
||||
}
|
||||
onChange = (date, dateString) => {
|
||||
this.setState({
|
||||
@ -96,12 +98,27 @@ class Jury extends PureComponent {
|
||||
})
|
||||
}
|
||||
talkXy = () => {
|
||||
if(NTKF){
|
||||
if (NTKF) {
|
||||
NTKF.im_openInPageChat('bl_1000_1492484340268');
|
||||
} else {
|
||||
message.warn('小优客服初始化失败,请联系系统管理员!')
|
||||
}
|
||||
}
|
||||
//判断是否有身份证号或照片
|
||||
isIdOrPhoto = () => {
|
||||
const { warning } = Modal;
|
||||
isInsertIdOrPhoto().then(res => {
|
||||
if (res?.code == 200) {
|
||||
if (!res?.data) {
|
||||
warning({
|
||||
title: '提示',
|
||||
content: `您尚未维护身份证号与照片信息,请前往【我的工作台】->【专家个人信息管理】补充信息`,
|
||||
centered: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
render() {
|
||||
const { datevalue, detailId, noticeDetail, recordData, enterVisible } = this.state;
|
||||
const { Juryuplist, Jurydownlist, staloading, tlist } = this.props;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
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 { connect } from 'dva';
|
||||
import './index.less';
|
||||
@ -9,7 +9,7 @@ import { routerRedux } from 'dva/router';
|
||||
import { RightOutlined } from '@ant-design/icons';
|
||||
import moment from 'moment';
|
||||
import { followUpAProjectManager, getSessionUserData } from '@/utils/session';
|
||||
import { getDefId } from './service';
|
||||
import { getDefId, isInsertIdOrPhoto } from './service';
|
||||
import { getURLInformation } from '@/utils/CommonUtils';
|
||||
import MessageDetail from '@/pages/SystemMessage/message/components/messageDetail'
|
||||
import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail'
|
||||
@ -71,7 +71,8 @@ class manager extends PureComponent {
|
||||
userlevel: "1", //网站自定义会员级别,1-N,可根据选择判断,取值显示到小能客户端
|
||||
erpparam: "abc" //erpparam为erp功能的扩展字段,可选,购买erp功能后用于erp功能集成
|
||||
}
|
||||
this.approvalDetail()
|
||||
this.approvalDetail();
|
||||
this.isIdOrPhoto();
|
||||
}
|
||||
onChange = (date, dateString) => {
|
||||
this.setState({
|
||||
@ -156,6 +157,22 @@ class manager extends PureComponent {
|
||||
await followUpAProjectManager(data);
|
||||
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() {
|
||||
const { downlist, projectlist, staloading, tlist, trelist, idList, dateNum } = this.props;
|
||||
const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, mainDetail } = this.state;
|
||||
|
@ -20,3 +20,13 @@ export async function getCalendarData(params?: any) {
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前登录人是否需要录入身份证或相片
|
||||
*/
|
||||
export async function isInsertIdOrPhoto() {
|
||||
return request("/api/biz-service-ebtp-rsms/v1/jury/user/photo/info", {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user