|  |  | @ -96,8 +96,13 @@ class Testpaperlibrary extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 		}) |  |  |  | 		}) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		var data={ |  |  |  | 		var data={ | 
			
		
	
		
		
			
				
					
					|  |  |  | 			page:pages, |  |  |  | 			page:pages, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			per_page:10, |  |  |  | 			discipline_id:this.state.discipline_id, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			sub_discipline_id:this.state.sub_discipline_id, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			tag_discipline_id:this.state.tag_discipline_id, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			public: this.state.defaultActiveKey, |  |  |  | 			public: this.state.defaultActiveKey, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			difficulty: this.state.difficulty, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			keywords: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			per_page:10, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		this.getdata(data); |  |  |  | 		this.getdata(data); | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
	
		
		
			
				
					|  |  | @ -114,20 +119,31 @@ class Testpaperlibrary extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			keywords: value, |  |  |  | 			keywords: value, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		}) |  |  |  | 		}) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		var data={ |  |  |  | 		var data={ | 
			
		
	
		
		
			
				
					
					|  |  |  | 			page:1, |  |  |  | 			page:this.state.page, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			per_page:10, |  |  |  | 			discipline_id:this.state.discipline_id, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			sub_discipline_id:this.state.sub_discipline_id, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			tag_discipline_id:this.state.tag_discipline_id, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			public: this.state.defaultActiveKey, |  |  |  | 			public: this.state.defaultActiveKey, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			difficulty: this.state.difficulty, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			keywords: value, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			per_page:10, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		this.getdata(data); |  |  |  | 		this.getdata(data); | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 	callback = (key) => { |  |  |  | 	callback = (key) => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 		this.setState({ |  |  |  | 		this.setState({ | 
			
		
	
		
		
			
				
					
					|  |  |  | 			defaultActiveKey: key, |  |  |  | 			defaultActiveKey: key, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			difficulty:null | 
			
		
	
		
		
			
				
					
					|  |  |  | 		}) |  |  |  | 		}) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		var data={ |  |  |  | 		var data={ | 
			
		
	
		
		
			
				
					
					|  |  |  | 			page:1, |  |  |  | 			page:this.state.page, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			per_page:10, |  |  |  | 			discipline_id:this.state.discipline_id, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			sub_discipline_id:this.state.sub_discipline_id, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			tag_discipline_id:this.state.tag_discipline_id, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			public: key, |  |  |  | 			public: key, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			difficulty: this.state.difficulty, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			keywords: this.state.keywords, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			per_page:10, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		this.getdata(data); |  |  |  | 		this.getdata(data); | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
	
		
		
			
				
					|  |  | @ -178,9 +194,9 @@ class Testpaperlibrary extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			sub_discipline_id:null, |  |  |  | 			sub_discipline_id:null, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			tag_discipline_id:null, |  |  |  | 			tag_discipline_id:null, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			public: this.state.defaultActiveKey, |  |  |  | 			public: this.state.defaultActiveKey, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			difficulty: this.state.difficulty, |  |  |  | 			difficulty: null, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			keywords: this.state.keywords, |  |  |  | 			keywords: null, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			page: this.state.page, |  |  |  | 			page: 1, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			per_page:10, |  |  |  | 			per_page:10, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		}; |  |  |  | 		}; | 
			
		
	
		
		
			
				
					
					|  |  |  | 		this.getdata(data); |  |  |  | 		this.getdata(data); | 
			
		
	
	
		
		
			
				
					|  |  | @ -196,9 +212,9 @@ class Testpaperlibrary extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			sub_discipline_id:sub_discipline_id, |  |  |  | 			sub_discipline_id:sub_discipline_id, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			tag_discipline_id:null, |  |  |  | 			tag_discipline_id:null, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			public: this.state.defaultActiveKey, |  |  |  | 			public: this.state.defaultActiveKey, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			difficulty: this.state.difficulty, |  |  |  | 			difficulty: null, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			keywords: this.state.keywords, |  |  |  | 			keywords: null, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			page: this.state.page, |  |  |  | 			page:1, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			per_page:10, |  |  |  | 			per_page:10, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		}; |  |  |  | 		}; | 
			
		
	
		
		
			
				
					
					|  |  |  | 		this.getdata(data); |  |  |  | 		this.getdata(data); | 
			
		
	
	
		
		
			
				
					|  |  | @ -213,17 +229,15 @@ class Testpaperlibrary extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			sub_discipline_id:this.state.sub_discipline_id, |  |  |  | 			sub_discipline_id:this.state.sub_discipline_id, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			tag_discipline_id:tag_discipline_id, |  |  |  | 			tag_discipline_id:tag_discipline_id, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			public: this.state.defaultActiveKey, |  |  |  | 			public: this.state.defaultActiveKey, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			difficulty: this.state.difficulty, |  |  |  | 			difficulty: null, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			keywords: this.state.keywords, |  |  |  | 			keywords: null, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			page: this.state.page, |  |  |  | 			page: 1, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			per_page:10, |  |  |  | 			per_page:10, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		}; |  |  |  | 		}; | 
			
		
	
		
		
			
				
					
					|  |  |  | 		this.getdata(data); |  |  |  | 		this.getdata(data); | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	setdifficulty=(bool)=>{ |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 	modalCancels=()=>{ |  |  |  | 	modalCancels=()=>{ | 
			
		
	
		
		
			
				
					
					|  |  |  | 		this.setState({ |  |  |  | 		this.setState({ | 
			
		
	
		
		
			
				
					
					|  |  |  | 			modalsTypes: false |  |  |  | 			modalsTypes: false | 
			
		
	
	
		
		
			
				
					|  |  | @ -258,7 +272,7 @@ class Testpaperlibrary extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 		}) |  |  |  | 		}) | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	//公开试题
 |  |  |  | 	//公开试卷
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 	publicopentimu = (id) => { |  |  |  | 	publicopentimu = (id) => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 		const url = `/examination_banks/${id}/set_public.json`; |  |  |  | 		const url = `/examination_banks/${id}/set_public.json`; | 
			
		
	
	
		
		
			
				
					|  |  | @ -283,7 +297,7 @@ class Testpaperlibrary extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 		}) |  |  |  | 		}) | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	//删除试题
 |  |  |  | 	//删除试卷
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 	deletetimu = (id) => { |  |  |  | 	deletetimu = (id) => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 		const url = `/examination_banks/${id}.json`; |  |  |  | 		const url = `/examination_banks/${id}.json`; | 
			
		
	
	
		
		
			
				
					|  |  | @ -313,7 +327,7 @@ class Testpaperlibrary extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 	showmodels = (id) => { |  |  |  | 	showmodels = (id) => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 		this.setState({ |  |  |  | 		this.setState({ | 
			
		
	
		
		
			
				
					
					|  |  |  | 			modalsType: true, |  |  |  | 			modalsType: true, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			titilesm: "设为公开后,所有成员均可使用试题", |  |  |  | 			titilesm: "设为公开后,所有成员均可使用试卷", | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			titiless: "是否设置为公开?", |  |  |  | 			titiless: "是否设置为公开?", | 
			
		
	
		
		
			
				
					
					|  |  |  | 			titbool: true, |  |  |  | 			titbool: true, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			timuid: id |  |  |  | 			timuid: id | 
			
		
	
	
		
		
			
				
					|  |  | 
 |