Merge branch 'dev_item_bank' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_new_shixunsrepository

dev_new_shixunsrepository
杨树林 5 years ago
commit 9b404b68fd

@ -97,7 +97,7 @@ class NewMyShixunModel extends Component {
}
setsub_discipline_id=(sub_discipline_id)=>{
setsub_discipline_id=(discipline_id,sub_discipline_id)=>{
this.setState({
sub_discipline_id:sub_discipline_id,
tag_discipline_id:null,
@ -107,7 +107,7 @@ class NewMyShixunModel extends Component {
oj_status:null
})
var data = {
discipline_id:this.state.discipline_id,
discipline_id:discipline_id,
sub_discipline_id:sub_discipline_id,
tag_discipline_id:null,
public: this.state.defaultActiveKey,
@ -161,8 +161,8 @@ class NewMyShixunModel extends Component {
this.callback(defaultActiveKeys);
let url = `/users/get_navigation_info.json`;
axios.get(url, {}).then((response) => {
// ////console.log("开始请求/get_navigation_info.json");
// ////console.log(response);
// //////console.log("开始请求/get_navigation_info.json");
// //////console.log(response);
if (response != undefined) {
if (response.status === 200) {
this.setState({
@ -180,8 +180,8 @@ class NewMyShixunModel extends Component {
axios.get(urls, {params: {
source:"question"
}}).then((response) => {
console.log("Questiondisciplines");
console.log(response.data);
//console.log("Questiondisciplines");
//console.log(response.data);
if (response) {
this.setState({
disciplinesdata: response.data.disciplines,
@ -254,15 +254,15 @@ class NewMyShixunModel extends Component {
} else {
}
////console.log("item_banks");
////console.log(response);
//////console.log("item_banks");
//////console.log(response);
this.setState({
Contentdata: response.data,
items_count: response.data.items_count,
})
this.getdataslen(response.data.items);
}).catch((error) => {
////console.log(error)
//////console.log(error)
this.setState({
booljupyterurls:false,
})
@ -288,8 +288,8 @@ class NewMyShixunModel extends Component {
} else {
}
////console.log("item_banks");
////console.log(response);
//////console.log("item_banks");
//////console.log(response);
this.setState({
Contentdata: response.data,
items_count: response.data.items_count,
@ -590,7 +590,7 @@ class NewMyShixunModel extends Component {
}
})
.catch(function (error) {
//console.log(error);
////console.log(error);
});
}
publicopentimu = (id) => {
@ -616,7 +616,7 @@ class NewMyShixunModel extends Component {
this.getdata(data);
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}
@ -625,8 +625,8 @@ class NewMyShixunModel extends Component {
// const url = "/item_baskets/basket_list.json";
// axios.get(url)
// .then((result) => {
// // //console.log("getbasket_listdata");
// // //console.log(result.data);
// // ////console.log("getbasket_listdata");
// // ////console.log(result.data);
// this.setState({
// completion_questions_count: result.data.completion_questions_count,
// judgement_questions_count: result.data.judgement_questions_count,
@ -638,7 +638,7 @@ class NewMyShixunModel extends Component {
// })
//
// }).catch((error) => {
// // //console.log(error);
// // ////console.log(error);
// this.setState({
// completion_questions_count: 0,
// judgement_questions_count: 0,
@ -687,7 +687,7 @@ class NewMyShixunModel extends Component {
// })
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}
// 撤销
@ -715,7 +715,7 @@ class NewMyShixunModel extends Component {
this.getbasket_listdata();
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}else{
url=`/examination_banks/${this.props.exam_id}/revoke_item.json`;
@ -741,7 +741,7 @@ class NewMyShixunModel extends Component {
this.getbasket_listdata();
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}
@ -815,7 +815,7 @@ class NewMyShixunModel extends Component {
}
})
.catch(function (error) {
//console.log(error);
////console.log(error);
});
}

@ -67,8 +67,8 @@ class Paperreview extends Component {
//初始化
componentDidMount() {
console.log("Paperreview.js");
console.log(this.props.match.params);
//console.log("Paperreview.js");
//console.log(this.props.match.params);
this.setState({
artificialtype:this.props.match.params.type
})
@ -185,7 +185,7 @@ class Paperreview extends Component {
}
}).catch((error) => {
////console.log(error)
//////console.log(error)
this.setState({
booljupyterurls: false,
})
@ -238,7 +238,7 @@ class Paperreview extends Component {
this.props.history.replace('/paperlibrary');
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}else{
@ -321,12 +321,12 @@ class Paperreview extends Component {
axios.post(url, data)
.then((result) => {
if (result.data.status == 0) {
console.log(result);
//console.log(result);
var data = {}
this.getdata(data);
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
//换题
@ -338,12 +338,12 @@ class Paperreview extends Component {
axios.post(url, data)
.then((result) => {
if (result.data.status == 0) {
console.log(result);
//console.log(result);
var data = {}
this.getdata(data);
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -361,7 +361,7 @@ class Paperreview extends Component {
render() {
let {page, limit, count, Headertop, visible, placement, modalsType, item_type,artificialtype,Cohetepaperbool,newmyshixunmodelbool,Intelligentformation} = this.state;
const params = this.props && this.props.match && this.props.match.params;
// //console.log(params);
// ////console.log(params);
return (
<div>
<div id={"Itembankstopid"} className="newMain clearfix intermediatecenter "

@ -95,7 +95,7 @@ class Paperreview_item extends Component {
this.props.getdata({});
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -114,7 +114,7 @@ class Paperreview_item extends Component {
this.props.getdata({});
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
@ -135,7 +135,7 @@ class Paperreview_item extends Component {
this.props.getdata({});
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -155,7 +155,7 @@ class Paperreview_item extends Component {
this.props.getdata({});
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -190,7 +190,7 @@ class Paperreview_item extends Component {
this.Singlemagazine("", false);
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -207,7 +207,7 @@ class Paperreview_item extends Component {
this.Singlemagazines(false);
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -255,7 +255,7 @@ class Paperreview_item extends Component {
}
})
.catch(function (error) {
//console.log(error);
////console.log(error);
});
@ -299,7 +299,7 @@ class Paperreview_item extends Component {
}
hideparagraph = (name) => {
console.log("hideparagraph");
//console.log("hideparagraph");
}
@ -312,7 +312,7 @@ class Paperreview_item extends Component {
})
}
showparagraph = (name) => {
console.log("showparagraph");
//console.log("showparagraph");
if (name === "SINGLE") {
this.setState({
singlebool: true,
@ -364,8 +364,8 @@ class Paperreview_item extends Component {
}
showparagraphs = (e,name) => {
// console.log("showparagraphs");
// console.log(e);
// //console.log("showparagraphs");
// //console.log(e);
this.setState({
paperreviewsingleindex: e,
paperreviewsinglename:name,

@ -58,9 +58,9 @@ class Paperreview_items extends Component {
render() {
let {paperreviewsingleindex,paperreviewsinglename,typenames,indexs,object,typenamesn}=this.props;
// console.log(object);
// console.log("Paperreview_items");
// console.log(object.item_id);
// //console.log(object);
// //console.log("Paperreview_items");
// //console.log(object.item_id);
return (
<div>
{

@ -59,7 +59,7 @@ class Paperreview_judgment extends Component {
render() {
let {questions,totalscore,total,items} = this.state;
// //console.log(params);
// ////console.log(params);
return (
<div className="w100s borderwdswuh mt25 mb20 " style={{
minHeight: "114px",

@ -59,7 +59,7 @@ class Paperreview_multlple extends Component {
render() {
let {questions,totalscore,total,items} = this.state;
// //console.log(params);
// ////console.log(params);
return (
<div className="w100s borderwdswuh mt25 mb20 " style={{
minHeight: "114px",

@ -59,7 +59,7 @@ class Paperreview_program extends Component {
render() {
let {questions,totalscore,total,items} = this.state;
// //console.log(params);
// ////console.log(params);
return (
<div className="w100s borderwdswuh mt25 mb20 " style={{
minHeight: "114px",

@ -99,7 +99,8 @@ class Paperreview_single extends Component {
<style>{
`
.programquill .ql-editor{
padding: 0px;
padding-left: 0px !important;
padding-top: 0px !important;
}
.programquill .ql-editor p{
@ -107,7 +108,8 @@ class Paperreview_single extends Component {
}
.programquills .ql-editor{
padding: 0px;
padding-left: 0px !important;
padding-top: 0px !important;
}
.programquills .ql-editor p{
@ -142,7 +144,9 @@ class Paperreview_single extends Component {
{
objectsingle.item_type==="PROGRAM"?
<div className="w100s sortinxdirection">
<div className=" tites lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word"}}
<div className=" tites lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word",
minWidth:"32px"
}}
>
({objectsingle.score})
</div>
@ -153,7 +157,9 @@ class Paperreview_single extends Component {
</div>
:
<div className="w100s sortinxdirection">
<div className="tites lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word"}}
<div className="tites lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word",
minWidth:"32px"
}}
>
({objectsingle.score})
</div>
@ -180,7 +186,7 @@ class Paperreview_single extends Component {
objectsingle === undefined || objectsingle === null ? "" : objectsingle.choices.map((object, index) => {
return (
<p className={index === 1 ? "sortinxdirection ml10" : "sortinxdirection "}>
<Radio disabled={false}>
<Radio disabled={true}>
{object.choice_text}
</Radio>
</p>

@ -113,7 +113,7 @@ class Question extends Component {
}
setsub_discipline_id=(sub_discipline_id)=>{
setsub_discipline_id=(discipline_id,sub_discipline_id)=>{
this.setState({
sub_discipline_id:sub_discipline_id,
tag_discipline_id:null,
@ -123,7 +123,7 @@ class Question extends Component {
oj_status:null
})
var data = {
discipline_id:this.state.discipline_id,
discipline_id:discipline_id,
sub_discipline_id:sub_discipline_id,
tag_discipline_id:null,
public: this.state.defaultActiveKey,
@ -179,8 +179,8 @@ class Question extends Component {
axios.get(urls, {params: {
source:"question"
}}).then((response) => {
console.log("Questiondisciplines");
console.log(response.data);
//console.log("Questiondisciplines");
//console.log(response.data);
if (response) {
this.setState({
disciplinesdata: response.data.disciplines,
@ -234,15 +234,15 @@ class Question extends Component {
} else {
}
////console.log("item_banks");
////console.log(response);
//////console.log("item_banks");
//////console.log(response);
this.setState({
Contentdata: response.data,
items_count: response.data.items_count,
})
this.getdataslen(response.data.items);
}).catch((error) => {
////console.log(error)
//////console.log(error)
this.setState({
booljupyterurls:false,
})
@ -268,8 +268,8 @@ class Question extends Component {
} else {
}
////console.log("item_banks");
////console.log(response);
//////console.log("item_banks");
//////console.log(response);
this.setState({
Contentdata: response.data,
items_count: response.data.items_count,
@ -566,7 +566,7 @@ class Question extends Component {
}
})
.catch(function (error) {
//console.log(error);
////console.log(error);
});
}
publicopentimu = (id) => {
@ -590,7 +590,7 @@ class Question extends Component {
this.getdata(data);
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}
@ -599,8 +599,8 @@ class Question extends Component {
const url = "/item_baskets/basket_list.json";
axios.get(url)
.then((result) => {
// //console.log("getbasket_listdata");
// //console.log(result.data);
// ////console.log("getbasket_listdata");
// ////console.log(result.data);
this.setState({
completion_questions_count: result.data.completion_questions_count,
judgement_questions_count: result.data.judgement_questions_count,
@ -612,7 +612,7 @@ class Question extends Component {
})
}).catch((error) => {
// //console.log(error);
// ////console.log(error);
this.setState({
completion_questions_count: 0,
judgement_questions_count: 0,
@ -654,7 +654,7 @@ class Question extends Component {
// })
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}
// 撤销
@ -681,7 +681,7 @@ class Question extends Component {
this.getbasket_listdata();
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}
//全选试题库
@ -750,7 +750,7 @@ class Question extends Component {
}
})
.catch(function (error) {
//console.log(error);
////console.log(error);
});
}
@ -902,7 +902,7 @@ class Question extends Component {
setdifficulty={(e) => this.setdifficulty(e)}
setitem_types={(e) => this.setitem_types(e)}
setdiscipline_id={(e)=>this.setdiscipline_id(e)}
setsub_discipline_id={(e)=>this.setsub_discipline_id(e)}
setsub_discipline_id={(e,id)=>this.setsub_discipline_id(e,id)}
settag_discipline_id={(e)=>this.settag_discipline_id(e)}
/>
{/*头部*/}

@ -52,8 +52,8 @@ class Questionitem_banks extends Component {
// axios.get(url, {
//
// }).then((response) => {
// // //////console.log("开始请求/get_navigation_info.json");
// // //////console.log(response);
// // ////////console.log("开始请求/get_navigation_info.json");
// // ////////console.log(response);
// if(response!=undefined){
// if(response.status===200){
// this.setState({
@ -80,15 +80,15 @@ class Questionitem_banks extends Component {
} else {
}
//////console.log("item_banks");
//console.log("Questionitem_banks");
//console.log(response.data);
////////console.log("item_banks");
////console.log("Questionitem_banks");
////console.log(response.data);
this.setState({
item_banksedit: response.data,
})
}).catch((error) => {
//////console.log(error)
////////console.log(error)
});
@ -173,10 +173,10 @@ class Questionitem_banks extends Component {
// }else{
//
// }
// //////console.log("item_banks");
// //////console.log(response);
// ////////console.log("item_banks");
// ////////console.log(response);
// }).catch((error) => {
// //////console.log(error)
// ////////console.log(error)
//
// });
}
@ -239,7 +239,7 @@ class Questionitem_banks extends Component {
if (this.state.item_type === "SINGLE") {
if (this.answerMdRef != null) {
//单选题
// //console.log(this.answerMdRef.onSave());
// ////console.log(this.answerMdRef.onSave());
if (this.answerMdRef.onSave().length === 0) {
return;
@ -287,7 +287,7 @@ class Questionitem_banks extends Component {
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
} else {
axios.put(url, data)
@ -299,7 +299,7 @@ class Questionitem_banks extends Component {
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}
@ -311,7 +311,7 @@ class Questionitem_banks extends Component {
if (this.state.item_type === "MULTIPLE") {
if (this.Choques != null) {
//多选题
// //console.log(this.Choques.onSave());
// ////console.log(this.Choques.onSave());
if (this.Choques.onSave().length === 0) {
return;
}
@ -319,8 +319,8 @@ class Questionitem_banks extends Component {
const choices = [];
// 1: [3]
// 2: (4) ["1", "2", "3", "4"]
//console.log("MULTIPLE");
//console.log(anserdata);
////console.log("MULTIPLE");
////console.log(anserdata);
for (var k = 0; k < anserdata[2].length; k++) {
var bool = false
@ -366,7 +366,7 @@ class Questionitem_banks extends Component {
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
} else {
@ -379,7 +379,7 @@ class Questionitem_banks extends Component {
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}
@ -390,7 +390,7 @@ class Questionitem_banks extends Component {
if (this.state.item_type === "JUDGMENT") {
if (this.Judquestio != null) {
//判断题
// //console.log(this.Judquestio.onSave());
// ////console.log(this.Judquestio.onSave());
if (this.Judquestio.onSave().length === 0) {
return;
}
@ -432,7 +432,7 @@ class Questionitem_banks extends Component {
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
} else {
@ -444,7 +444,7 @@ class Questionitem_banks extends Component {
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}
@ -482,7 +482,7 @@ class Questionitem_banks extends Component {
render() {
let {page, limit, count, Headertop, visible, placement, modalsType, item_type} = this.state;
const params = this.props && this.props.match && this.props.match.params;
// //console.log(params);
// ////console.log(params);
return (
<div>
<div id={"Itembankstopid"} className="newMain clearfix intermediatecenter "

@ -83,9 +83,9 @@ class ChoquesEditor extends Component{
addOption = () => {
const { question_choices, standard_answers } = this.state;
// ////console.log("addOption");
// ////console.log(question_choices);
// ////console.log(standard_answers);
// //////console.log("addOption");
// //////console.log(question_choices);
// //////console.log(standard_answers);
question_choices.push('')
@ -95,8 +95,8 @@ class ChoquesEditor extends Component{
deleteOption = (index) => {
let {question_choices}=this.state;
// ////console.log("deleteOption");
// ////console.log(question_choices);
// //////console.log("deleteOption");
// //////console.log(question_choices);
if(question_choices[index]===""){
// repeat code
@ -199,9 +199,9 @@ class ChoquesEditor extends Component{
}
}
componentDidUpdate(prevProps) {
//console.log("componentDidUpdate");
// //console.log(prevProps);
// //console.log(this.props.item_banksedit);
////console.log("componentDidUpdate");
// ////console.log(prevProps);
// ////console.log(this.props.item_banksedit);
if(prevProps.item_banksedit !== this.props.item_banksedit) {
this.setState({
@ -244,7 +244,7 @@ class ChoquesEditor extends Component{
}
let question_choices = this.state.question_choices.slice(0);
question_choices[index] = texts;
console.log(question_choices);
//console.log(question_choices);
this.setState({ question_choices });
}
@ -333,9 +333,9 @@ class ChoquesEditor extends Component{
// [true, false, true] -> [0, 2]
const answerTagArray = standard_answers.map((item, index) => { return item == true ? tagArray[index] : -1 }).filter(item => item != -1);
// ////console.log("xuanzheshijuan");
// ////console.log(answerTagArray);
// ////console.log(!exerciseIsPublish);
// //////console.log("xuanzheshijuan");
// //////console.log(answerTagArray);
// //////console.log(!exerciseIsPublish);
return(
<div className="padding20-30 signleEditor duoxuano" id={qNumber}>
@ -383,7 +383,7 @@ class ChoquesEditor extends Component{
{question_choices.map( (item, index) => {
const bg = standard_answers[index] ? 'check-option-bg' : ''
return <div className={index>0?"df optionRow mt15": "df optionRow"} >
return <div key={index} className={index>0?"df optionRow mt15": "df optionRow"} >
{/* 点击设置答案 */}
{/* TODO 加了tooltip后会丢失掉span的class */}
{/* <Tooltip title={standard_answers[index] ? '点击取消标准答案设置' : '点击设置为标准答案'}> */}

@ -135,8 +135,8 @@ class Contentpart extends Component {
);
console.log("Contentpart.js");
console.log(this.props.defaultActiveKey);
//console.log("Contentpart.js");
//console.log(this.props.defaultActiveKey);
return (
<div className=" clearfix mt25">

@ -20,9 +20,9 @@ class Contentquestionbank extends Component {
}
//初始化
componentDidMount(){
////console.log("componentDidMount");
////console.log(this.state);
////console.log(this.props);
//////console.log("componentDidMount");
//////console.log(this.state);
//////console.log(this.props);
// let homeworkid = this.props.match.params.homeworkid;
// let url = "/homework_commons/" + homeworkid + "/end_groups.json";
// axios.get(url).then((response) => {
@ -30,12 +30,12 @@ class Contentquestionbank extends Component {
// this.setState({})
// }
// }).catch((error) => {
// ////console.log(error)
// //////console.log(error)
// });
}
onChange=(e)=> {
////console.log(`checked = ${e.target.checked}`);
//////console.log(`checked = ${e.target.checked}`);
}
render() {

@ -77,8 +77,8 @@ class Headplugselection extends Component {
}
render() {
let {page,titlestting,titlesttings,titlesttingss}=this.state;
// console.log("Headplugselection");
// console.log(this.props.disciplinesdata);
// //console.log("Headplugselection");
// //console.log(this.props.disciplinesdata);
// disciplinesdatakc:kc,
// disciplinesdatazsd:zsd,
var kc=0;

@ -48,10 +48,7 @@ class Headplugselections extends Component {
componentDidMount(){
}
//
// setdiscipline_id={(e)=>this.setdiscipline_id(e)}
// setsub_discipline_id={(e)=>this.setsub_discipline_id(e)}
// settag_discipline_id={(e)=>this.settag_discipline_id(e)}
settitlestting=(name,id)=>{
//如果全部其他的选项重置
this.setState({
@ -87,8 +84,8 @@ class Headplugselections extends Component {
//获取方向
shixunsearchAll = (id) => {
console.log("获取方向");
console.log(id);
//console.log("获取方向");
//console.log(id);
if(id!=undefined){
this.setState({
shixunsearchAllvalue:id,
@ -130,16 +127,16 @@ class Headplugselections extends Component {
}
getshixunchildValue = (id,ids) => {
console.log("getshixunchildValue");
console.log(id);
debugger
// //console.log("getshixunchildValue");
// //console.log(id);
// debugger
if(id!=undefined ||ids!=undefined){
this.setState({
shixunsearchAllvalue:ids
})
try {
this.props.setsub_discipline_id(id);
this.props.setsub_discipline_id(ids,id);
}catch (e) {
}

@ -60,7 +60,7 @@ class IntelligentModel extends Component {
axios.post(url, data)
.then((result) => {
if (result.data.status == 0) {
console.log(result);
//console.log(result);
this.props.history.push(`/paperlibrary`);
}

@ -99,10 +99,10 @@ class Itembankstop extends Component {
options: this.props.disciplmy,
})
console.log("数据");
console.log(this.props);
//console.log("数据");
//console.log(this.props);
const parsed = queryString.parse(this.props.location.search);
console.log(parsed);
//console.log(parsed);
try {
if(JSON.stringify(parsed)==={}||JSON.stringify(parsed)==="{}"){
@ -156,7 +156,7 @@ class Itembankstop extends Component {
})
}
if(prevProps.disciplinesdata!== this.props.disciplinesdata){
console.log("新增开始加载了")
//console.log("新增开始加载了")
try {
if(this.props.item_banksedit.discipline &&this.props.item_banksedit.sub_discipline){
const didata = this.props.disciplinesdata;
@ -351,8 +351,8 @@ class Itembankstop extends Component {
this.props.form.validateFields((err, values) => {
data = []
if (!err) {
// ////console.log("获取的form 数据");
// ////console.log(values);
// //////console.log("获取的form 数据");
// //////console.log(values);
data.push({
rbnd: parseInt(values.rbnd)
})
@ -376,8 +376,8 @@ class Itembankstop extends Component {
e.preventDefault();
this.props.form.validateFields((err, values) => {
if (!err) {
////console.log("获取的form 数据");
////console.log(values);
//////console.log("获取的form 数据");
//////console.log(values);
}
@ -386,8 +386,8 @@ class Itembankstop extends Component {
}
handleFormLayoutChangeysl = (value) => {
//难度塞选
////console.log("难度塞选");
////console.log(value);
//////console.log("难度塞选");
//////console.log(value);
this.props.form.setFieldsValue({
rbnd: value+ "",
});
@ -398,8 +398,8 @@ class Itembankstop extends Component {
}
handleFormLayoutChange = (e) => {
//难度塞选
////console.log("难度塞选");
////console.log(value);
//////console.log("难度塞选");
//////console.log(value);
this.props.form.setFieldsValue({
rbnd: e.target.value + "",
});
@ -410,8 +410,8 @@ class Itembankstop extends Component {
}
handleFormkechen = (value) => {
//课程
////console.log("课程");
////console.log(value);
//////console.log("课程");
//////console.log(value);
if(this.state.Knowpoints.length>4){
this.props.showNotification(`知识点最多选择5个`);
return
@ -432,8 +432,8 @@ class Itembankstop extends Component {
const _result =[];
this.state.knowledgepoints.filter(item => {
if (this.state.Knowpoints.findIndex(t => t.id === item.id) === -1) {
// console.log("guonue");
// console.log(item);
// //console.log("guonue");
// //console.log(item);
_result.push(item);
}
});
@ -448,8 +448,8 @@ class Itembankstop extends Component {
}
handleFormzhishidian = (value) => {
console.log("handleFormzhishidian 课程");
console.log(value);
//console.log("handleFormzhishidian 课程");
//console.log(value);
//课程
this.props.form.setFieldsValue({
@ -458,8 +458,8 @@ class Itembankstop extends Component {
this.setState({
rbkc:value,
})
// console.log("handleFormzhishidian");
// console.log(this.props.disciplinesdata);
// //console.log("handleFormzhishidian");
// //console.log(this.props.disciplinesdata);
const didata = this.props.disciplinesdata;
const knowledgepointsdata = [];
@ -503,8 +503,8 @@ class Itembankstop extends Component {
handleFormtixing = (value) => {
//题型
//console.log("题型");
//console.log(value);
////console.log("题型");
////console.log(value);
this.setState({
rbtx: value + "",
})
@ -515,7 +515,7 @@ class Itembankstop extends Component {
}
preventDefault = (e) => {
e.preventDefault();
////console.log('Clicked! But prevent default.');
//////console.log('Clicked! But prevent default.');
}
deletesobject = (item, index) => {
@ -644,7 +644,7 @@ class Itembankstop extends Component {
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
this.setState({
@ -657,9 +657,9 @@ class Itembankstop extends Component {
let {page, options,NewknTypedel,knowledgepoints,knowledgepoints2,Knowpoints} = this.state;
const {getFieldDecorator} = this.props.form;
// console.log("this.state.rbkc");
// console.log(this.state.rbkc);
// console.log(options);
// //console.log("this.state.rbkc");
// //console.log(this.state.rbkc);
// //console.log(options);
return (

@ -62,9 +62,9 @@ class JudquestionEditor extends Component{
addOption = () => {
const { question_choices, standard_answers } = this.state;
// //////console.log("addOption");
// //////console.log(question_choices);
// //////console.log(standard_answers);
// ////////console.log("addOption");
// ////////console.log(question_choices);
// ////////console.log(standard_answers);
question_choices.push('')
@ -74,8 +74,8 @@ class JudquestionEditor extends Component{
deleteOption = (index) => {
let {question_choices}=this.state;
// //////console.log("deleteOption");
// //////console.log(question_choices);
// ////////console.log("deleteOption");
// ////////console.log(question_choices);
if(question_choices[index]===""){
// repeat code
@ -190,9 +190,9 @@ class JudquestionEditor extends Component{
}
componentDidUpdate(prevProps) {
//console.log("componentDidUpdate");
//console.log(prevProps);
//console.log(this.props.item_banksedit);
////console.log("componentDidUpdate");
////console.log(prevProps);
////console.log(this.props.item_banksedit);
if(prevProps.item_banksedit !== this.props.item_banksedit){
this.setState({
@ -230,10 +230,10 @@ class JudquestionEditor extends Component{
onOptionClick = (index) => {
let standard_answers = this.state.standard_answers.slice(0);
// //////console.log("onOptionClick");
// //////console.log(standard_answers);
// //////console.log(standard_answers[index]);
// //////console.log(!standard_answers[index]);
// ////////console.log("onOptionClick");
// ////////console.log(standard_answers);
// ////////console.log(standard_answers[index]);
// ////////console.log(!standard_answers[index]);
for (var i=0;i<standard_answers.length;i++){
if(index===i){
standard_answers[index] = true;
@ -272,8 +272,8 @@ class JudquestionEditor extends Component{
handleFormLayoutChange=(e)=>{
//////console.log("难度塞选");
//////console.log(value);
////////console.log("难度塞选");
////////console.log(value);
this.setState({
zqda:e.target.value,
@ -348,9 +348,9 @@ class JudquestionEditor extends Component{
// [true, false, true] -> [0, 2]
const answerTagArray = standard_answers.map((item, index) => { return item == true ? tagArray[index] : -1 }).filter(item => item != -1);
// //////console.log("xuanzheshijuan");
// //////console.log(answerTagArray);
// //////console.log(!exerciseIsPublish);
// ////////console.log("xuanzheshijuan");
// ////////console.log(answerTagArray);
// ////////console.log(!exerciseIsPublish);
const params= this.props&&this.props.match&&this.props.match.params;
return(
<div className="padding20-30 signleEditor danxuano" id={qNumber}>

@ -159,22 +159,16 @@ class Listjihe extends Component {
<style>
{
` .markdown-body .ql-editor{
padding-left: 0px;
}
.markdown-body .ql-editor p{
line-height: 0px;
padding-left: 0px !important;
padding-top: 0px !important;
}
.programquill .ql-editor{
padding-left: 0px;
padding-left: 0px !important;
padding-top: 0px !important;
}
.programquill .ql-editor p{
line-height: 0px;
}
`
}
</style>
@ -182,18 +176,15 @@ class Listjihe extends Component {
<div className="listjihetixingstitsy">
{
this.props.listjihe
}
</div>
<div className="listjihetixingstitsy">
.
}.
</div>
{
items.item_type==="PROGRAM"?
<a href={`/problems/${items.program_attr.identifier}/edit`}>
<div className="ml10 w100s listjihetixingstit markdown-body" style={{wordBreak: "break-word"}} dangerouslySetInnerHTML={{__html: markdownToHTML(items&&items.name).replace(/▁/g, "▁▁▁")}}></div>
<div className="ml10 w100s " style={{wordBreak: "break-word"}} dangerouslySetInnerHTML={{__html: markdownToHTML(items&&items.name).replace(/▁/g, "▁▁▁")}}></div>
</a>
:
<div className="ml10 w100s listjihetixingstit markdown-body" style={{wordBreak: "break-word"}}>
<div className="ml10 w100s markdown-body" style={{wordBreak: "break-word"}}>
{ items===undefined||items===null||items===""?"":
items.name === undefined || items.name === null || items.name === "" ?
""
@ -217,7 +208,7 @@ class Listjihe extends Component {
items === undefined || items === null ? "" : items.choices.map((object, index) => {
return (
<p className={index === 1 ? "sortinxdirection ml10" : "sortinxdirection "}>
<Radio disabled={false} disabled={true} >
<Radio disabled={true} >
{object.choice_text}
</Radio>
</p>
@ -257,7 +248,7 @@ class Listjihe extends Component {
}
return (
<p className={index === 0 ? "sortinxdirection " : "sortinxdirection mt15 "}>
<p className="lh26">{tagArray[index]}</p>
<p className="lh20s">{tagArray[index]}</p>
<p className="programquill" style={{wordBreak: "break-word"}}>
{object ?
object.choice_text === undefined || object.choice_text=== null || object.choice_text === "" ?

@ -18,15 +18,15 @@ class PaperDeletModel extends Component {
// this.setState({
// newkntypeinput: e.target.value
// })
// console.log(e.target.value);
// console.log(e.target.value.length);
// //console.log(e.target.value);
// //console.log(e.target.value.length);
this.setState({
newkntypeinput: e.target.value
})
this.props.setboolred(false);
//
// debugger
// console.log(e);
// //console.log(e);
//
// if(e.target.value.length>0){
// if(e.target.value.length>=16){
@ -38,11 +38,11 @@ class PaperDeletModel extends Component {
// }
}
mysinputOnBlur=(e)=>{
console.log("失去焦点了");
//console.log("失去焦点了");
}
inputOnFocus=(e)=>{
console.log("获取焦点");
//console.log("获取焦点");
}
render() {

@ -13,8 +13,8 @@ class Paperreview_itemModel extends Component {
}
onChange=(value)=>{
console.log("设置批量得分");
console.log(value);
//console.log("设置批量得分");
//console.log(value);
this.setState({
value:value,
})

@ -14,8 +14,8 @@ class Paperreview_itemModels extends Component {
}
onChange=(value)=>{
console.log("Paperreview_itemModels");
console.log(value);
//console.log("Paperreview_itemModels");
//console.log(value);
this.setState({
value:value,
})

@ -25,7 +25,7 @@ $(window).scroll(function(){
function rightSlider(){
var poi=parseInt((parseInt($(window).width())- 1200 )/2)-81;
// console.log(parseInt($(window).width())+" "+poi);
// //console.log(parseInt($(window).width())+" "+poi);
if(poi>0){
$(".-task-sidebar").css("right",poi);
}else{
@ -82,15 +82,15 @@ class SiderBars extends Component {
}
componentDidMount() {
_initSider()
// _initSider()
}
render() {
// console.log("SiderBar");
// console.log(this.props);
// //console.log("SiderBar");
// //console.log(this.props);
var mypath= this.props&&this.props.match&&this.props.match.path;
let{myvisible,Datacount,animateStyle}=this.props;

@ -52,8 +52,8 @@ class SingleEditor extends Component{
if(this.props.item_banksedit.choices){
this.props.item_banksedit.choices.forEach((item, index) => {
//console.log("SingleEditor");
//console.log(item);
////console.log("SingleEditor");
////console.log(item);
choicescomy.push({
choice_text:item.choice_text,
standard_boolean:item.is_answer,
@ -87,9 +87,9 @@ class SingleEditor extends Component{
addOption = () => {
const { question_choices, standard_answers } = this.state;
// ////console.log("addOption");
// ////console.log(question_choices);
// ////console.log(standard_answers);
// //////console.log("addOption");
// //////console.log(question_choices);
// //////console.log(standard_answers);
question_choices.push('')
@ -99,8 +99,8 @@ class SingleEditor extends Component{
deleteOption = (index) => {
let {question_choices}=this.state;
// ////console.log("deleteOption");
// ////console.log(question_choices);
// //////console.log("deleteOption");
// //////console.log(question_choices);
if(question_choices[index]===""){
// repeat code
@ -209,9 +209,9 @@ class SingleEditor extends Component{
}
}
componentDidUpdate(prevProps) {
//console.log("componentDidUpdate");
// //console.log(prevProps);
// //console.log(this.props.item_banksedit);
////console.log("componentDidUpdate");
// ////console.log(prevProps);
// ////console.log(this.props.item_banksedit);
if(prevProps.item_banksedit !== this.props.item_banksedit) {
this.setState({
@ -228,10 +228,10 @@ class SingleEditor extends Component{
onOptionClick = (index) => {
let standard_answers = this.state.standard_answers.slice(0);
// ////console.log("onOptionClick");
// ////console.log(standard_answers);
// ////console.log(standard_answers[index]);
// ////console.log(!standard_answers[index]);
// //////console.log("onOptionClick");
// //////console.log(standard_answers);
// //////console.log(standard_answers[index]);
// //////console.log(!standard_answers[index]);
for (var i=0;i<standard_answers.length;i++){
if(index===i){
standard_answers[index] = true;
@ -286,7 +286,8 @@ class SingleEditor extends Component{
}
onContentChange=(value,quill)=>{
const _text = quill.getText();
var _text = quill.getText();
const reg = /^[\s\S]*.*[^\s][\s\S]*$/;
if (!reg.test(_text)) {
// 处理编辑器内容为空
@ -295,6 +296,7 @@ class SingleEditor extends Component{
})
} else {
// 提交到后台的内容需要处理一下;
var texts="";
if(_text.length>=1001){
var result = _text.substring(0,1000);
@ -307,6 +309,12 @@ class SingleEditor extends Component{
this.setState({
question_titleysl:texts
})
try {
//console.log("onContentChange");
//console.log(quill.getText().length);
}catch (e) {
}
}
}
onContentChanges=(value,quill)=>{
@ -333,8 +341,8 @@ class SingleEditor extends Component{
}
}
handleShowImage = (url) => {
console.log("点击了图片放大");
console.log(url);
//console.log("点击了图片放大");
//console.log(url);
alert(url);
}
@ -357,9 +365,9 @@ class SingleEditor extends Component{
// [true, false, true] -> [0, 2]
const answerTagArray = standard_answers.map((item, index) => { return item == true ? tagArray[index] : -1 }).filter(item => item != -1);
// ////console.log("xuanzheshijuan");
// ////console.log(answerTagArray);
// ////console.log(!exerciseIsPublish);
// //////console.log("xuanzheshijuan");
// //////console.log(answerTagArray);
// //////console.log(!exerciseIsPublish);
return(
<div className="padding20-30 signleEditor danxuano" id={qNumber}>

@ -239,7 +239,7 @@ class Comthetestpaperst extends Component {
};
handleChange=(e)=>{
console.log(e);
//console.log(e);
this.props.form.setFieldsValue({
// course:value,
classroom:e.target.value,
@ -324,8 +324,8 @@ class Comthetestpaperst extends Component {
e.preventDefault();
this.props.form.validateFields((err, values) => {
if (!err) {
////console.log("获取的form 数据");
////console.log(values);
//////console.log("获取的form 数据");
//////console.log(values);
}
@ -334,8 +334,8 @@ class Comthetestpaperst extends Component {
}
handleFormLayoutChangeysl = (value) => {
//难度塞选
////console.log("难度塞选");
////console.log(value);
//////console.log("难度塞选");
//////console.log(value);
this.props.form.setFieldsValue({
rbnd: value + "",
@ -347,8 +347,8 @@ class Comthetestpaperst extends Component {
}
handleFormLayoutChange = (e) => {
//难度塞选
////console.log("难度塞选");
////console.log(value);
//////console.log("难度塞选");
//////console.log(value);
this.props.form.setFieldsValue({
rbnd: e.target.value + "",
@ -360,8 +360,8 @@ class Comthetestpaperst extends Component {
}
handleFormkechen = (value) => {
//课程
////console.log("课程");
////console.log(value);
//////console.log("课程");
//////console.log(value);
if(this.state.Knowpoints.length>4){
this.props.showNotification(`知识点最多选择5个`);
return
@ -382,8 +382,8 @@ class Comthetestpaperst extends Component {
const _result =[];
this.state.knowledgepoints.filter(item => {
if (this.state.Knowpoints.findIndex(t => t.id === item.id) === -1) {
console.log("guonue");
console.log(item);
//console.log("guonue");
//console.log(item);
_result.push(item);
}
});
@ -398,8 +398,8 @@ class Comthetestpaperst extends Component {
}
handleFormzhishidian = (value) => {
console.log("handleFormzhishidian 课程");
console.log(value);
//console.log("handleFormzhishidian 课程");
//console.log(value);
//课程
this.props.form.setFieldsValue({
@ -408,8 +408,8 @@ class Comthetestpaperst extends Component {
this.setState({
rbkc:value,
})
// console.log("handleFormzhishidian");
// console.log(this.props.disciplinesdata);
// //console.log("handleFormzhishidian");
// //console.log(this.props.disciplinesdata);
const didata = this.props.disciplinesdata;
const knowledgepointsdata = [];
@ -453,8 +453,8 @@ class Comthetestpaperst extends Component {
handleFormtixing = (value) => {
//题型
//console.log("题型");
//console.log(value);
////console.log("题型");
////console.log(value);
this.setState({
rbtx: value + "",
})
@ -465,7 +465,7 @@ class Comthetestpaperst extends Component {
}
preventDefault = (e) => {
e.preventDefault();
////console.log('Clicked! But prevent default.');
//////console.log('Clicked! But prevent default.');
}
deletesobject = (item, index) => {
debugger
@ -589,7 +589,7 @@ class Comthetestpaperst extends Component {
}
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
this.setState({

@ -94,7 +94,7 @@ class Intelligentcomponents extends Component {
};
handleChange=(e)=>{
console.log(e);
//console.log(e);
if(e.target.value){
if(e.target.value.length>60){
@ -209,8 +209,8 @@ class Intelligentcomponents extends Component {
e.preventDefault();
this.props.form.validateFields((err, values) => {
if (!err) {
////console.log("获取的form 数据");
////console.log(values);
//////console.log("获取的form 数据");
//////console.log(values);
}
@ -218,8 +218,8 @@ class Intelligentcomponents extends Component {
});
}
handleFormLayoutChanges = (e) => {
// console.log("handleFormLayoutChanges");
// console.log(value);
// //console.log("handleFormLayoutChanges");
// //console.log(value);
// debugger
//来源
this.props.form.setFieldsValue({
@ -237,8 +237,8 @@ class Intelligentcomponents extends Component {
}
handleFormLayoutChange = (e) => {
// console.log("handleFormLayoutChange");
// console.log(value);
// //console.log("handleFormLayoutChange");
// //console.log(value);
// debugger
//难度塞选
this.props.form.setFieldsValue({
@ -295,8 +295,8 @@ class Intelligentcomponents extends Component {
}
handleFormzhishidian = (value) => {
console.log("handleFormzhishidian 课程");
console.log(value);
//console.log("handleFormzhishidian 课程");
//console.log(value);
//课程
this.props.form.setFieldsValue({
@ -305,8 +305,8 @@ class Intelligentcomponents extends Component {
this.setState({
rbkc:value,
})
// console.log("handleFormzhishidian");
// console.log(this.props.disciplinesdata);
// //console.log("handleFormzhishidian");
// //console.log(this.props.disciplinesdata);
const didata = this.props.disciplinesdata;
const knowledgepointsdata = [];
@ -356,8 +356,8 @@ class Intelligentcomponents extends Component {
handleFormtixing = (value) => {
//题型
//console.log("题型");
//console.log(value);
////console.log("题型");
////console.log(value);
this.setState({
rbtx: value + "",
})
@ -368,7 +368,7 @@ class Intelligentcomponents extends Component {
}
preventDefault = (e) => {
e.preventDefault();
////console.log('Clicked! But prevent default.');
//////console.log('Clicked! But prevent default.');
}
deletesobject = (item, index) => {
@ -498,7 +498,7 @@ class Intelligentcomponents extends Component {
}
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
//新增知识点
try {

@ -323,7 +323,8 @@
.listjihetixingstitsy {
color: #333333;
font-size: 14px;
line-height: 25px;
line-height: 20px !important;
height: 25px !important;
}
.listjihetixingstits{
@ -803,6 +804,9 @@
line-height: 20px;
background-color: #fff;
}
.lh20s{
line-height: 20px;
}
.backgroudwhites{
background-color: #fff;

@ -40,8 +40,8 @@ class Intecomponents extends Component {
}
getJudquestio = (Ref) => {
console.log("子组件对象");
console.log(Ref);
//console.log("子组件对象");
//console.log(Ref);
this.Judquestio = Ref;
}
@ -116,7 +116,7 @@ class Intecomponents extends Component {
this.scrollToAnchor("Itembankstopid");
return false;
}
console.log(this.Judquestio.Getdatas());
//console.log(this.Judquestio.Getdatas());
var myrbkc=[];
var Getdatasdatas=this.Judquestio.Getdatas()[1].rbzsd;
for(let myda of Getdatasdatas) {
@ -139,7 +139,7 @@ class Intecomponents extends Component {
this.scrollToAnchor("Itembankstopid");
return false;
}
console.log(this.Judquestio.Getdatas());
//console.log(this.Judquestio.Getdatas());
var myrbkc=[];
var Getdatasdatas=this.Judquestio.Getdatas()[1].rbzsd;
for(let myda of Getdatasdatas) {
@ -162,7 +162,7 @@ class Intecomponents extends Component {
this.scrollToAnchor("Itembankstopid");
return false;
}
console.log(this.Judquestio.Getdatas());
//console.log(this.Judquestio.Getdatas());
var myrbkc=[];
var Getdatasdatas=zhishidian;
for(let myda of Getdatasdatas) {
@ -184,7 +184,7 @@ class Intecomponents extends Component {
this.scrollToAnchor("Itembankstopid");
return false;
}
console.log(this.Judquestio.Getdatas());
//console.log(this.Judquestio.Getdatas());
var myrbkc=[];
var Getdatasdatas=this.Judquestio.Getdatas()[1].rbzsd;
for(let myda of Getdatasdatas) {
@ -204,8 +204,8 @@ class Intecomponents extends Component {
getwangluodata=(url,data)=>{
axios.post(url,data).then((response) => {
if (response) {
console.log("智能组卷");
console.log(response);
//console.log("智能组卷");
//console.log(response);
if(response.data){
this.setState({
single_question_count:response.data.single_question_count,
@ -225,7 +225,7 @@ class Intecomponents extends Component {
this.scrollToAnchor("Itembankstopid");
return false;
}
console.log(this.Judquestio.Getdatas());
//console.log(this.Judquestio.Getdatas());
var myrbkc=[];
var Getdatasdatas=this.Judquestio.Getdatas()[1].rbzsd;
for(let myda of Getdatasdatas) {
@ -241,8 +241,8 @@ class Intecomponents extends Component {
axios.post(url,data).then((response) => {
if (response) {
console.log("智能组卷");
console.log(response);
//console.log("智能组卷");
//console.log(response);
if(response.data){
this.setState({
single_question_count:response.data.single_question_count,
@ -291,9 +291,9 @@ class Intecomponents extends Component {
for(let myda of Getdatasdatas) {
myrbkc.push(myda.id);
}
// console.log(myrbkc);
// console.log("preservation");
// console.log(this.Judquestio.Getdatas());
// //console.log(myrbkc);
// //console.log("preservation");
// //console.log(this.Judquestio.Getdatas());
var question_settings =[
@ -328,11 +328,11 @@ class Intecomponents extends Component {
axios.post(url, data)
.then((result) => {
if (result.data.status == 0) {
console.log("组卷成功");
//console.log("组卷成功");
this.props.history.push(`/Integeneration/Intelligence/${result.data.exam_setting_id}`);
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}

@ -43,8 +43,8 @@ class Paperlibraryeditid extends Component {
}
getJudquestio = (Ref) => {
console.log("子组件对象");
console.log(Ref);
//console.log("子组件对象");
//console.log(Ref);
this.Judquestio = Ref;
}
@ -170,7 +170,7 @@ class Paperlibraryeditid extends Component {
this.props.history.push('/paperlibrary');
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -208,8 +208,8 @@ class Paperlibraryeditid extends Component {
render() {
let {paperlibrartdata,newmyshixunmodelbool} = this.state;
const params = this.props && this.props.match && this.props.match.params;
// console.log("newmyshixunmodelbool");
// console.log(newmyshixunmodelbool);
// //console.log("newmyshixunmodelbool");
// //console.log(newmyshixunmodelbool);
return (
<div>
<div id={"Itembankstopid"} className="newMain clearfix intermediatecenter "

@ -35,7 +35,7 @@ class Paperlibraryseeid extends Component {
//初始化
componentDidMount() {
console.log("Paperlibraryseeid");
////console.log("Paperlibraryseeid");
this.getdata();
@ -94,7 +94,7 @@ class Paperlibraryseeid extends Component {
render() {
let {paperlibrartdata} = this.state;
const params = this.props && this.props.match && this.props.match.params;
// //console.log(params);
// ////console.log(params);
return (
<div>
<div id={"Itembankstopid"} className="newMain clearfix intermediatecenter "

@ -53,8 +53,8 @@ class Testpaperlibrary extends Component {
componentDidMount() {
let url = `/users/get_navigation_info.json`;
axios.get(url, {}).then((response) => {
// ////console.log("开始请求/get_navigation_info.json");
// ////console.log(response);
// //////console.log("开始请求/get_navigation_info.json");
// //////console.log(response);
if (response != undefined) {
if (response.status === 200) {
this.setState({
@ -158,14 +158,14 @@ class Testpaperlibrary extends Component {
} else {
}
////console.log("item_banks");
////console.log(response);
//////console.log("item_banks");
//////console.log(response);
this.setState({
Contentdata: response.data,
items_count: response.data.exam_count,
})
}).catch((error) => {
////console.log(error)
//////console.log(error)
this.setState({
booljupyterurls:false,
})
@ -194,7 +194,7 @@ class Testpaperlibrary extends Component {
this.getdata(data);
}
setsub_discipline_id=(sub_discipline_id)=>{
setsub_discipline_id=(discipline_id,sub_discipline_id)=>{
this.setState({
sub_discipline_id:sub_discipline_id,
tag_discipline_id:null,
@ -203,7 +203,7 @@ class Testpaperlibrary extends Component {
per_page:10,
})
var data = {
discipline_id:this.state.discipline_id,
discipline_id:discipline_id,
sub_discipline_id:sub_discipline_id,
tag_discipline_id:null,
public: this.state.defaultActiveKey,
@ -291,7 +291,7 @@ class Testpaperlibrary extends Component {
this.getdata(data);
}
}).catch((error) => {
//console.log(error);
////console.log(error);
})
}
@ -318,7 +318,7 @@ class Testpaperlibrary extends Component {
}
})
.catch(function (error) {
//console.log(error);
////console.log(error);
});
}
@ -434,7 +434,7 @@ class Testpaperlibrary extends Component {
<Headplugselections {...this.props} {...this.state}
disciplinesdata={this.state.disciplinesdata}
setdiscipline_id={(e)=>this.setdiscipline_id(e)}
setsub_discipline_id={(e)=>this.setsub_discipline_id(e)}
setsub_discipline_id={(e,id)=>this.setsub_discipline_id(e,id)}
settag_discipline_id={(e)=>this.settag_discipline_id(e)}
setitem_types={(e) => this.setitem_types(e)}
setdifficulty={(e) => this.setdifficulty(e)}

@ -20,9 +20,9 @@ class Contentquestionbank extends Component {
}
//初始化
componentDidMount(){
////console.log("componentDidMount");
////console.log(this.state);
////console.log(this.props);
//////console.log("componentDidMount");
//////console.log(this.state);
//////console.log(this.props);
// let homeworkid = this.props.match.params.homeworkid;
// let url = "/homework_commons/" + homeworkid + "/end_groups.json";
// axios.get(url).then((response) => {
@ -30,12 +30,12 @@ class Contentquestionbank extends Component {
// this.setState({})
// }
// }).catch((error) => {
// ////console.log(error)
// //////console.log(error)
// });
}
onChange=(e)=> {
////console.log(`checked = ${e.target.checked}`);
//////console.log(`checked = ${e.target.checked}`);
}
render() {

@ -69,8 +69,8 @@ class Paperreview_item extends Component {
}
onDragEnd = (result) => {
console.log("单选题");
console.log(result);
//console.log("单选题");
//console.log(result);
const ids = this.props.single_questions.questions[result.source.index].id;
const positions = this.props.single_questions.questions[result.destination.index].position;
@ -85,13 +85,13 @@ class Paperreview_item extends Component {
this.props.getdata();
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
onDragEnds = (result) => {
console.log("多选题");
console.log(result);
//console.log("多选题");
//console.log(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`;
@ -105,7 +105,7 @@ class Paperreview_item extends Component {
this.props.getdata();
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
@ -113,8 +113,8 @@ class Paperreview_item extends Component {
onDragEndss = (result) => {
console.log("判断题");
console.log(result);
//console.log("判断题");
//console.log(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`;
@ -129,14 +129,14 @@ class Paperreview_item extends Component {
this.props.getdata();
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
onDragEndsss = (result) => {
console.log("编程题");
console.log(result);
//console.log("编程题");
//console.log(result);
const ids = this.props.program_questions.questions[result.source.index].id;
const positions = this.props.program_questions.questions[result.destination.index].position;
@ -151,7 +151,7 @@ class Paperreview_item extends Component {
this.props.getdata();
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -186,7 +186,7 @@ class Paperreview_item extends Component {
this.Singlemagazine("", false);
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -203,7 +203,7 @@ class Paperreview_item extends Component {
this.Singlemagazines(false);
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -225,7 +225,7 @@ class Paperreview_item extends Component {
}
hideparagraph = (name) => {
console.log("hideparagraph");
//console.log("hideparagraph");
}
@ -238,7 +238,7 @@ class Paperreview_item extends Component {
})
}
showparagraph = (name) => {
console.log("showparagraph");
//console.log("showparagraph");
if (name === "SINGLE") {
this.setState({
singlebool: true,
@ -290,8 +290,8 @@ class Paperreview_item extends Component {
}
showparagraphs = (e,name) => {
// console.log("showparagraphs");
// console.log(e);
// //console.log("showparagraphs");
// //console.log(e);
this.setState({
paperreviewsingleindex: e,
paperreviewsinglename:name,

@ -95,7 +95,8 @@ class Paperlibraryseeid_items extends Component {
<style>{
`
.programquill .ql-editor{
padding: 0px;
padding-left: 0px !important;
padding-top: 0px !important;
}
.programquill .ql-editor p{
@ -103,7 +104,8 @@ class Paperlibraryseeid_items extends Component {
}
.programquills .ql-editor{
padding: 0px;
padding-left: 0px !important;
padding-top: 0px !important;
}
.programquills .ql-editor p{
@ -138,7 +140,9 @@ class Paperlibraryseeid_items extends Component {
{
objectsingle.item_type==="PROGRAM"?
<div className="w100s sortinxdirection">
<div className=" tites lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word"}}
<div className=" tites lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word",
minWidth:"32px"
}}
>
({objectsingle.score})
</div>
@ -149,7 +153,8 @@ class Paperlibraryseeid_items extends Component {
</div>
:
<div className="w100s sortinxdirection">
<div className="tites lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word"}}
<div className="tites lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word",
minWidth:"32px"}}
>
({objectsingle.score})
</div>
@ -175,7 +180,7 @@ class Paperlibraryseeid_items extends Component {
objectsingle === undefined || objectsingle === null ? "" : objectsingle.choices.map((object, index) => {
return (
<p className={index === 1 ? "sortinxdirection ml10" : "sortinxdirection "}>
<Radio disabled={false}>
<Radio disabled={true} >
{object.choice_text}
</Radio>
</p>

@ -93,7 +93,7 @@ class Paperlibraryseeid_itemss extends Component {
this.props.getdata({});
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -112,7 +112,7 @@ class Paperlibraryseeid_itemss extends Component {
this.props.getdata({});
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
@ -133,7 +133,7 @@ class Paperlibraryseeid_itemss extends Component {
this.props.getdata({});
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -153,7 +153,7 @@ class Paperlibraryseeid_itemss extends Component {
this.props.getdata({});
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -189,7 +189,7 @@ class Paperlibraryseeid_itemss extends Component {
this.Singlemagazine("", false);
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -206,7 +206,7 @@ class Paperlibraryseeid_itemss extends Component {
this.Singlemagazines(false);
}
}).catch((error) => {
console.log(error);
//console.log(error);
})
}
@ -255,7 +255,7 @@ class Paperlibraryseeid_itemss extends Component {
}
})
.catch(function (error) {
//console.log(error);
////console.log(error);
});
@ -299,7 +299,7 @@ class Paperlibraryseeid_itemss extends Component {
}
hideparagraph = (name) => {
console.log("hideparagraph");
//console.log("hideparagraph");
}
@ -312,7 +312,7 @@ class Paperlibraryseeid_itemss extends Component {
})
}
showparagraph = (name) => {
console.log("showparagraph");
//console.log("showparagraph");
if (name === "SINGLE") {
this.setState({
singlebool: true,
@ -364,8 +364,8 @@ class Paperlibraryseeid_itemss extends Component {
}
showparagraphs = (e,name) => {
// console.log("showparagraphs");
// console.log(e);
// //console.log("showparagraphs");
// //console.log(e);
this.setState({
paperreviewsingleindex: e,
paperreviewsinglename:name,

Loading…
Cancel
Save