diff --git a/public/react/src/App.js b/public/react/src/App.js index 0aaf7b0cf..ac35560a6 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -755,6 +755,10 @@ class App extends Component { (props) => () } /> + () + } /> () @@ -768,15 +772,6 @@ class App extends Component { render={ (props) => () } /> - () - } /> - - () - }/> () }/> + () + }/> + () diff --git a/public/react/src/modules/testpaper/Testpaperlibrary.js b/public/react/src/modules/testpaper/Testpaperlibrary.js index 58dff6172..4c2ae7a00 100644 --- a/public/react/src/modules/testpaper/Testpaperlibrary.js +++ b/public/react/src/modules/testpaper/Testpaperlibrary.js @@ -215,10 +215,16 @@ class Testpaperlibrary extends Component { > {/*头部*/} this.setdifficulty(bool)} > + {/*内容*/} + + + { items_count&&items_count>10?
diff --git a/public/react/src/modules/testpaper/component/Contentpart.js b/public/react/src/modules/testpaper/component/Contentpart.js index 6d3a1d3b2..fa20b3093 100644 --- a/public/react/src/modules/testpaper/component/Contentpart.js +++ b/public/react/src/modules/testpaper/component/Contentpart.js @@ -14,8 +14,9 @@ import { import './../testioncss/testioncss.css'; import NoneDatas from '../component/NoneDatas'; -import LoadingSpin from '../../../common/LoadingSpin'; import Contentquestionbank from "./Contentquestionbank"; +import LoadingSpin from '../../../common/LoadingSpin'; +import Listjihe from "./Listjihe"; const { TabPane } = Tabs; const Search = Input.Search; class Contentpart extends Component { @@ -30,6 +31,10 @@ class Contentpart extends Component { componentDidMount(){ + } + //跳转人工组卷 + Mantegeneration=()=>{ + this.props.history.push('/question'); } render() { @@ -40,7 +45,7 @@ class Contentpart extends Component { width:'93px', height:'120px', }}> -

简单

+

简单

适中

@@ -78,19 +83,20 @@ class Contentpart extends Component { position:"absolute", top: "0px", paddingLeft: "170px", + width: "100%", }}> -
- { - defaultActiveKey===0||defaultActiveKey==="0"? - -
-

新增

-
-
- :"" - } - trigger.parentNode} placement="bottom" trigger="hover" content={contents} > +
+ this.props.setdatafunsval(e)} + onSearch={ (value)=>this.props.setdatafuns(value)} /> + +
@@ -122,19 +127,76 @@ class Contentpart extends Component {
- this.props.setdatafunsval(e)} - onSearch={ (value)=>this.props.setdatafuns(value)} /> + + + + + + +
+ {/*内容*/} + { + this.props.Contentdata.items === undefined ||this.props.Contentdata.items === null||this.props.Contentdata.items.length===0 ? +
+ : +
+ { + defaultActiveKey===1||defaultActiveKey==="1"? + this.props.selectallquestionsonthispage()} > + :"" + } + { + defaultActiveKey===0||defaultActiveKey==="0"? + this.props.selectallquestionsonthispage()}> + :"" + } +
+ } + + +
+ {/*列表集合*/} +
+ { + this.props.booljupyterurls===true? + + : + this.props.Contentdata.exams === undefined ||this.props.Contentdata.exams === null||this.props.Contentdata.exams.length===0? + + + : this.props.Contentdata.exams.map((object, index) => { + return ( + + + ) + })} + + + +
+ +
diff --git a/public/react/src/modules/testpaper/component/Listjihe.js b/public/react/src/modules/testpaper/component/Listjihe.js new file mode 100644 index 000000000..cd541f429 --- /dev/null +++ b/public/react/src/modules/testpaper/component/Listjihe.js @@ -0,0 +1,130 @@ +import React, {Component} from "react"; +import {Link, NavLink} from 'react-router-dom'; +import {WordsBtn, ActionBtn,SnackbarHOC,getImageUrl,markdownToHTML} from 'educoder'; +import axios from 'axios'; +import { + notification, + Spin, + Table, + Pagination, + Radio +} from "antd"; +import './../testioncss/testioncss.css'; +const tagArray = [ + 'A.', 'B.', 'C.', 'D.', 'E.', 'F.', 'G.', 'H.', 'I.', + 'J.', 'K.', 'L.', 'M.', 'N.', 'O.', 'P.', 'Q.', 'R.', + 'S.', 'T.', 'U.', 'V.', 'W.', 'X.', 'Y.', 'Z.' +] +class Listjihe extends Component { + constructor(props) { + super(props); + this.state = { + page:1, + name:"单选题", + nd:"简单", + chakanjiexibool:false, + } + } + //初始化 + componentDidMount(){ + + + } + + chakanjiexibool=()=>{ + if(this.state.chakanjiexibool===true){ + this.setState({ + chakanjiexibool:false + }) + }else{ + this.setState({ + chakanjiexibool:true + }) + } + + } + //选用 + Selectingpracticaltraining=(id)=>{ + let data={ + item_ids:[id] + } + this.props.getitem_baskets(data); + } + //撤销 + Selectingpracticaltrainings=(id)=>{ + + this.props.getitem_basketss(id); + } + + + + + + render() { + let {page,name,nd,chakanjiexibool}=this.state; + let {defaultActiveKey,items}=this.props; + + ////console.log("Listjihe"); + ////console.log(this.props); + return ( +
+
+
+ + +
+
+

前端开发评测试题1

+
+

试题数:35

+

总分:100

+

难度:适中

+
+
+
+

+ 更新时间:2019-12-09 + +

+

+ 使用次数:1245 +

+

+ 创建者:王老师 +

+ +
+
+

+ + 删除 +

+ +

+ + 编辑 +

+
+

+ + 公开 +

+
+
+
+ +
+
+

发起考试

+
+
+ +
+ +
+ ) + + } + +} +export default Listjihe; diff --git a/public/react/src/modules/testpaper/testioncss/testioncss.css b/public/react/src/modules/testpaper/testioncss/testioncss.css index 356df158d..fb4bf231b 100644 --- a/public/react/src/modules/testpaper/testioncss/testioncss.css +++ b/public/react/src/modules/testpaper/testioncss/testioncss.css @@ -249,7 +249,7 @@ } .w100s{ - width:100%; + width:100% !important; } .stestcen{ text-align: center; @@ -425,6 +425,35 @@ } +.newbutoons{ + width:106px; + height:34px; + background:rgba(76,172,255,1); + border-radius:4px; + line-height: 34px; + color:#ffffff; +} +.newbutoonss{ + width:106px; + height:34px; + background:rgba(51,189,140,1); + border-radius:4px; + line-height: 34px; + color:#ffffff; + + +} + +.newbutoontess{ + width:100%; + height:34px; + font-size:14px; + color:#ffffff; + line-height:34px; + text-align: center; +} + + .newbutoontes{ width:100%; height:42px; @@ -739,3 +768,50 @@ .lh35{ line-height: 35px; } + +.mr39{ + margin-right: 30px; +} + +.sjimg{ + width: 104px; +} +.sjfqks{ + width: 100px; +} + +.sjtitle{ + width:100%; + height:21px; + font-size:16px; + color:#333333; + line-height:21px; +} + +.sjtitles{ + width:64px; + height:17px; + font-size:12px; + color:#888888; + line-height:17px; +} +.sjtitles span{ + color: #333333 !important; + +} +.ml48{ + margin-left: 48px; +} +.sjtitlesysl{ + height:17px; + font-size:12px; + color:#BBBBBB; + line-height:30px; + +} +.mt11{ + margin-top: 11px; +} +.ml37{ + margin-left: 37px; +}