|
@@ -185,7 +185,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
data:{
|
|
|
name:this.state.editName,//组织名称
|
|
|
type:this.state.editType, //组织类型
|
|
|
- managerId:this.state.editManagerId,//负责人ID
|
|
|
+ managerId:this.state.managerIdOrganization,//负责人ID
|
|
|
superId:changeSuper,//上级组织
|
|
|
status:this.state.editStatus,//组织状态
|
|
|
remarks:remarksText,//组织职能说明
|
|
@@ -214,7 +214,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
data:{
|
|
|
name:this.state.editName,//组织名称
|
|
|
type:this.state.editType, //组织类型
|
|
|
- managerId:this.state.editManagerId,//负责人ID
|
|
|
+ managerId:this.state.managerIdOrganization,//负责人ID
|
|
|
superId:superText,//上级组织
|
|
|
status:this.state.editStatus,//组织状态
|
|
|
remarks:remarksText,//组织职能说明
|
|
@@ -246,7 +246,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
data:{
|
|
|
name:this.state.editName,//组织名称
|
|
|
type:this.state.editType, //组织类型
|
|
|
- managerId:this.state.editManagerId,//负责人ID
|
|
|
+ managerId:this.state.managerIdOrganization,//负责人ID
|
|
|
superId:changeSuper,//上级组织
|
|
|
status:this.state.editStatus,//组织状态
|
|
|
remarks:remarksText,//组织职能说明
|
|
@@ -275,7 +275,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
data:{
|
|
|
name:this.state.editName,//组织名称
|
|
|
type:this.state.editType, //组织类型
|
|
|
- managerId:this.state.editManagerId,//负责人ID
|
|
|
+ managerId:this.state.managerIdOrganization,//负责人ID
|
|
|
superId:superText,//上级组织
|
|
|
status:this.state.editStatus,//组织状态
|
|
|
remarks:remarksText,//组织职能说明
|
|
@@ -338,7 +338,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
this.setState({
|
|
|
editId: thisdata.id,//每一条记录的ID
|
|
|
editName:thisdata.name,//组织名称
|
|
|
- editManagerId:thisdata.managerId,//负责人
|
|
|
+ managerIdOrganization:thisdata.managerId,//负责人
|
|
|
editType:thisdata.type,//组织类型
|
|
|
editStatus:thisdata.status,//组织状态
|
|
|
editSuperId:thisdata.superId,//上级组织
|
|
@@ -490,7 +490,7 @@ const Organization=Form.create()(React.createClass({
|
|
|
},
|
|
|
//值改变时请求客户名称
|
|
|
httpChange(e){
|
|
|
- if(e.length>=2){
|
|
|
+ if(e.length>=1){
|
|
|
this.supervisor(e);
|
|
|
}
|
|
|
this.setState({
|
|
@@ -724,13 +724,28 @@ const Organization=Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 7 }}
|
|
|
- wrapperCol={{ span: 12}}
|
|
|
- label="负责人" >
|
|
|
- <Input placeholder="负责人" value={this.state.editManagerId}
|
|
|
- onChange={(e)=>{this.setState({editManagerId:e.target.value})}}/>
|
|
|
- </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 7 }}
|
|
|
+ wrapperCol={{ span: 12}}
|
|
|
+ label="负责人"
|
|
|
+ >
|
|
|
+ <AutoComplete
|
|
|
+ className="certain-category-search"
|
|
|
+ dropdownClassName="certain-category-search-dropdown"
|
|
|
+ dropdownMatchSelectWidth={false}
|
|
|
+ dataSource={options}
|
|
|
+ placeholder="输入名称"
|
|
|
+ value={this.state.managerIdOrganization}
|
|
|
+ onChange={this.httpChange}
|
|
|
+ filterOption={true}
|
|
|
+ onBlur={this.blurChange}
|
|
|
+ onSelect={this.selectAuto}
|
|
|
+ style={{width:'95%'}}
|
|
|
+ >
|
|
|
+ <Input />
|
|
|
+ </AutoComplete>
|
|
|
+ <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
|
+ </FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|