mast_item_banktwo
杨树林 5 years ago
parent afd54d61c1
commit 57cbfe80d1

@ -27,6 +27,7 @@ import Comthetestpaperst from "./comthetestpaper/Comthetestpaperst";
import NewMyShixunModel from "../question/NewMyShixunModel"; import NewMyShixunModel from "../question/NewMyShixunModel";
import IntelligentModel from "../question/component/IntelligentModel" import IntelligentModel from "../question/component/IntelligentModel"
//人工组卷预览 //人工组卷预览
let Changes=true;
class Paperreview extends Component { class Paperreview extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
@ -331,6 +332,8 @@ class Paperreview extends Component {
} }
//换题 //换题
Changingtopics=(id)=>{ Changingtopics=(id)=>{
if(Changes===true){
Changes=false;
const url=`/examination_intelligent_settings/${this.props.match.params.id}/exchange_one_item.json`; const url=`/examination_intelligent_settings/${this.props.match.params.id}/exchange_one_item.json`;
let data={ let data={
item_id:id, item_id:id,
@ -342,11 +345,19 @@ class Paperreview extends Component {
var data = {} var data = {}
this.getdata(data); this.getdata(data);
} }
setTimeout(()=>{
Changes=true;
},1000);
}).catch((error) => { }).catch((error) => {
//console.log(error); //console.log(error);
setTimeout(()=>{
Changes=true;
},1000);
}) })
} }
}
setIntelligentformation=(bool)=>{ setIntelligentformation=(bool)=>{
this.setState({ this.setState({
Intelligentformation:bool Intelligentformation:bool

@ -94,6 +94,19 @@ class Paperreview_single extends Component {
const options = [ const options = [
'bold', // 加粗 'bold', // 加粗
] ]
try {
if(itemsnamesy.constructor === Object){
// console.log("是对象");
// console.log(itemsnamesy);
}else {
// console.log("不是对象");
// console.log(itemsnamesy);
itemsnamesy=itemsnamesy+"";
}
}catch (e) {
}
return ( return (
<div key={indexxy} <div key={indexxy}
className={ "w100s borderwdswuh mb20 pd20 "} className={ "w100s borderwdswuh mb20 pd20 "}

@ -132,7 +132,7 @@ class Listjihe extends Component {
}catch (e) { }catch (e) {
} }
if(itemssname===undefined){ if(itemssname===undefined){
itemssname=items.name itemssname=items.name+""
} }
@ -141,7 +141,8 @@ class Listjihe extends Component {
itemsnamesy= JSON.parse(items&&items.program_attr&&items.program_attr.description); itemsnamesy= JSON.parse(items&&items.program_attr&&items.program_attr.description);
}catch (e) { }catch (e) {
itemsnamesy=items&&items.program_attr&&items.program_attr.description; itemsnamesy=items&&items.program_attr&&items.program_attr.description+"";
} }
var analysisnames=""; var analysisnames="";
@ -149,7 +150,7 @@ class Listjihe extends Component {
analysisnames= JSON.parse(items&&items.analysis); analysisnames= JSON.parse(items&&items.analysis);
}catch (e) { }catch (e) {
analysisnames=items&&items.analysis; analysisnames=items&&items.analysis+"";
} }
// console.log(items.name); // console.log(items.name);
// console.log(itemsnamesy); // console.log(itemsnamesy);
@ -158,6 +159,21 @@ class Listjihe extends Component {
const options = [ const options = [
'bold', // 加粗 'bold', // 加粗
] ]
try {
if(itemsnamesy.constructor === Object){
// console.log("是对象");
// console.log(itemsnamesy);
}else {
// console.log("不是对象");
// console.log(itemsnamesy);
itemsnamesy=itemsnamesy+"";
}
}catch (e) {
}
return ( return (
<div key={keindex} <div key={keindex}
className={chakanjiexiboolindex === keindex ? "w100s borderwds283 pd20 mb20 listjihecolors" : "w100s borderwds pd20 mb20 listjihecolors"}> className={chakanjiexiboolindex === keindex ? "w100s borderwds283 pd20 mb20 listjihecolors" : "w100s borderwds pd20 mb20 listjihecolors"}>

@ -159,7 +159,9 @@ class Listjihe extends Component {
</div> </div>
</div> </div>
<div className="sjfqks reversedirection"> <div className="sjfqks reversedirection" style={{
display: "none"
}}>
<div className="newbutoonss"> <div className="newbutoonss">
<p className="newbutoontess" >发起考试</p> <p className="newbutoontess" >发起考试</p>
</div> </div>

@ -90,6 +90,19 @@ class Paperlibraryseeid_items extends Component {
const options = [ const options = [
'bold', // 加粗 'bold', // 加粗
] ]
try {
if(itemsnamesy.constructor === Object){
// console.log("是对象");
// console.log(itemsnamesy);
}else {
// console.log("不是对象");
// console.log(itemsnamesy);
itemsnamesy=itemsnamesy+"";
}
}catch (e) {
}
return ( return (
<div key={indexxy} <div key={indexxy}
className={ "w100s borderwdswuh mb20 pd20 "} className={ "w100s borderwdswuh mb20 pd20 "}

Loading…
Cancel
Save