|
@@ -26,7 +26,7 @@ import moment from 'moment';
|
|
|
import './unit.less';
|
|
|
import { areaSelect } from '@/NewDicProvinceList';
|
|
|
import { socialAttribute, industry,adviserType } from '@/dataDic.js';
|
|
|
-import { splitUrl,getAuthState,getAdviserType } from '@/tools.js';
|
|
|
+import { splitUrl,getAuthState,getAdviserType ,getSocialAttribute } from '@/tools.js';
|
|
|
const FormItem = Form.Item;
|
|
|
const monthFormat = 'YYYY/MM';
|
|
|
//图片组件
|
|
@@ -392,18 +392,6 @@ const Expert = React.createClass({
|
|
|
</Select>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item" {...formItemLayout} label="社会属性">
|
|
|
- {getFieldDecorator('societyTag', {
|
|
|
- rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
- initialValue: theData.societyTag
|
|
|
- })(
|
|
|
- <Select placeholder="客户社会属性">
|
|
|
- {socialAttribute.map(function(item) {
|
|
|
- return <Select.Option key={item.value}>{item.key}</Select.Option>;
|
|
|
- })}
|
|
|
- </Select>
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
<FormItem className="half-item" {...formItemLayout} label="性别">
|
|
|
{getFieldDecorator('sex', {
|
|
|
initialValue: theData.sex
|
|
@@ -474,7 +462,7 @@ const Expert = React.createClass({
|
|
|
})(<Input type="textarea" rows={4} maxLength={512} placeholder="输入个人简介"/>)}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- {(this.state.expert=='0'||this.state.auditStatus=='0'||this.state.expert==null)&&this.state.type!=null?
|
|
|
+ {(this.state.expert=='0'||this.state.auditStatus=='0'||this.state.expert==null||this.state.auditStatus=='3')&&this.state.type!=null?
|
|
|
<div>
|
|
|
<div className="clearfix btnGrounp">
|
|
|
<Radio.Group
|
|
@@ -519,6 +507,18 @@ const Expert = React.createClass({
|
|
|
rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
})(<Input placeholder="输入职称" maxLength={32}/>)}
|
|
|
</FormItem>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="社会属性">
|
|
|
+ {getFieldDecorator('societyTag', {
|
|
|
+ rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
+ initialValue: theData.societyTag
|
|
|
+ })(
|
|
|
+ <Select placeholder="客户社会属性">
|
|
|
+ {socialAttribute.map(function(item) {
|
|
|
+ return <Select.Option key={item.value}>{item.key}</Select.Option>;
|
|
|
+ })}
|
|
|
+ </Select>
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
</div>:this.state.authenticationState=='1'?
|
|
|
<div>
|
|
|
<FormItem className="half-item" {...formItemLayout} label="顾问类型">
|
|
@@ -533,6 +533,18 @@ const Expert = React.createClass({
|
|
|
</Select>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="社会属性">
|
|
|
+ {getFieldDecorator('societyTag', {
|
|
|
+ rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
+ initialValue: theData.societyTag
|
|
|
+ })(
|
|
|
+ <Select placeholder="客户社会属性">
|
|
|
+ {socialAttribute.map(function(item) {
|
|
|
+ return <Select.Option key={item.value}>{item.key}</Select.Option>;
|
|
|
+ })}
|
|
|
+ </Select>
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
</div>:''}
|
|
|
{this.state.authenticationState=='1'||this.state.authenticationState=='0'?<div className="clearfix pictures">
|
|
|
<div className="clearfix">
|
|
@@ -586,6 +598,9 @@ const Expert = React.createClass({
|
|
|
<FormItem className="half-item" {...formItemLayout} label="职称">
|
|
|
<span>{theData.professionalTitle}</span>
|
|
|
</FormItem>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="社会属性">
|
|
|
+ <span>{getSocialAttribute(theData.societyTag)}</span>
|
|
|
+ </FormItem>
|
|
|
<div className="clearfix">
|
|
|
<FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 13 }} label="专家照片">
|
|
|
<Upload className="demandDetailShow-upload"
|
|
@@ -649,6 +664,9 @@ const Expert = React.createClass({
|
|
|
<FormItem className="half-item" {...formItemLayout} label="顾问类型">
|
|
|
<span>{getAdviserType(theData.consultantType)}</span>
|
|
|
</FormItem>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="社会属性">
|
|
|
+ <span>{getSocialAttribute(theData.societyTag)}</span>
|
|
|
+ </FormItem>
|
|
|
<div className="clearfix">
|
|
|
<FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 13 }} label="顾问照片">
|
|
|
<Upload className="demandDetailShow-upload"
|