diff --git a/public/react/src/modules/testpaper/Testpaperlibrary.js b/public/react/src/modules/testpaper/Testpaperlibrary.js index 7907835b1..58dff6172 100644 --- a/public/react/src/modules/testpaper/Testpaperlibrary.js +++ b/public/react/src/modules/testpaper/Testpaperlibrary.js @@ -72,6 +72,10 @@ class Testpaperlibrary extends Component { }) } }); + var data={ + + } + this.getdata(data); } @@ -82,11 +86,6 @@ class Testpaperlibrary extends Component { this.getdata(data); } -// 选择难度 - setdifficulty=()=>{ - - - } callback=()=>{ @@ -104,7 +103,7 @@ class Testpaperlibrary extends Component { //获取数据 getdata=(data)=>{ - const url = `/item_banks.json`; + const url = `/examination_banks.json`; this.setState({ booljupyterurls:true, }) @@ -127,7 +126,7 @@ class Testpaperlibrary extends Component { ////console.log(response); this.setState({ Contentdata: response.data, - items_count: response.data.items_count, + items_count: response.data.exam_count, }) }).catch((error) => { ////console.log(error) @@ -194,6 +193,10 @@ class Testpaperlibrary extends Component { this.getdata(data); } + setdifficulty=(bool)=>{ + + } + render() { let{Headertop,items_count,page,per_page}=this.state; return ( @@ -211,7 +214,9 @@ class Testpaperlibrary extends Component { settag_discipline_id={(e)=>this.settag_discipline_id(e)} > {/*头部*/} - + this.setdifficulty(bool)} + > { diff --git a/public/react/src/modules/testpaper/component/Contentpart.js b/public/react/src/modules/testpaper/component/Contentpart.js index 96728110d..6d3a1d3b2 100644 --- a/public/react/src/modules/testpaper/component/Contentpart.js +++ b/public/react/src/modules/testpaper/component/Contentpart.js @@ -12,6 +12,7 @@ import { Popover } from "antd"; import './../testioncss/testioncss.css'; + import NoneDatas from '../component/NoneDatas'; import LoadingSpin from '../../../common/LoadingSpin'; import Contentquestionbank from "./Contentquestionbank"; @@ -34,32 +35,16 @@ class Contentpart extends Component { render() { let {page}=this.state; let {defaultActiveKey}=this.props; - const content = ( -
-

this.props.setitem_types("SINGLE")}>单选题

-

-

this.props.setitem_types("MULTIPLE")}>多选题

-

-

this.props.setitem_types("JUDGMENT")}>判断题

-

-

this.props.setitem_types("PROGRAM")}>编程题

-

- -
- ); const contents = (
-

this.props.setdifficulty(1)}>简单

+

简单

-

this.props.setdifficulty(2)}>适中

+

适中

-

this.props.setdifficulty(3)}>困难

+

困难

); @@ -92,8 +77,7 @@ class Contentpart extends Component {