diff --git a/public/react/src/forge/New/Index.js b/public/react/src/forge/New/Index.js index e83e07435..2364a705a 100644 --- a/public/react/src/forge/New/Index.js +++ b/public/react/src/forge/New/Index.js @@ -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){ diff --git a/public/react/src/forge/Order/order.css b/public/react/src/forge/Order/order.css index 61e6ccf5c..b5e64cf56 100644 --- a/public/react/src/forge/Order/order.css +++ b/public/react/src/forge/Order/order.css @@ -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; + } } \ No newline at end of file diff --git a/public/react/src/forge/Order/order.js b/public/react/src/forge/Order/order.js index 63016e93d..d488af72a 100644 --- a/public/react/src/forge/Order/order.js +++ b/public/react/src/forge/Order/order.js @@ -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(