新建user_id

dev_forge
caicai8 5 years ago
parent cf5b03887e
commit 06da30de0a

@ -97,12 +97,12 @@ class Index extends Component{
subMitFrom = () =>{
this.props.form.validateFieldsAndScroll((err, values) => {
if(!err){
console.log(values);
const { current_user } = this.props;
const { projectsType } =this.props.match.params;
const url = projectsType === "deposit" ? "/projects.json" :"/projects/migrate.json";
axios.post(url,{
...values,
user_id:50207
user_id:current_user.user_id
}).then((result)=>{
if(result){
if(result.data.id){

@ -4,6 +4,7 @@
display: flex;
justify-content: space-between;
border-bottom: 1px solid #EEEEEE;
flex-wrap: wrap;
}
.topWrapper_nav{
display: flex;
@ -73,4 +74,11 @@
text-align: center;
padding:6px 30px;
cursor: pointer;
}
@media screen and (max-width: 700px){
.topWrapper_select li{
width:auto;
}
}

@ -3,6 +3,8 @@ import {Link} from 'react-router-dom';
import { Input ,Dropdown , Menu , Icon } from 'antd';
import './order.css';
import axios from 'axios';
const Search = Input.Search;
const tagList= ['所有标签','release','test'];
@ -12,6 +14,24 @@ const levelList=['优先度','低','正常','高','紧急','立刻'];
const percentList=['完成度','0%','10%','20%','30%','40%','50%','60%','70%','80%','90%','100%'];
class order extends Component{
componentDidMount=()=>{
this.getIssueList();
}
getIssueList=()=>{
const { projectsId } = this.props.match.params;
const url = `/projects/${projectsId}/issues.json`;
axios.get(url,{
params:{}
}).then((result)=>{
if(result){
}
}).catch((error)=>{
console.log(error);
})
}
renderMenu =(array)=>{
return(
<Menu>
@ -84,6 +104,11 @@ class order extends Component{
</li>
</ul>
</div>
<div>
<div>
</div>
</div>
</div>
)
}

Loading…
Cancel
Save