9.7 增加首页照片检测
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user