dev_static
杨树明 5 years ago
parent fbf53f65c3
commit 5e12bc7225

@ -1,12 +1,10 @@
import React,{ Component } from "react"; import React,{ Component } from "react";
import { Input,Checkbox,Table, Pagination, Modal,Menu, Tooltip,Spin } from "antd"; import { Input,Checkbox, Pagination,Menu, AutoComplete,Spin } from "antd";
import { WordsBtn,on, off, trigger } from 'educoder'; import { WordsBtn,on, trigger } from 'educoder';
import {BrowserRouter as Router,Route,Switch,Link} from 'react-router-dom'; import {Link} from 'react-router-dom';
import axios from'axios'; import axios from'axios';
import HomeworkModal from "../coursesPublic/HomeworkModal"; import HomeworkModal from "../coursesPublic/HomeworkModal";
import OneSelfOrderModal from "../coursesPublic/OneSelfOrderModal";
import ShixunModal from "../coursesPublic/ShixunModal";
import PathModal from "../coursesPublic/PathModal";
import NewShixunModel from '../coursesPublic/NewShixunModel'; import NewShixunModel from '../coursesPublic/NewShixunModel';
import AddcoursesNav from "../coursesPublic/AddcoursesNav"; import AddcoursesNav from "../coursesPublic/AddcoursesNav";
import Modals from '../../modals/Modals'; import Modals from '../../modals/Modals';
@ -16,7 +14,7 @@ import '../css/busyWork.css'
import ShixunhomeWorkItem from "./ShixunhomeWorkItem"; import ShixunhomeWorkItem from "./ShixunhomeWorkItem";
import NoneData from "../coursesPublic/NoneData"; import NoneData from "../coursesPublic/NoneData";
const Search = Input.Search;
class ShixunHomework extends Component{ class ShixunHomework extends Component{
constructor(props){ constructor(props){
@ -1212,12 +1210,27 @@ class ShixunHomework extends Component{
</Menu> </Menu>
</div> </div>
<div className="fr mt16 mb16 searchView"> <div className="fr mt16 mb16 searchView">
<Search {/*<Search*/}
value={Coursename} {/* value={Coursename}*/}
placeholder="请输入名称进行搜索" {/* placeholder="请输入名称进行搜索"*/}
onInput={this.SearchCoursenames} {/* onInput={this.SearchCoursenames}*/}
onSearch={value => this.SearchCoursename(value)} {/* onSearch={value => this.SearchCoursename(value)}*/}
></Search> {/* allowClear*/}
{/*></Search>*/}
<AutoComplete
allowClear
className="certain-category-search"
dropdownClassName="certain-category-search-dropdown"
dropdownMatchSelectWidth={false}
dropdownStyle={{ width: 300 }}
size="large"
style={{ width: '100%' }}
dataSource={options}
placeholder="input here"
optionLabelProp="value"
>
<Input suffix={<Icon type="search" className="certain-category-icon" />} />
</AutoComplete>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save