|
@@ -39,6 +39,7 @@ const PicturesWall = React.createClass({
|
|
|
},
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
this.state.fileList = nextProps.pictureUrl;
|
|
|
+ this.state.pojectApplicationUrl = undefined;
|
|
|
},
|
|
|
render() {
|
|
|
const {
|
|
@@ -212,6 +213,7 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
loading: false,
|
|
|
callnub:"0",
|
|
|
pojectApplicationUrl:"",
|
|
|
+ isXian:0,
|
|
|
modalVisible:false,
|
|
|
pagination: {
|
|
|
defaultCurrent: 1,
|
|
@@ -428,7 +430,8 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
coreTechnology:thisDetail.coreTechnology,//核心技术
|
|
|
accomplishSituation:thisDetail.accomplishSituation,//客户已完成项目情况
|
|
|
creditRating:thisDetail.creditRating?thisDetail.creditRating.toString():"",//信用等级
|
|
|
- });
|
|
|
+ pojectApplicationUrl:thisDetail.pojectApplicationUrl,//文件地址
|
|
|
+ });
|
|
|
}}.bind(this),
|
|
|
}).always(function() {
|
|
|
this.setState({
|
|
@@ -550,6 +553,7 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
coreTechnology:this.state.coreTechnology,//核心技术
|
|
|
accomplishSituation:this.state.accomplishSituation,//客户已完成项目情况
|
|
|
creditRating:this.state.creditRating,//信用等级
|
|
|
+ pojectApplicationUrl:this.state.pojectApplicationUrl,//文件地址
|
|
|
}
|
|
|
}).done(function(data) {
|
|
|
this.setState({
|
|
@@ -608,6 +612,8 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
//整行点击
|
|
|
tableRowClick(record, index) {
|
|
|
this.state.visitModul=true;
|
|
|
+ this.state.pojectApplicationUrl = undefined;
|
|
|
+ this.state.isXian=0;
|
|
|
this.details(record.id);
|
|
|
},
|
|
|
//指定转交人自动补全
|
|
@@ -715,6 +721,7 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
},
|
|
|
//详情关闭
|
|
|
visitCancel(e) {
|
|
|
+ this.state.fileList = [];
|
|
|
this.setState({
|
|
|
visitModul: false,
|
|
|
callnub:"0"
|
|
@@ -812,8 +819,6 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
onChange(info) {
|
|
|
const status = info.file.status;
|
|
|
if (status !== 'uploading') {
|
|
|
- console.log(11);
|
|
|
- console.log(info.file, info.fileList);
|
|
|
}
|
|
|
if (status === 'done') {
|
|
|
message.success(`${info.file.name} file uploaded successfully.`);
|
|
@@ -1189,6 +1194,7 @@ const IntentionCustomer = Form.create()(React.createClass({
|
|
|
};
|
|
|
this.setState({
|
|
|
pojectApplicationUrl:info.file.response.data,
|
|
|
+ isXian:1,
|
|
|
})
|
|
|
} else if (info.file.status === 'error') {
|
|
|
message.error(`${info.file.name} 文件上传失败。`);
|