@ -1,5 +1,8 @@
# 编程内容
json.(@hack, :name, :description, :language, :difficult, :category, :time_limit, :open_or_not, :status)
json.(@hack, :name, :description, :language, :difficult, :category, :time_limit, :open_or_not, :status, :sub_discipline_id)
# 课程
json.tag_discipline_id @hack.tag_discipline_containers.pluck(:tag_discipline_id)
# 代码
json.language @hack.language
@ -199,6 +199,7 @@ class Contentpart extends Component {
: this.props.Contentdata.items.map((object, index) => {
return (
<Listjihe {...this.state} {...this.props} items={object}
key={index}
getitem_basketss={(id)=>this.props.getitem_basketss(id)}
getitem_baskets={(e)=>this.props.getitem_baskets(e)}
showmodels={(e)=>this.props.showmodels(e)}
@ -97,6 +97,12 @@ class Testpaperlibrary extends Component {
this.setState({
keywords: value,
})
var data={
page:1,
per_page:10,
public:this.state.defaultActiveKey,
}
this.getdata(data);
callback = (key) => {
@ -110,16 +116,6 @@ class Testpaperlibrary extends Component {
//搜索框的内容
setdatafunsval=()=>{
//搜索按钮
setdatafuns=()=>{
//获取数据
getdata=(data)=>{
const url = `/examination_banks.json`;
@ -37,6 +37,7 @@ class Contentpart extends Component {
this.props.history.push('/question');
render() {
let {page}=this.state;
let {defaultActiveKey}=this.props;
@ -189,7 +190,7 @@ class Contentpart extends Component {
: this.props.Contentdata.exams.map((object, index) => {
<Listjihe {...this.state} {...this.props} items={object}>
<Listjihe {...this.state} {...this.props} items={object} key={index}>
</Listjihe>
)