|
|
@ -82,7 +82,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
deadline_at:moment(data.deadline_at),
|
|
|
|
deadline_at:moment(data.deadline_at),
|
|
|
|
min_price:data.min_price,
|
|
|
|
min_price:data.min_price,
|
|
|
|
max_price:data.max_price,
|
|
|
|
max_price:data.max_price,
|
|
|
|
contact_name:data.contact_name,
|
|
|
|
contact_name:data.contact_name==null?this.props.current_user.username:data.contact_name,
|
|
|
|
phones:data.contact_phone,
|
|
|
|
phones:data.contact_phone,
|
|
|
|
attachments:data.attachments,
|
|
|
|
attachments:data.attachments,
|
|
|
|
|
|
|
|
|
|
|
@ -91,7 +91,11 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
console.log(error);
|
|
|
|
console.log(error);
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
contact_name:this.props.current_user.username
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let Url = `/api/v1/project_package_categories.json`;
|
|
|
|
let Url = `/api/v1/project_package_categories.json`;
|
|
|
|
axios.get(Url).then((response) => {
|
|
|
|
axios.get(Url).then((response) => {
|
|
|
@ -378,6 +382,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(contact_name===undefined||contact_name===""||contact_name===null){
|
|
|
|
if(contact_name===undefined||contact_name===""||contact_name===null){
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
contact_nametype:true
|
|
|
|
contact_nametype:true
|
|
|
|