|
@@ -74,7 +74,7 @@ const Assign=React.createClass({
|
|
|
title: '部门机构',
|
|
|
dataIndex: 'departmentName',
|
|
|
key: 'departmentName',
|
|
|
- width:100,
|
|
|
+ width:150,
|
|
|
render:text=>{
|
|
|
return text&&text.length>12?<span title={text}>{text.substr(0,12)+'...'}</span>:text
|
|
|
}
|
|
@@ -83,9 +83,6 @@ const Assign=React.createClass({
|
|
|
dataIndex: 'position',
|
|
|
key: 'position',
|
|
|
width:100,
|
|
|
- render:text=>{
|
|
|
- return getPost(text)
|
|
|
- }
|
|
|
},{
|
|
|
title: '联系手机',
|
|
|
dataIndex: 'contactMobile',
|
|
@@ -131,7 +128,7 @@ const Assign=React.createClass({
|
|
|
this.setState({
|
|
|
loading:true
|
|
|
});
|
|
|
- let api = nub?'/api/admin/frequentContactsList':'/api/admin/superviser/adminList';
|
|
|
+ let api = !nub?'/api/admin/frequentContactsList':'/api/admin/superviser/adminList';
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
@@ -153,6 +150,7 @@ const Assign=React.createClass({
|
|
|
} else {
|
|
|
for (let i = 0; i < data.data.list.length; i++) {
|
|
|
let thisdata = data.data.list[i];
|
|
|
+ console.log(thisdata.roles[0]);
|
|
|
theArr.push({
|
|
|
key: i,
|
|
|
id: thisdata.id,
|
|
@@ -161,7 +159,7 @@ const Assign=React.createClass({
|
|
|
name:thisdata.name,
|
|
|
departmentName:thisdata.departmentName,
|
|
|
departmentId:thisdata.departmentId,
|
|
|
- position:thisdata.position,
|
|
|
+ position:thisdata.roles[0],
|
|
|
contactMobile:thisdata.contactMobile,
|
|
|
});
|
|
|
};
|
|
@@ -181,6 +179,7 @@ const Assign=React.createClass({
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
});
|
|
|
+ console.log(this.state.contact);
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -188,11 +187,11 @@ const Assign=React.createClass({
|
|
|
url: globalConfig.context +this.props.selApi,
|
|
|
data: this.props.fenpaiData==8?{
|
|
|
taskId:this.props.data.id,//任务ID
|
|
|
- taskReceiverId:!this.state.contact?record.id:record.contactId,//分配人物ID
|
|
|
+ taskReceiverId:this.state.contact?record.id:record.contactId,//分配人物ID
|
|
|
specially:this.props.specially//是否是咨询师管理员
|
|
|
}:{
|
|
|
orderNo:this.state.orderNo,
|
|
|
- financeId: !this.state.contact?record.id:record.contactId, //分配人物id
|
|
|
+ financeId: this.state.contact?record.id:record.contactId, //分配人物id
|
|
|
approval:this.props.data.approval //是否特批
|
|
|
}
|
|
|
}).done(function (data) {
|
|
@@ -251,8 +250,8 @@ const Assign=React.createClass({
|
|
|
<div>
|
|
|
<span style={{marginRight:5}}>常用联系人:</span>
|
|
|
<Radio.Group onChange={(e)=>{this.setState({contact:e.target.value})}} value={this.state.contact}>
|
|
|
- <Radio value={0}>否</Radio>
|
|
|
- <Radio value={1}>是</Radio>
|
|
|
+ <Radio value={1}>否</Radio>
|
|
|
+ <Radio value={0}>是</Radio>
|
|
|
</Radio.Group>
|
|
|
<Select placeholder="部门"
|
|
|
style={{ width: 150 ,marginRight:'10px',marginLeft:'10px'}}
|