import React , { Component } from "react"; import {Link} from 'react-router-dom'; import { Input ,Dropdown , Menu , Icon } from 'antd'; import './order.css'; import Nav from './Nav'; import axios from 'axios'; const Search = Input.Search; class order extends Component{ constructor(props){ super(props); this.state={ issue_chosen:undefined } } componentDidMount=()=>{ this.getSelectList(); this.getIssueList(); } getSelectList=()=>{ const { projectsId } = this.props.match.params; const url = `/projects/${projectsId}/issues/index_chosen.json`; axios.get(url).then((result)=>{ if(result){ this.setState({ issue_chosen:result.data.issue_chosen }) } }).catch((error)=>{ console.log(error); }) } 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); }) } getOption=(e)=>{ console.log(e); } renderMenu =(array,name)=>{ return( {name} { array && array.length > 0 && array.map((item,key)=>{ return( {item.name} ) }) } ) } render(){ const { issue_chosen } = this.state; return(

2个开启中 100个已关闭

console.log(value)} style={{ width: 300 }} />

#10 forge重构:issue列表issue列表issue列表issue列表

1小时前创建 3

  • release
  • 普通
  • 缺陷
  • 猜猜
  • 猜猜猜
  • 0%
) } } export default order;