diff --git a/public/react/src/App.js b/public/react/src/App.js index ac35560a6..f41dbba4f 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -318,6 +318,11 @@ const Testpaperlibrary= Loadable({ loader: () => import('./modules/testpaper/Testpaperlibrary'), loading: Loading }) +//试卷查看 +const Paperlibraryseeid= Loadable({ + loader: () => import('./modules/testpaper/Paperlibraryseeid'), + loading: Loading +}) //人工组卷 const Paperreview= Loadable({ loader: () => import('./modules/question/Paperreview'), @@ -744,17 +749,23 @@ class App extends Component { } } /> - + () + } + /> () } /> - () - } - /> + + + + () + }/> () @@ -772,15 +783,15 @@ class App extends Component { render={ (props) => () } /> - - () - }/> () }/> + () + }/> + () diff --git a/public/react/src/modules/question/Paperreview.js b/public/react/src/modules/question/Paperreview.js index 1f57c81a4..75869c666 100644 --- a/public/react/src/modules/question/Paperreview.js +++ b/public/react/src/modules/question/Paperreview.js @@ -23,7 +23,7 @@ import ChoquesEditor from "./component/ChoquesEditor" import JudquestionEditor from "./component/JudquestionEditor"; import Paperreview_item from "./Paperreview_item" import Bottomsubmit from "../../modules/modals/Bottomsubmit"; -import Comthetestpapers from "./comthetestpaper/Comthetestpapers"; +import Comthetestpaperst from "./comthetestpaper/Comthetestpaperst"; //人工组卷预览 class Paperreview extends Component { constructor(props) { @@ -134,6 +134,9 @@ class Paperreview extends Component { booljupyterurls: true, }) axios.get((url), {params: data}).then((response) => { + if(response===undefined|| response===null){ + return; + } setTimeout(() => { this.setState({ booljupyterurls: false, @@ -189,6 +192,7 @@ class Paperreview extends Component { } preservation = () => { //保存试卷 + debugger if(this.state.Cohetepaperbool===true){ if (this.contentMdRef.Getdatas().length === 0) { this.scrollToAnchor("Itembankstopid"); @@ -285,11 +289,11 @@ class Paperreview extends Component { : - this.getcontentMdRef(ref)} setitem_type={(item) => this.setitem_type(item)} - > + > } diff --git a/public/react/src/modules/question/Paperreview_item.js b/public/react/src/modules/question/Paperreview_item.js index d4657ac95..1698d2295 100644 --- a/public/react/src/modules/question/Paperreview_item.js +++ b/public/react/src/modules/question/Paperreview_item.js @@ -438,9 +438,7 @@ class Paperreview_item extends Component {
拖动试题可调整排序
- {/*共{single_questions && single_questions.questions_count}个试题*/} - {/*
*/} + diff --git a/public/react/src/modules/question/component/SingleEditor.js b/public/react/src/modules/question/component/SingleEditor.js index 6762626f7..142999632 100644 --- a/public/react/src/modules/question/component/SingleEditor.js +++ b/public/react/src/modules/question/component/SingleEditor.js @@ -322,7 +322,7 @@ class SingleEditor extends Component{ {/* */} this.onOptionClick(index)} style={{flex: '0 0 38px'}}> - +
{tagArray[index]}
diff --git a/public/react/src/modules/question/comthetestpaper/Comthetestpapers.js b/public/react/src/modules/question/comthetestpaper/Comthetestpapers.js index e10460d48..4f6099202 100644 --- a/public/react/src/modules/question/comthetestpaper/Comthetestpapers.js +++ b/public/react/src/modules/question/comthetestpaper/Comthetestpapers.js @@ -375,8 +375,6 @@ class Comthetestpapers extends Component { addonAfteronelens3=String(addonAfterthree).length; } - console.log("Comthetestpapers.js"); - console.log(this.props); return (
@@ -537,27 +535,27 @@ class Comthetestpapers extends Component { 分钟
-
- - {getFieldDecorator("rbtx", - { - rules: [{required: true, message: '请选择题型'}], - } - )( - - - - )} - -
+ {/*
*/} + {/**/} + {/* {getFieldDecorator("rbtx",*/} + {/* {*/} + {/* rules: [{required: true, message: '请选择题型'}],*/} + {/* }*/} + {/* )(*/} + {/* */} + {/* */} + {/* */} + {/* )}*/} + {/**/} + {/*
*/} +
+ { + NewknTypedel? + this.NewknTypedeldel(bool)} + NewknTypedeltyoedel={(value)=>this.NewknTypedeltyoedel(value)} + > + :"" + } + +
+ + + {getFieldDecorator("rbkc", + { + rules: [{required: true, message: '请选择课程'}], + } + )( +
+ + + + +
+ )} +
+ + {getFieldDecorator("rbzsd" + )( +
+ + + + + + + this.NewknTypedeldel(true)}/> + + +
+ + {this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => { + return ( +
+

{object.name}

+ + this.deletesobject(object, index)} src={getImageUrl("/images/educoder/bzucha.png")}/> + +
+ ) + })} + + + + +
+
+ )} +
+ + +
+ +
+ + {getFieldDecorator('classroom', { + rules: [{required: true, message: "不能为空"}], + })( + + + + + )} +
+
+
+ +
+ +
+ + + {getFieldDecorator('kssc')()} + 分钟 + +
+ + + +
+ + {getFieldDecorator('rbnd', + { + rules: [{required: true, message: '请选择难度'}], + } + )( + + 简单 + 适中 + 困难 + , + )} + +
+
+
+ + ) + + } + + +} + +const Comthetestpapersts = Form.create({name: 'Comthetestpaperst'})(Comthetestpaperst); +export default Comthetestpapersts; diff --git a/public/react/src/modules/testpaper/Paperlibraryseeid.js b/public/react/src/modules/testpaper/Paperlibraryseeid.js new file mode 100644 index 000000000..3df404e32 --- /dev/null +++ b/public/react/src/modules/testpaper/Paperlibraryseeid.js @@ -0,0 +1,185 @@ +import React, {Component} from "react"; +import {Link, NavLink} from 'react-router-dom'; +import {WordsBtn, ActionBtn, SnackbarHOC, getImageUrl} from 'educoder'; +import axios from 'axios'; +import { + notification, + Spin, + Table, + Pagination, + Drawer, + Input, + Button, + Breadcrumb +} from "antd"; +import {TPMIndexHOC} from "../tpm/TPMIndexHOC"; +import NoneData from './component/NoneData'; +import './testioncss/testioncss.css'; +import '../tpm/newshixuns/css/Newshixuns.css'; +import Bottomsubmit from "../../modules/modals/Bottomsubmit"; +import Seeoagertit from "./component/Seeoagertit"; +import Paperlibraryseeid_item from './component/Paperlibraryseeid_item'; +//人工组卷预览 +class Paperlibraryseeid extends Component { + constructor(props) { + super(props); + this.contentMdRef = React.createRef(); + this.state = { + paperlibrartdata:[], + + + } + + + } + + //初始化 + componentDidMount() { + console.log("Paperlibraryseeid"); + this.getdata(); + + + } + + + getdata = () => { + let urls = `/examination_banks/${this.props.match.params.id}.json`; + axios.get(urls).then((response) => { + if (response) { + this.setState({ + paperlibrartdata: response.data, + }) + } + }); + + } + + + //跳转道描点的地方 + scrollToAnchor = (anchorName) => { + try { + if (anchorName) { + // 找到锚点 + let anchorElement = document.getElementById(anchorName); + // 如果对应id的锚点存在,就跳转到锚点 + if (anchorElement) { + anchorElement.scrollIntoView(); + } + } + } catch (e) { + + } + + } + preservation = () => { + //保存试卷 + + + + + } + + + setitem_type = (item_type) => { + + + } + + setCohetepaperbool =(bool)=>{ + + } + getcontentMdRef = (Ref) => { + this.contentMdRef = Ref; + } + render() { + let {paperlibrartdata} = this.state; + const params = this.props && this.props.match && this.props.match.params; + // //console.log(params); + return ( +
+
+ + +
+
+ + 试题库 + 公告试题库 + 试卷查看 + +
+ +
+ {paperlibrartdata&&paperlibrartdata.exam&&paperlibrartdata.exam.name} +
+ +
+ + + + + + + this.getdata()} + single_questions={paperlibrartdata&&paperlibrartdata.single_questions&&paperlibrartdata.single_questions.questions.length>0?paperlibrartdata.single_questions:null} + multiple_questions={paperlibrartdata&&paperlibrartdata.multiple_questions + &&paperlibrartdata.multiple_questions.questions.length>0?paperlibrartdata.multiple_questions:null + } + judgement_questions={paperlibrartdata&&paperlibrartdata.judgement_questions + &&paperlibrartdata.judgement_questions.questions.length>0?paperlibrartdata.judgement_questions:null + } + program_questions={paperlibrartdata&&paperlibrartdata.program_questions + &&paperlibrartdata.program_questions.questions.length>0?paperlibrartdata.program_questions:null + } + > + + + + + + + + + + + +
+ + + + + +
+ + +
+ + this.setCohetepaperbool(bool)} + onSubmits={() => this.preservation()} url={'/paperlibrary'}> +
+ ) + + } + + +} + +export default SnackbarHOC()(TPMIndexHOC(Paperlibraryseeid)); + + diff --git a/public/react/src/modules/testpaper/component/Contentpart.js b/public/react/src/modules/testpaper/component/Contentpart.js index 9e9cd246a..18b10823d 100644 --- a/public/react/src/modules/testpaper/component/Contentpart.js +++ b/public/react/src/modules/testpaper/component/Contentpart.js @@ -166,7 +166,6 @@ class Contentpart extends Component {
{ diff --git a/public/react/src/modules/testpaper/component/Listjihe.js b/public/react/src/modules/testpaper/component/Listjihe.js index 4640dba60..1b347ee6a 100644 --- a/public/react/src/modules/testpaper/component/Listjihe.js +++ b/public/react/src/modules/testpaper/component/Listjihe.js @@ -57,7 +57,9 @@ class Listjihe extends Component { } - + gotoseesj=(id)=>{ + this.props.history.push(`/paperlibrary/see/${id}`); + } render() { @@ -72,13 +74,13 @@ class Listjihe extends Component { const quotess =items&&items.quotes&&items.quotes; const authors=items&&items.author&&items.author.name; return ( -
+
-

{names}

+

this.gotoseesj(items.id)}>{names}

试题数:{question_counts}

总分:{total_scores}

@@ -108,17 +110,17 @@ class Listjihe extends Component { { defaultActiveKey===0||defaultActiveKey==="0"?
-

this.props.showmodelysl(items.id)}> +

this.props.showmodelysl(items.id)}> 删除

-

+

编辑

-

this.props.showmodels(items.id)} > +

this.props.showmodels(items.id)} > 公开

diff --git a/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js b/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js new file mode 100644 index 000000000..73a03c29d --- /dev/null +++ b/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js @@ -0,0 +1,704 @@ +import React, {Component} from "react"; +import {Link, NavLink} from 'react-router-dom'; +import {WordsBtn, ActionBtn, getImageUrl} from 'educoder'; +import {DragDropContext, Draggable, Droppable} from 'react-beautiful-dnd'; +import axios from 'axios'; +import { + notification, + Spin, + Table, + Pagination, + Drawer, + Input, + Button, + Breadcrumb +} from "antd"; +import '../testioncss/testioncss.css'; +import '../../tpm/newshixuns/css/Newshixuns.css'; +import Paperlibraryseeid_items from './Paperlibraryseeid_items'; + + +const reorder = (list, startIndex, endIndex) => { + const result = Array.from(list); + const [removed] = result.splice(startIndex, 1); + result.splice(endIndex, 0, removed); + + return result; +}; + +class Paperreview_item extends Component { + constructor(props) { + super(props); + + this.state = { + questions: 0, + totalscore: 0, + total: 0, + modalsTypedel: false, + modalsTypey: false, + modalsTypeys: false, + modalsTypedels: false, + titilesm: "", + titilesms: "", + singlebool: false, + multiplebool: false, + judgmentbool: false, + programbool: false, + paperreviewsingleindex: "无", + set_scoreid:null, + item_bank_id:null + } + + } + + //初始化 + componentDidMount() { + + + } + + + preservation = () => { + + + } + + + setitem_type = (item_type) => { + + + } + onDragEnd = (result) => { + + const ids = this.props.single_questions.questions[result.source.index].id; + const positions = this.props.single_questions.questions[result.destination.index].position; + + const url = `/examination_items/${ids}/adjust_position.json`; + var data = { + position: positions + } + axios.post(url, data) + .then((result) => { + if (result.data.status == 0) { + this.props.showNotification(`拖动成功`); + this.props.getdata(); + } + }).catch((error) => { + console.log(error); + }) + } + + onDragEnds = (result) => { + + const ids = this.props.multiple_questions.questions[result.source.index].id; + const positions = this.props.multiple_questions.questions[result.destination.index].position; + const url = `/examination_items/${ids}/adjust_position.json`; + var data = { + position: positions + } + axios.post(url, data) + .then((result) => { + if (result.data.status == 0) { + this.props.showNotification(`拖动成功`); + this.props.getdata(); + } + }).catch((error) => { + console.log(error); + }) + + + } + + + onDragEndss = (result) => { + const ids = this.props.judgement_questions.questions[result.source.index].id; + const positions = this.props.judgement_questions.questions[result.destination.index].position; + const url = `/examination_items/${ids}/adjust_position.json`; + var data = { + position: positions + } + axios.post(url, data) + .then((result) => { + debugger + if (result.data.status == 0) { + this.props.showNotification(`拖动成功`); + this.props.getdata(); + } + }).catch((error) => { + console.log(error); + }) + + } + + onDragEndsss = (result) => { + + const ids = this.props.judgement_questions.questions[result.source.index].id; + const positions = this.props.judgement_questions.questions[result.destination.index].position; + const url = `/examination_items/${ids}/adjust_position.json`; + var data = { + position: positions + } + axios.post(url, data) + .then((result) => { + if (result.data.status == 0) { + this.props.showNotification(`拖动成功`); + this.props.getdata(); + } + }).catch((error) => { + console.log(error); + }) + + } + Singlemagazine = (name, bool) => { + if (bool === true) { + this.setState({ + modalsTypey: true, + titilesm: name + }) + } else { + this.setState({ + modalsTypey: false, + titilesm: "" + }) + } + + + } + + setDownloady = (fenshu) => { + const url = "/item_baskets/batch_set_score.json"; + var data = { + score: fenshu, + item_type: this.state.titilesm === "单选题" ? "SINGLE" : this.state.titilesm === "多选题" ? "MULTIPLE" : this.state.titilesm === "判断题" ? "JUDGMENT" : this.state.titilesm === "编程题" ? "PROGRAM" : '', + + } + axios.post(url, data) + .then((result) => { + if (result.data.status == 0) { + this.props.showNotification(`调分成功`); + this.props.getdata({}); + this.Singlemagazine("", false); + } + }).catch((error) => { + console.log(error); + }) + } + + setDownloadys=(value)=>{ + const url = `/item_baskets/${this.state.set_scoreid}/set_score.json`; + var data = { + score: value, + } + axios.post(url, data) + .then((result) => { + if (result.data.status == 0) { + this.props.showNotification(`调分成功`); + this.props.getdata({}); + this.Singlemagazines(false); + } + }).catch((error) => { + console.log(error); + }) + } + + Singlemagazines=(bool,id,name)=>{ + if(bool===true){ + this.setState({ + set_scoreid:id, + modalsTypeys:bool, + titilesm: name + }) + }else{ + this.setState({ + modalsTypeys:bool, + set_scoreid:null, + titilesm: null + }) + } + + + } + setmodalsTypedel = (bool, type, names) => { + if (type === 1) { + this.setState({ + modalsTypedel: bool, + titilesms: names + }) + } else { + this.setState({ + modalsTypedel: bool, + titilesms: names + }) + const url = `/item_baskets/delete_item_type.json`; + axios.delete((url), { + data: { + item_type: names + } + }) + .then((response) => { + if (response.data.status == 0) { + this.props.showNotification('大题删除成功'); + this.props.getdata({}); + this.setState({ + titilesms: "" + }) + } + }) + .catch(function (error) { + //console.log(error); + }); + + + + } + + } + + setmodalsTypedels = (bool, type) => { + if (type === 1) { + this.setState({ + modalsTypedels: bool, + }) + }else { + //确定 + const url = `/item_baskets/${this.state.item_bank_id}.json`; + axios.delete((url)) + .then((response) => { + if (response.data.status == 0) { + this.props.showNotification('试题删除成功'); + this.props.getdata({}); + } + }) + .catch(function (error) { + + }); + + this.setState({ + modalsTypedels: bool, + }) + } + + } + + showsetmodalsTypedels=(id,bool,type)=>{ + debugger + this.setState({ + item_bank_id:id, + }) + this.setmodalsTypedels(bool,type); + } + + hideparagraph = (name) => { + console.log("hideparagraph"); + + } + + hideparagraphs = () => { + this.setState({ + singlebool: false, + multiplebool: false, + judgmentbool: false, + programbool: false, + }) + } + showparagraph = (name) => { + console.log("showparagraph"); + if (name === "SINGLE") { + this.setState({ + singlebool: true, + multiplebool: false, + judgmentbool: false, + programbool: false, + paperreviewsingleindex:"无", + paperreviewsinglename:"", + + }) + + } else if (name === "MULTIPLE") { + this.setState({ + singlebool: false, + multiplebool: true, + judgmentbool: false, + programbool: false, + paperreviewsingleindex:"无", + paperreviewsinglename:"", + + + }) + } else if (name === "JUDGMENT") { + this.setState({ + singlebool: false, + multiplebool: false, + judgmentbool: true, + programbool: false, + paperreviewsingleindex:"无", + paperreviewsinglename:"", + + }) + } else if (name === "PROGRAM") { + this.setState({ + singlebool: false, + multiplebool: false, + judgmentbool: false, + programbool: true, + paperreviewsingleindex:"无", + paperreviewsinglename:"", + + }) + + } + } + + jixuxuantioncli = () => { + this.props.history.replace("/question"); + } + + showparagraphs = (e,name) => { + console.log("showparagraphs"); + console.log(e); + this.setState({ + paperreviewsingleindex: e, + paperreviewsinglename:name, + singlebool: false, + multiplebool: false, + judgmentbool: false, + programbool: false, + }) + } + + Setscore=(id)=>{ + + + } + + + + render() { + let { + questions, totalscore, total, modalsTypedel, modalsTypey, modalsTypedels, + singlebool, + multiplebool, + judgmentbool, + programbool, + paperreviewsingleindex, + modalsTypeys + } = this.state; + let {single_questions, multiple_questions, judgement_questions, program_questions, all_score} = this.props; + return ( +
+ +
+ + {/*单选题*/} + { + single_questions && single_questions ? +
+ +
+
+

一、单选题

(共{single_questions && single_questions.questions_count}题;共{single_questions && single_questions.questions_score}分)

+
+ + + + {(provided, snapshot) => ( +
+ { + single_questions && single_questions.questions.map((object, index) => { + return ( + + {(provided, snapshot) => ( +
+ + + + + + +
+ )} +
+ ) + }) + + } +
+ )} +
+
+ + +
+
+ + : "" + } + + + { + multiple_questions && multiple_questions ? +
+
+
+

{single_questions === null ? "一" : "二"}、多选题

+

(共{multiple_questions && multiple_questions.questions_count}题;共{multiple_questions && multiple_questions.questions_score}分)

+
+ + + + + + {(provided, snapshot) => ( +
+ { + multiple_questions && multiple_questions.questions.map((object, index) => { + return ( + + {(provided, snapshot) => ( +
+ + + + + +
+ )} +
+ ) + }) + + } +
+ )} +
+
+ + +
+
+ : + "" + } + + { + judgement_questions && judgement_questions ? +
+
+
+

{single_questions === null && multiple_questions === null ? "一" : single_questions === null && multiple_questions !== null ? "二" + : single_questions !== null && multiple_questions === null ? "二" + : "三"}、判断题

(共{judgement_questions && judgement_questions.questions_count}题;共{judgement_questions && judgement_questions.questions_score}分)

+
+ + + + + {(provided, snapshot) => ( +
+ { + judgement_questions && judgement_questions.questions.map((object, index) => { + return ( + + {(provided, snapshot) => ( +
+ + + + + +
+ )} +
+ ) + }) + + } +
+ )} +
+
+
+
+ : "" + } + + + { + program_questions && program_questions ? +
+ +
+
+

+ {single_questions === null && multiple_questions === null && program_questions === null ? "一" + : single_questions === null && multiple_questions === null && program_questions !== null ? "二" + : single_questions !== null && multiple_questions === null && program_questions === null ? "二" + : single_questions === null && multiple_questions !== null && program_questions === null ? "二" + : single_questions !== null && multiple_questions !== null && program_questions === null ? "三" + : single_questions === null && multiple_questions !== null && program_questions !== null ? "三" + : single_questions !== null && multiple_questions == null && program_questions !== null ? "三" : + "四"} + 、编程题

(共{program_questions && program_questions.questions_count}题;共{program_questions && program_questions.questions_score}分)

+
+ + + + + {(provided, snapshot) => ( +
+ { + program_questions && program_questions.questions.map((object, index) => { + return ( + + {(provided, snapshot) => ( +
+ + + + +
+ )} +
+ ) + }) + + } +
+ )} +
+
+ + +
+
+ : + "" + } + + +
+
+ ) + + } + + +} + +export default Paperreview_item + + diff --git a/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js b/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js new file mode 100644 index 000000000..83c3dbcb8 --- /dev/null +++ b/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js @@ -0,0 +1,171 @@ +import React, {Component} from "react"; +import {Link, NavLink} from 'react-router-dom'; +import {WordsBtn, ActionBtn, getImageUrl, markdownToHTML} from 'educoder'; +import axios from 'axios'; +import { + notification, + Spin, + Table, + Pagination, + Drawer, + Input, + Button, + Breadcrumb, + Radio +} from "antd"; +import '../testioncss/testioncss.css'; +import '../../tpm/newshixuns/css/Newshixuns.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 Paperlibraryseeid_items extends Component { + constructor(props) { + super(props); + + this.state = { + questions: 0, + totalscore: 0, + total: 0, + } + + } + + //初始化 + componentDidMount() { + + + } + + + getdata = (data) => { + + } + + preservation = () => { + + + } + + + setitem_type = (item_type) => { + + + } + showparagraph = (indexx) => { + + + } + Singlemagaziness = () => { + + } + + render() { + let {questions, totalscore, total, items} = this.state; + let {objectsingle, indexx, paperreviewsingleindex, indexxy,name} = this.props; + console.log("objectsingle"); + console.log(objectsingle); + return ( +
+ + {/*顶部*/} +
+
+

{indexx}

、 +
+ + { + this.props.typenames==="PROGRAM"? +
+
+ : +
+
+ + } +
+ {/*内容*/} +
+ + + { + objectsingle.item_type === "JUDGMENT" ? +

+ { + objectsingle === undefined || objectsingle === null ? "" : objectsingle.choices.map((object, index) => { + return ( +

+ + {object.choice_text} + +

+ ) + }) + } +

+ : + objectsingle.item_type === "PROGRAM" ? +

+

+

+

+

+ : +

+ { + objectsingle === undefined || objectsingle === null ? "" : objectsingle.choices.map((object, index) => { + return ( +

+ {tagArray[index]} +

+

+ ) + }) + } +

+ } + + +
+ + +
+ ) + + } + + +} + +export default Paperlibraryseeid_items + + diff --git a/public/react/src/modules/testpaper/component/Seeoagertit.js b/public/react/src/modules/testpaper/component/Seeoagertit.js new file mode 100644 index 000000000..6a835ce98 --- /dev/null +++ b/public/react/src/modules/testpaper/component/Seeoagertit.js @@ -0,0 +1,56 @@ +import React, {Component} from "react"; +import {Link, NavLink} from 'react-router-dom'; +import {WordsBtn, ActionBtn,SnackbarHOC,getImageUrl} from 'educoder'; +import axios from 'axios'; +import { + notification, + Spin, + Table, + Pagination, + Radio, + Checkbox +} from "antd"; +import './../testioncss/testioncss.css'; +class Seeoagertit extends Component { + constructor(props) { + super(props); + this.state = { + page:1, + } + } + //初始化 + componentDidMount(){ + + + } + onChange=(e)=> { + } + + render() { + + return ( + +
+
+
+

题数:{this.props.all_score}

+

总分:{this.props.all_questions_count}

+
+
+
+
+
拖动试题可调整排序
+ + +
+
+ ) + + } + + + +} +export default Seeoagertit ; diff --git a/public/react/src/modules/testpaper/testioncss/testioncss.css b/public/react/src/modules/testpaper/testioncss/testioncss.css index 181334981..d21f07cb7 100644 --- a/public/react/src/modules/testpaper/testioncss/testioncss.css +++ b/public/react/src/modules/testpaper/testioncss/testioncss.css @@ -405,6 +405,9 @@ .xiaoshout{ cursor:default; } +.shubiao{ + cursor:default; +} .mt40{ margin-top: 40px; } @@ -843,3 +846,28 @@ .ml37{ margin-left: 37px; } +.listjihecolor:hover{ + background: #F9F9F9; + background-color: #F9F9F9; +} + +.seesjtit{ + height:27px; + font-size:19px; + color:#333333; + line-height:27px; +} +.mt16{ + margin-top: 16px; +} +.mb20{ + margin-bottom: 20px; +} +.fudonxianshi{ + position: relative; +} + +.fudonxianshis{ + position:absolute; + z-index: 700; +} diff --git a/public/react/src/modules/tpm/shixuns/ShixunSearchBar.js b/public/react/src/modules/tpm/shixuns/ShixunSearchBar.js index 65f78502a..1a23bd94e 100644 --- a/public/react/src/modules/tpm/shixuns/ShixunSearchBar.js +++ b/public/react/src/modules/tpm/shixuns/ShixunSearchBar.js @@ -115,8 +115,6 @@ shixunsearchAll = (e) => { //选择Tab页详情 getshixunchildValue = (e) => { - - debugger let id = e.target.name; let newid=e.target.id; let list=[{'tag_level':2},{'tag_id':id}];