|  |  |  | @ -13,6 +13,7 @@ import QuestionModalys from "./component/QuestionModalys"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | //exam_id 试卷的id
 | 
			
		
	
		
			
				
					|  |  |  |  | var 	Undoclickable=true; | 
			
		
	
		
			
				
					|  |  |  |  | var   myGrandtotal=false; | 
			
		
	
		
			
				
					|  |  |  |  | class NewMyShixunModel extends Component { | 
			
		
	
		
			
				
					|  |  |  |  | 	constructor(props) { | 
			
		
	
		
			
				
					|  |  |  |  | 		super(props); | 
			
		
	
	
		
			
				
					|  |  |  | @ -57,8 +58,9 @@ class NewMyShixunModel extends Component { | 
			
		
	
		
			
				
					|  |  |  |  | 			selectallquestionsonthispages: false, | 
			
		
	
		
			
				
					|  |  |  |  | 			oj_status: null, | 
			
		
	
		
			
				
					|  |  |  |  | 			isVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  | 			selectionbools: false, | 
			
		
	
		
			
				
					|  |  |  |  | 			chakanjiexiboolindex: "无", | 
			
		
	
		
			
				
					|  |  |  |  | 			selectionbools:false, | 
			
		
	
		
			
				
					|  |  |  |  | 			chakanjiexiboolindex:"无", | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
	
		
			
				
					|  |  |  | @ -357,18 +359,22 @@ class NewMyShixunModel extends Component { | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	//计算
 | 
			
		
	
		
			
				
					|  |  |  |  | 	getdataslen = (arr) => { | 
			
		
	
		
			
				
					|  |  |  |  | 		var contes = 0; | 
			
		
	
		
			
				
					|  |  |  |  | 		for (let data of arr) { | 
			
		
	
		
			
				
					|  |  |  |  | 			if (data.item_type === "PROGRAM") { | 
			
		
	
		
			
				
					|  |  |  |  | 	getdataslen=(arr)=>{ | 
			
		
	
		
			
				
					|  |  |  |  | 		myGrandtotal=false; | 
			
		
	
		
			
				
					|  |  |  |  | 		let contes=0; | 
			
		
	
		
			
				
					|  |  |  |  | 		let Grandtotal=0; | 
			
		
	
		
			
				
					|  |  |  |  | 		for(let data of arr) { | 
			
		
	
		
			
				
					|  |  |  |  | 			if(data.item_type==="PROGRAM"){ | 
			
		
	
		
			
				
					|  |  |  |  | 				//编程题
 | 
			
		
	
		
			
				
					|  |  |  |  | 				if (data.choosed === true) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				} else { | 
			
		
	
		
			
				
					|  |  |  |  | 					//未选用
 | 
			
		
	
		
			
				
					|  |  |  |  | 					if (data.program_attr.status === 1) { | 
			
		
	
		
			
				
					|  |  |  |  | 						//已发布
 | 
			
		
	
		
			
				
					|  |  |  |  | 						contes = contes + 1; | 
			
		
	
		
			
				
					|  |  |  |  | 					if(data.program_attr.status===1){ | 
			
		
	
		
			
				
					|  |  |  |  | 						//已发布1  未发布0
 | 
			
		
	
		
			
				
					|  |  |  |  | 						contes=contes+1; | 
			
		
	
		
			
				
					|  |  |  |  | 					}else { | 
			
		
	
		
			
				
					|  |  |  |  | 						Grandtotal=Grandtotal+1; | 
			
		
	
		
			
				
					|  |  |  |  | 					} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 				} | 
			
		
	
	
		
			
				
					|  |  |  | @ -390,11 +396,28 @@ class NewMyShixunModel extends Component { | 
			
		
	
		
			
				
					|  |  |  |  | 				selectionbools: false, | 
			
		
	
		
			
				
					|  |  |  |  | 				selectallquestionsonthispages: false, | 
			
		
	
		
			
				
					|  |  |  |  | 			}) | 
			
		
	
		
			
				
					|  |  |  |  | 		} else { | 
			
		
	
		
			
				
					|  |  |  |  | 			this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  | 				selectionbools: true, | 
			
		
	
		
			
				
					|  |  |  |  | 				selectallquestionsonthispages: true, | 
			
		
	
		
			
				
					|  |  |  |  | 			}) | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 		else { | 
			
		
	
		
			
				
					|  |  |  |  | 			try { | 
			
		
	
		
			
				
					|  |  |  |  | 				if(arr.length===Grandtotal){ | 
			
		
	
		
			
				
					|  |  |  |  | 					myGrandtotal=true; | 
			
		
	
		
			
				
					|  |  |  |  | 					this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  | 						selectionbools:false, | 
			
		
	
		
			
				
					|  |  |  |  | 						selectallquestionsonthispages:false, | 
			
		
	
		
			
				
					|  |  |  |  | 					}) | 
			
		
	
		
			
				
					|  |  |  |  | 				}else{ | 
			
		
	
		
			
				
					|  |  |  |  | 					this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  | 						selectionbools:true, | 
			
		
	
		
			
				
					|  |  |  |  | 						selectallquestionsonthispages:true, | 
			
		
	
		
			
				
					|  |  |  |  | 					}) | 
			
		
	
		
			
				
					|  |  |  |  | 				} | 
			
		
	
		
			
				
					|  |  |  |  | 			}catch (e) { | 
			
		
	
		
			
				
					|  |  |  |  | 				this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  | 					selectionbools:true, | 
			
		
	
		
			
				
					|  |  |  |  | 					selectallquestionsonthispages:true, | 
			
		
	
		
			
				
					|  |  |  |  | 				}) | 
			
		
	
		
			
				
					|  |  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -861,6 +884,10 @@ class NewMyShixunModel extends Component { | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | 	//全选试题库
 | 
			
		
	
		
			
				
					|  |  |  |  | 	selectallquestionsonthispage=(bool)=>{ | 
			
		
	
		
			
				
					|  |  |  |  | 		if(myGrandtotal===true){ | 
			
		
	
		
			
				
					|  |  |  |  | 			this.props.showNotification(`本页全部试题未发布,不能选择`); | 
			
		
	
		
			
				
					|  |  |  |  | 			return | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 		var item_idsdata=[]; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		var arr = this.state.Contentdata.items; | 
			
		
	
	
		
			
				
					|  |  |  | 
 |