9.7 增加首页照片检测
This commit is contained in:
@ -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,20 +98,35 @@ 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;
|
||||
return (
|
||||
<>
|
||||
{
|
||||
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>
|
||||
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>
|
||||
}
|
||||
<div className="dashboard" style={{ height: innerHeight - 70, overflow: "hidden" }}>
|
||||
<Row className="topt">
|
||||
@ -182,7 +199,7 @@ class Jury extends PureComponent {
|
||||
</div>
|
||||
{noticeDetail && <NoticeDetail detailId={detailId} onCancel={() => { this.noticeModel() }} modalVisible={noticeDetail} />}
|
||||
{recordData == '' ? null :
|
||||
<ExpertEnter modalVisible={enterVisible} onCancel={() => { this.enterModel() }} onRefresh={() => { this.onRefresh() }} recordData={recordData} />}
|
||||
<ExpertEnter modalVisible={enterVisible} onCancel={() => { this.enterModel() }} onRefresh={() => { this.onRefresh() }} recordData={recordData} />}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
@ -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