- )
+ )
}
- render() {
- let { order,sortList,search,page,total_count,discipline_id }=this.state;
- let pathstype=false;
- if(this.props&&this.props.mygetHelmetapi!=null){
- let paths="/paths";
- this.props.mygetHelmetapi.navbar.map((item,key)=>{
+ render() {
+ let { order, sortList, search, page, total_count, discipline_id } = this.state;
+ let pathstype = false;
+ if (this.props && this.props.mygetHelmetapi != null) {
+ let paths = "/paths";
+ this.props.mygetHelmetapi.navbar.map((item, key) => {
var reg = RegExp(item.link);
- if(paths.match(reg)){
- if(item.hidden===true){
- pathstype=true
+ if (paths.match(reg)) {
+ if (item.hidden === true) {
+ pathstype = true
}
}
@@ -185,21 +199,21 @@ class ShixunPathSearch extends Component{
}
return (
-
- {this.state.updata===undefined?"":
}
+
+ {this.state.updata === undefined ? "" :
}
-
-
-
-
-
- - 0 ? "" : "active"}>this.changeSelect(e,undefined)}>全部
- {
- sortList && sortList.map((item,key)=>{
- return(
- - this.changeSelect(e,`${item.id}`,item.sub_disciplines.length)} key={key}>
- this.getmenu(item.sub_disciplines,item)} placement="bottomCenter">
- {item.name}
-
-
- )
- })
- }
-
-
-
-
- {/*
this.changeStatus("publish_time")}>全部*/}
- {/*
this.changeStatus("mine")}>我的*/}
-
this.changeStatus("updated_at")}>最新
-
this.changeStatus("myshixuns_count")}>最热
- {this.props.user&&this.props.user.main_site===false?"":this.props.Headertop===undefined?"":
this.getUser("/paths/new")}>+新建实践课程}
- {this.props.user&&this.props.user.main_site===true?"":this.props.Headertop===undefined?"":
- pathstype===true?"":this.props.user&&this.props.user.admin===true||this.props.user&&this.props.user.is_teacher===true||this.props.user&&this.props.user.business===true?
this.getUser("/paths/new")}>+新建实践课程:""
- }
- {/*
*/}
- {/*/!* *!/*/}
- {/*
*/}
+ }
+
+
+
+
+
+ - 0 ? "" : "active"}> this.changeSelect(e, undefined)}>全部
+ {
+ sortList && sortList.map((item, key) => {
+ return (
+ - this.changeSelect(e, `${item.id}`, item.sub_disciplines.length)} key={key}>
+ this.getmenu(item.sub_disciplines, item)} placement="bottomCenter">
+ {item.name}
+
+
+ )
+ })
+ }
+
-
- {
- this.state.pathList===null?"":total_count > 16 &&
+
+
+
+
+ {
+ this.state.pathList === null ? "" : total_count > 16 &&
- }
+ }
-
- )
+
+ )
}
}
export default ShixunPathSearch;
diff --git a/public/react/src/modules/paths/statics/index.js b/public/react/src/modules/paths/statics/index.js
index 6b14f118c..5988f113d 100644
--- a/public/react/src/modules/paths/statics/index.js
+++ b/public/react/src/modules/paths/statics/index.js
@@ -23,7 +23,7 @@ const App = (props) => {
total,
staticList,
changeParams,
- initTotal
+ initTotal,
} = props;
// const [datas, setDatas] = useState([]);
// const [sortedInfo, setSortedInfo] = useState({});
@@ -212,10 +212,12 @@ const App = (props) => {
sorter: (a, b) => a.cost_time - b.cost_time
}
];
-
+
+
useEffect(() => {
changeParams({
- page: 1
+ page: 1,
+ type: "subject_info"
});
pathId && staticList(pathId);
}, []);
@@ -224,6 +226,7 @@ const App = (props) => {
pathId && staticList(pathId);
}
+
// const {
// study_count,
// course_study_count,
@@ -334,8 +337,9 @@ const mapStateToProps = (state) => {
return {
subject_info,
other_info,
- total
+ total,
}
+
};
const mapDispatchToProps = (dispatch) => ({
diff --git a/public/react/src/modules/question/NewMyShixunModel.js b/public/react/src/modules/question/NewMyShixunModel.js
index d50f41484..4307c5ba2 100644
--- a/public/react/src/modules/question/NewMyShixunModel.js
+++ b/public/react/src/modules/question/NewMyShixunModel.js
@@ -23,6 +23,7 @@ import Bottomsubmit from "../modals/Bottomsubmit";
import QuestionModalys from "./component/QuestionModalys";
//exam_id 试卷的id
+var Undoclickable=true;
class NewMyShixunModel extends Component {
constructor(props) {
super(props);
@@ -162,11 +163,32 @@ class NewMyShixunModel extends Component {
//初始化
componentDidMount() {
- const isysladmins=this.props&&this.props.current_user&&this.props.current_user.admin?this.props.current_user.admin:false;
- const is_teacher=this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false;
+ let isysladmins=false;
+ let is_teacher=this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false;
const professional_certification=this.props&&this.props.current_user&&this.props.current_user.professional_certification?this.props.current_user.professional_certification:false;
let {defaultActiveKey} = this.props;
var defaultActiveKeys=defaultActiveKey;
+ try {
+ if(this.props){
+ if(this.props.current_user){
+ if(this.props.current_user.admin){
+ isysladmins=true;
+ }
+ else if(this.props.current_user.business){
+ isysladmins=true;
+ }
+ }
+ }
+ if(is_teacher===false){
+ if(this.props.current_user.user_identity !=="学生"){
+ //专业人士
+ is_teacher=true
+ }
+ }
+ }catch (e) {
+
+ }
+
if(isysladmins===true||(is_teacher===true&&professional_certification===true)){
defaultActiveKeys="0"
}else{
@@ -206,12 +228,33 @@ class NewMyShixunModel extends Component {
componentDidUpdate(prevProps) {
if(prevProps.current_user !== this.props.current_user) {
- debugger
- const isysladmins=this.props&&this.props.current_user&&this.props.current_user.admin?this.props.current_user.admin:false;
- const is_teacher=this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false;
+ let isysladmins=false;
+ let is_teacher=this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false;
const professional_certification=this.props&&this.props.current_user&&this.props.current_user.professional_certification?this.props.current_user.professional_certification:false;
let {defaultActiveKey} = this.props;
var defaultActiveKeys=defaultActiveKey;
+ try {
+ if(this.props){
+ if(this.props.current_user){
+ if(this.props.current_user.admin){
+ isysladmins=true;
+ }
+ else if(this.props.current_user.business){
+ isysladmins=true;
+ }
+ }
+ }
+ if(is_teacher===false){
+ if(this.props.current_user.user_identity !=="学生"){
+ //专业人士
+ is_teacher=true
+ }
+ }
+ }catch (e) {
+
+ }
+
+
if(isysladmins===true||(is_teacher===true&&professional_certification===true)){
defaultActiveKeys="0"
}else{
@@ -219,6 +262,12 @@ class NewMyShixunModel extends Component {
}
this.callback(defaultActiveKeys);
}
+ if(prevProps.Contentdata !== this.props.Contentdata){
+ this.setState({
+ Contentdata:this.props.Contentdata,
+ })
+
+ }
}
//公共和我的
@@ -680,7 +729,35 @@ class NewMyShixunModel extends Component {
}
- //选用
+
+ // 不选用 Question.js页面也有个
+ NOgetitem_baskets=(data)=>{
+ let url="/examination_banks/cancel_items.json";
+
+ axios.post(url, data)
+ .then((result) => {
+ if (result.data.status == 0) {
+ var data = {
+ 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,
+ difficulty: this.state.difficulty,
+ item_type: this.state.item_type,
+ keyword: this.state.keywords,
+ page: this.state.page,
+ per_page:10,
+ exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
+ };
+ this.getdatasy(data);
+ this.getbasket_listdata();
+ }
+ }).catch((error) => {
+ ////console.log(error);
+ })
+ }
+
+ //选用 Question.js页面也有个
getitem_baskets=(data)=>{
//选用题型可以上传单个 或者多个题型
let url="";
@@ -694,7 +771,6 @@ class NewMyShixunModel extends Component {
axios.post(url, data)
.then((result) => {
if (result.data.status == 0) {
- // this.props.showNotification(`选用成功`);
var data = {
discipline_id:this.state.discipline_id,
sub_discipline_id:this.state.sub_discipline_id,
@@ -709,9 +785,6 @@ class NewMyShixunModel extends Component {
};
this.getdatasy(data);
this.getbasket_listdata();
- // this.setState({
- // visible:true
- // })
}
}).catch((error) => {
////console.log(error);
@@ -719,63 +792,84 @@ class NewMyShixunModel extends Component {
}
// 撤销
getitem_basketss=(id)=>{
+
let url="";
if(this.props.exam_id===undefined){
- url=`/item_baskets/${id}.json`;
- axios.delete(url)
- .then((result) => {
- if (result.data.status == 0) {
- // this.props.showNotification(`撤销成功`);
- var data = {
- 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,
- difficulty: this.state.difficulty,
- item_type: this.state.item_type,
- keyword: this.state.keywords,
- page: this.state.page,
- per_page:10,
- exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
- };
- this.getdatasy(data);
- this.getbasket_listdata();
- }
- }).catch((error) => {
- ////console.log(error);
- })
+ if(Undoclickable===true) {
+ Undoclickable = false;
+ url = `/item_baskets/${id}.json`;
+ axios.delete(url)
+ .then((result) => {
+ if (result.data.status == 0) {
+ // this.props.showNotification(`撤销成功`);
+ var data = {
+ 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,
+ difficulty: this.state.difficulty,
+ item_type: this.state.item_type,
+ keyword: this.state.keywords,
+ page: this.state.page,
+ per_page: 10,
+ exam_id: this.props.exam_id === undefined ? "" : parseInt(this.props.exam_id),
+ };
+ this.getdatasy(data);
+ this.getbasket_listdata();
+ }
+ setTimeout(()=>{
+ Undoclickable=true;
+ },1000);
+
+ }).catch((error) => {
+ setTimeout(()=>{
+ Undoclickable=true;
+ },1000);
+
+ })
+ }
}else{
- url=`/examination_banks/${this.props.exam_id}/revoke_item.json`;
- axios.delete(url,{ data: {
- item_id:id===undefined?"":parseInt(id),
- }})
- .then((result) => {
- if (result.data.status == 0) {
- // this.props.showNotification(`撤销成功`);
- var data = {
- 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,
- difficulty: this.state.difficulty,
- item_type: this.state.item_type,
- keyword: this.state.keywords,
- page: this.state.page,
- per_page:10,
- exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
- };
- this.getdatasy(data);
- this.getbasket_listdata();
- }
- }).catch((error) => {
- ////console.log(error);
- })
+ if(Undoclickable===true) {
+ Undoclickable = false;
+ url = `/examination_banks/${this.props.exam_id}/revoke_item.json`;
+ axios.delete(url, {
+ data: {
+ item_id: id === undefined ? "" : parseInt(id),
+ }
+ })
+ .then((result) => {
+ if (result.data.status == 0) {
+ // this.props.showNotification(`撤销成功`);
+ var data = {
+ 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,
+ difficulty: this.state.difficulty,
+ item_type: this.state.item_type,
+ keyword: this.state.keywords,
+ page: this.state.page,
+ per_page: 10,
+ exam_id: this.props.exam_id === undefined ? "" : parseInt(this.props.exam_id),
+ };
+ this.getdatasy(data);
+ this.getbasket_listdata();
+ }
+ setTimeout(()=>{
+ Undoclickable=true;
+ },1000);
+ }).catch((error) => {
+ setTimeout(()=>{
+ Undoclickable=true;
+ },1000);
+ })
+ }
}
}
//全选试题库
- selectallquestionsonthispage=()=>{
+ selectallquestionsonthispage=(bool)=>{
var item_idsdata=[];
var arr= this.state.Contentdata.items;
@@ -783,6 +877,10 @@ class NewMyShixunModel extends Component {
if(data.item_type==="PROGRAM"){
//编程题
if(data.choosed===true){
+ if(data.program_attr.status===1){
+ //已发布
+ item_idsdata.push(data.id);
+ }
}else{
//未选用
@@ -796,7 +894,7 @@ class NewMyShixunModel extends Component {
}else{
//不是编程题
if(data.choosed===true){
-
+ item_idsdata.push(data.id);
}else{
//未选用
item_idsdata.push(data.id);
@@ -808,10 +906,21 @@ class NewMyShixunModel extends Component {
item_ids:item_idsdata,
exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
}
- this.getitem_baskets(data);
- this.setState({
- selectallquestionsonthispages:true,
- })
+
+
+ if(bool===false){
+ this.getitem_baskets(data);
+ this.setState({
+ selectallquestionsonthispages:true,
+ })
+ }else{
+ this.NOgetitem_baskets(data);
+ this.setState({
+ selectallquestionsonthispages:false,
+ })
+ }
+
+
}
//全选的状态
@@ -884,7 +993,7 @@ class NewMyShixunModel extends Component {
page, per_page, items_count, Headertop, visible, placement, modalsType, modalsTypes,basket_list,
completion_questions_count, judgement_questions_count, multiple_questions_count, practical_questions_count,
program_questions_count, single_questions_count, subjective_questions_count,selectionbools,
- modalsTypeInaudit
+ modalsTypeInaudit,Contentdata
} = this.state;
const Datacount = completion_questions_count + judgement_questions_count
@@ -893,6 +1002,8 @@ class NewMyShixunModel extends Component {
+ single_questions_count
+ subjective_questions_count;
+ // console.log("弹出框");
+ // console.log(Contentdata)
return (
@@ -962,12 +1073,13 @@ class NewMyShixunModel extends Component {
/>
{/*头部*/}
this.chakanjiexibool(e)}
getitem_basketss={(id)=>this.getitem_basketss(id)}
- selectallquestionsonthispage={()=>this.selectallquestionsonthispage()}
+ selectallquestionsonthispage={(bool)=>this.selectallquestionsonthispage(bool)}
getitem_baskets={(e)=>this.getitem_baskets(e)}
setdatafuns={(e) => this.setdatafuns(e)}
setdatafunsval={(e) => this.setdatafunsval(e)}
diff --git a/public/react/src/modules/question/Paperreview.js b/public/react/src/modules/question/Paperreview.js
index 33f137cd1..fadba71ca 100644
--- a/public/react/src/modules/question/Paperreview.js
+++ b/public/react/src/modules/question/Paperreview.js
@@ -27,6 +27,7 @@ import Comthetestpaperst from "./comthetestpaper/Comthetestpaperst";
import NewMyShixunModel from "../question/NewMyShixunModel";
import IntelligentModel from "../question/component/IntelligentModel"
//人工组卷预览
+let Changes=true;
class Paperreview extends Component {
constructor(props) {
super(props);
@@ -235,7 +236,9 @@ class Paperreview extends Component {
.then((result) => {
if (result.data.status === 0) {
// this.props.showNotification(`组卷成功`);
- this.props.history.replace('/paperlibrary');
+ // console.log(result.data.exam_id);
+ //本来调试卷库首页的
+ this.props.history.replace('/paperlibrary/see/'+result.data.exam_id);
}
}).catch((error) => {
//console.log(error);
@@ -331,20 +334,30 @@ class Paperreview extends Component {
}
//换题
Changingtopics=(id)=>{
- const url=`/examination_intelligent_settings/${this.props.match.params.id}/exchange_one_item.json`;
- let data={
- item_id:id,
+ if(Changes===true){
+ Changes=false;
+ const url=`/examination_intelligent_settings/${this.props.match.params.id}/exchange_one_item.json`;
+ let data={
+ item_id:id,
+ }
+ axios.post(url, data)
+ .then((result) => {
+ if (result.data.status == 0) {
+ //console.log(result);
+ var data = {}
+ this.getdata(data);
+ }
+ setTimeout(()=>{
+ Changes=true;
+ },1000);
+ }).catch((error) => {
+ //console.log(error);
+ setTimeout(()=>{
+ Changes=true;
+ },1000);
+ })
}
- axios.post(url, data)
- .then((result) => {
- if (result.data.status == 0) {
- //console.log(result);
- var data = {}
- this.getdata(data);
- }
- }).catch((error) => {
- //console.log(error);
- })
+
}
setIntelligentformation=(bool)=>{
@@ -384,7 +397,7 @@ class Paperreview extends Component {
{
newmyshixunmodelbool===true?
- this.setnewmyshixunmodelbool(e)}>
+ this.setnewmyshixunmodelbool(e)}>
:
""
@@ -407,7 +420,7 @@ class Paperreview extends Component {
artificialtype==="artificial"?
试题库
- 人工组卷
+ 人工组卷
试卷预览
:
@@ -418,7 +431,7 @@ class Paperreview extends Component {
:
- 试题库
+ 试题库
新增试卷
}
@@ -427,11 +440,12 @@ class Paperreview extends Component {
{
Cohetepaperbool===false?
- this.Changingtopics(e)} Replacementtype={(e)=>this.Replacementtype(e)} getdata={(data)=>this.getdata(data)} setnewmyshixunmodelbool={(e)=>this.setnewmyshixunmodelbool(e)}>
+ this.Changingtopics(e)} Replacementtype={(e)=>this.Replacementtype(e)} getdata={(data)=>this.getdata(data)} setnewmyshixunmodelbool={(e)=>this.setnewmyshixunmodelbool(e)}>
:
this.getcontentMdRef(ref)}
setitem_type={(item) => this.setitem_type(item)}
@@ -449,7 +463,8 @@ class Paperreview extends Component {
this.setCohetepaperbool(bool)}
- onSubmits={() => this.preservation()} url={ artificialtype==="artificial"?'/question':'/paperlibrary'}>
+ Cohetepaperbool={this.state.Cohetepaperbool}
+ onSubmits={() => this.preservation()} url={ artificialtype==="artificial"?'/problemset':'/paperlibrary'}>
)
diff --git a/public/react/src/modules/question/Paperreview_item.js b/public/react/src/modules/question/Paperreview_item.js
index 0156b3211..a4c5e5773 100644
--- a/public/react/src/modules/question/Paperreview_item.js
+++ b/public/react/src/modules/question/Paperreview_item.js
@@ -85,9 +85,17 @@ class Paperreview_item extends Component {
const positions = this.props.single_questions.questions[result.destination.index].position;
const url = `/item_baskets/${ids}/adjust_position.json`
- var data = {
- position: positions
+ if(this.props.match.params.type==="Intelligence") {
+ var data = {
+ position: positions,
+ exam_setting_id:this.props.match.params.id,
+ }
+ }else {
+ var data = {
+ position: positions
+ }
}
+
axios.post(url, data)
.then((result) => {
if (result.data.status == 0) {
@@ -104,8 +112,18 @@ class Paperreview_item extends Component {
const ids = this.props.multiple_questions.questions[result.source.index].id;
const positions = this.props.multiple_questions.questions[result.destination.index].position;
const url = `/item_baskets/${ids}/adjust_position.json`
- var data = {
- position: positions
+
+ if(this.props.match.params.type==="Intelligence") {
+ var data = {
+ position: positions,
+ exam_setting_id:this.props.match.params.id,
+ }
+
+ }else {
+ var data = {
+ position: positions
+ }
+
}
axios.post(url, data)
.then((result) => {
@@ -125,8 +143,18 @@ class Paperreview_item extends Component {
const ids = this.props.judgement_questions.questions[result.source.index].id;
const positions = this.props.judgement_questions.questions[result.destination.index].position;
const url = `/item_baskets/${ids}/adjust_position.json`
- var data = {
- position: positions
+
+
+ if(this.props.match.params.type==="Intelligence") {
+ var data = {
+ position: positions,
+ exam_setting_id:this.props.match.params.id,
+ }
+
+ }else {
+ var data = {
+ position: positions
+ }
}
axios.post(url, data)
.then((result) => {
@@ -145,8 +173,18 @@ class Paperreview_item extends Component {
const ids = this.props.program_questions.questions[result.source.index].id;
const positions = this.props.program_questions.questions[result.destination.index].position;
const url = `/item_baskets/${ids}/adjust_position.json`
- var data = {
- position: positions
+
+
+
+ if(this.props.match.params.type==="Intelligence") {
+ var data = {
+ position: positions,
+ exam_setting_id:this.props.match.params.id,
+ }
+ }else {
+ var data = {
+ position: positions
+ }
}
axios.post(url, data)
.then((result) => {
@@ -176,22 +214,43 @@ class Paperreview_item extends Component {
}
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" : '',
-
+ if(this.props.match.params.type==="Intelligence") {
+ //智能选题
+ 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" : '',
+ exam_setting_id:this.props.match.params.id,
+ }
+ 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);
+ })
+ }else{
+ 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);
+ })
}
- 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)=>{
@@ -239,24 +298,49 @@ class Paperreview_item extends Component {
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);
- });
+ if(this.props.match.params.type==="Intelligence") {
+ //智能组卷
+ const url = `/item_baskets/delete_item_type.json`;
+ axios.delete((url), {
+ data: {
+ item_type: names,
+ exam_setting_id:this.props.match.params.id,
+ }
+ })
+ .then((response) => {
+ if (response.data.status == 0) {
+ // this.props.showNotification('大题删除成功');
+ this.props.getdata({});
+ this.setState({
+ titilesms: ""
+ })
+ }
+ })
+ .catch(function (error) {
+ ////console.log(error);
+ });
+
+ }else{
+ 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);
+ });
+ }
+
@@ -271,17 +355,35 @@ class Paperreview_item extends Component {
})
}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) {
+ if(this.props.match.params.type==="Intelligence"){
+ //智能组卷
+ const url = `/item_baskets/${this.state.item_bank_id}.json`;
+ axios.delete(url, { data: {
+ exam_setting_id: this.props.match.params.id,
+ }})
+ .then((response) => {
+ if (response.data.status == 0) {
+ // this.props.showNotification('试题删除成功');
+ this.props.getdata({});
+ }
+ })
+ .catch(function (error) {
+
+ });
+ }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,
@@ -291,7 +393,8 @@ class Paperreview_item extends Component {
}
showsetmodalsTypedels=(id,bool,type)=>{
- debugger
+ console.log("Paperreview_item");
+
this.setState({
item_bank_id:id,
})
@@ -360,7 +463,7 @@ class Paperreview_item extends Component {
}
jixuxuantioncli = () => {
- this.props.history.replace("/question");
+ this.props.history.replace("/problemset");
}
showparagraphs = (e,name) => {
@@ -394,6 +497,8 @@ class Paperreview_item extends Component {
modalsTypeys
} = this.state;
let {single_questions, multiple_questions, judgement_questions, program_questions, all_score} = this.props;
+ console.log("this.props");
+ console.log(this.props);
return (
{
diff --git a/public/react/src/modules/question/Paperreview_items.js b/public/react/src/modules/question/Paperreview_items.js
index 75ed4a248..ba377f35f 100644
--- a/public/react/src/modules/question/Paperreview_items.js
+++ b/public/react/src/modules/question/Paperreview_items.js
@@ -61,6 +61,9 @@ class Paperreview_items extends Component {
// //console.log(object);
// //console.log("Paperreview_items");
// //console.log(object.item_id);
+ //这里换题修改过
+ //这里删除修改过
+ // /Integeneration/Intelligence/ 换题item_id 删除item_id
return (
{
diff --git a/public/react/src/modules/question/Paperreview_single.js b/public/react/src/modules/question/Paperreview_single.js
index 4066658b9..7193229d8 100644
--- a/public/react/src/modules/question/Paperreview_single.js
+++ b/public/react/src/modules/question/Paperreview_single.js
@@ -18,6 +18,7 @@ import NoneData from './component/NoneData';
import './questioncss/questioncom.css';
import '../tpm/newshixuns/css/Newshixuns.css';
import QuillForEditor from "../../common/quillForEditor";
+import QuestionModalPicture from "./component/QuestionModalPicture";
const tagArray = [
'A.', 'B.', 'C.', 'D.', 'E.', 'F.', 'G.', 'H.', 'I.',
@@ -35,6 +36,8 @@ class Paperreview_single extends Component {
questions: 0,
totalscore: 0,
total: 0,
+ url: ""
+
}
}
@@ -67,9 +70,20 @@ class Paperreview_single extends Component {
Singlemagaziness = () => {
}
-
+ handleShowUploadImage = (url) => {
+ // console.log('==============>>>>>>>>>>>>',url);
+ // setUrl(url);
+ this.setState({
+ url:url
+ })
+ }
+ handleClose=()=>{
+ this.setState({
+ url:'',
+ })
+ }
render() {
- let {questions, totalscore, total, items} = this.state;
+ let {questions, totalscore, total, items,url} = this.state;
let {objectsingle, indexx, paperreviewsingleindex, indexxy,name} = this.props;
@@ -94,12 +108,30 @@ class Paperreview_single extends Component {
const options = [
'bold', // 加粗
]
+
+ try {
+ if(itemsnamesy.constructor === Object){
+ // console.log("是对象");
+ // console.log(itemsnamesy);
+ }else {
+ // console.log("不是对象");
+ // console.log(itemsnamesy);
+ itemsnamesy=itemsnamesy+"";
+ }
+ }catch (e) {
+
+ }
return (
this.props.showparagraphs(indexxy,name)} style={{
minHeight: "114px",
}}>
+ {url?
+
this.handleClose()}>
+ :
+ ""
+ }
+ {
+ mydisplay===true?
+
+
+ :""
+ }
+ {
+ mydisplay===true?
+
+
+ :""
+ }
{
visible===true?
:""
}
- {
- visible===true?
+
- :""}
{
modalsTypes===true?
this.modalCancels()}
@@ -895,19 +1028,7 @@ class Question extends Component {
`
}
- {
- isysladmins===true?
- this.showDrawer()}
- Headertop={Headertop}
-
- />
- :
- is_teacher===true&&professional_certification===true?
+
- :
-
- ""
- }
-
{/*顶部*/}
@@ -943,7 +1059,7 @@ class Question extends Component {
chakanjiexiboolindex={this.state.chakanjiexiboolindex}
chakanjiexibool={(e)=>this.chakanjiexibool(e)}
getitem_basketss={(id)=>this.getitem_basketss(id)}
- selectallquestionsonthispage={()=>this.selectallquestionsonthispage()}
+ selectallquestionsonthispage={(bool)=>this.selectallquestionsonthispage(bool)}
getitem_baskets={(e)=>this.getitem_baskets(e)}
setdatafuns={(e) => this.setdatafuns(e)}
setdatafunsval={(e) => this.setdatafunsval(e)}
@@ -974,7 +1090,7 @@ class Question extends Component {
{
`
.ant-drawer-content-wrapper{
- width: 200px !important;
+ width: 160px !important;
overflow:hidden;
margin-top: 62px;
}
@@ -1022,8 +1138,8 @@ class Question extends Component {
""
:
单选题{'('}{single_questions_count}{')'}
-
单选题{'('}{single_questions_count}{')'}
+
this.showQuestionModals("SINGLE")}>
}
@@ -1033,8 +1149,8 @@ class Question extends Component {
:
多选题{'('}{multiple_questions_count}{')'}
-
多选题{'('}{multiple_questions_count}{')'}
+
this.showQuestionModals("MULTIPLE")}>
}
@@ -1044,8 +1160,8 @@ class Question extends Component {
:
判断题{'('}{judgement_questions_count}{')'}
-
判断题{'('}{judgement_questions_count}{')'}
+
this.showQuestionModals("JUDGMENT")}>
}
@@ -1055,8 +1171,8 @@ class Question extends Component {
:
填空题{'('}{completion_questions_count}{')'}
-
填空题{'('}{completion_questions_count}{')'}
+
this.showQuestionModals("COMPLETION")}>
}
@@ -1066,8 +1182,8 @@ class Question extends Component {
:
简答题{'('}{subjective_questions_count}{')'}
-
简答题{'('}{subjective_questions_count}{')'}
+
this.showQuestionModals("SUBJECTIVE")}>
}
@@ -1077,8 +1193,8 @@ class Question extends Component {
:
实训题{'('}{practical_questions_count}{')'}
-
实训题{'('}{practical_questions_count}{')'}
+
}
@@ -1088,8 +1204,8 @@ class Question extends Component {
:
编程题{'('}{program_questions_count}{')'}
-
编程题{'('}{program_questions_count}{')'}
+
this.showQuestionModals("PROGRAM")}>
}
diff --git a/public/react/src/modules/question/Questionitem_banks.js b/public/react/src/modules/question/Questionitem_banks.js
index 11605ec6d..aade5de2e 100644
--- a/public/react/src/modules/question/Questionitem_banks.js
+++ b/public/react/src/modules/question/Questionitem_banks.js
@@ -1,5 +1,5 @@
import React, {Component} from "react";
-import {Link, NavLink} from 'react-router-dom';
+import {Link, NavLink,Prompt} from 'react-router-dom';
import {WordsBtn, ActionBtn, SnackbarHOC, getImageUrl,queryString} from 'educoder';
import axios from 'axios';
import {
@@ -22,6 +22,7 @@ import JudquestionEditor from "./component/JudquestionEditor";
import Bottomsubmit from "../../modules/modals/Bottomsubmit";
import { connect } from 'react-redux';
import actions from "../../redux/actions";
+var restricte=false;
class Questionitem_banks extends Component {
constructor(props) {
super(props);
@@ -37,7 +38,8 @@ class Questionitem_banks extends Component {
knowledgepoints: [],
disciplmy:[],
pages:1,
- }
+
+ }
}
@@ -172,6 +174,20 @@ class Questionitem_banks extends Component {
}
+ componentWillMount () {
+ // 拦截判断是否离开当前页面
+ window.addEventListener('beforeunload', this.beforeunload);
+ }
+ componentWillUnmount () {
+ // 销毁拦截判断是否离开当前页面
+ window.removeEventListener('beforeunload', this.beforeunload);
+ }
+ beforeunload (e) {
+ let confirmationMessage = '你确定离开此页面吗?';
+ (e || window.event).returnValue = confirmationMessage;
+ return confirmationMessage;
+ }
+
getdata = (data) => {
// const url=`/item_banks.json`;
@@ -295,7 +311,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
// this.props.showNotification(`新增单选题成功`);
- this.props.history.replace('/question');
+ this.restricte=true;
+ this.props.history.replace('/problemset');
}
}).catch((error) => {
@@ -306,7 +323,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
// this.props.showNotification(`编辑单选题成功`);
- this.props.history.replace('/question');
+ this.restricte=true;
+ this.props.history.replace('/problemset');
}
@@ -373,7 +391,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
// this.props.showNotification(`新增多选题成功`);
- this.props.history.replace('/question');
+ this.restricte=true;
+ this.props.history.replace('/problemset');
}
@@ -386,7 +405,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
// this.props.showNotification(`编辑多选题成功`);
- this.props.history.replace('/question');
+ this.restricte=true;
+ this.props.history.replace('/problemset');
}
@@ -440,7 +460,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
// this.props.showNotification(`新增判断题成功`);
- this.props.history.replace('/question');
+ this.restricte=true;
+ this.props.history.replace('/problemset');
}
}).catch((error) => {
@@ -452,7 +473,8 @@ class Questionitem_banks extends Component {
.then((result) => {
if (result.data.status == 0) {
// this.props.showNotification(`编辑判断题成功`);
- this.props.history.replace('/question');
+ this.restricte=true;
+ this.props.history.replace('/problemset');
}
}).catch((error) => {
@@ -473,17 +495,24 @@ class Questionitem_banks extends Component {
myrbkc.push(myda.id);
}
- this.props.setOjInitialValue({
- difficult: Getdatasdata[0].rbnd,
- sub_discipline_id: Getdatasdata[3].rbkc[1],
- tag_discipline_id: myrbkc,
- });
+ // this.props.setOjInitialValue({
+ // difficult: Getdatasdata[0].rbnd,
+ // sub_discipline_id: Getdatasdata[3].rbkc[1],
+ // tag_discipline_id: myrbkc,
+ // });
+
+
let arrays=myrbkc.join(',');
// console.log("开始打印了");
// console.log(arrays);
+ this.restricte=true;
+ window.open(`/problems/new?difficult=${Getdatasdata[0].rbnd}&sub_discipline_id=${Getdatasdata[3].rbkc[1]}&tag_discipline_id=${arrays}&newoj=1&pages=${this.state.pages}`);
+ setTimeout(() => {
+ this.restricte=true;
+ }, 1000);
+ // this.props.history.replace( `/problems/new?difficult=${Getdatasdata[0].rbnd}&sub_discipline_id=${Getdatasdata[3].rbkc[1]}&tag_discipline_id=${arrays}&newoj=1&pages=${this.state.pages}`);
- window.open( `/problems/new?difficult=${Getdatasdata[0].rbnd}&sub_discipline_id=${Getdatasdata[3].rbkc[1]}&tag_discipline_id=${arrays}&newoj=1&pages=${this.state.pages}`);
}
@@ -498,20 +527,30 @@ class Questionitem_banks extends Component {
}
render() {
- let {page, limit, count, Headertop, visible, placement, modalsType, item_type} = this.state;
+ let {page, limit, count, Headertop, visible, placement, modalsType, item_type,restricte} = this.state;
const params = this.props && this.props.match && this.props.match.params;
// ////console.log(params);
return (
+ {
+ restricte===false?
+
'你确定离开此页面吗?'}
+ />
+ :
+ ""
+ }
+
@@ -408,7 +427,7 @@ class ChoquesEditor extends Component{
autoFocus={false}
imgAttrs={{width: '146px', height: '136px'}}
style={{ height: '166px'}}
- placeholder="请您输入题干"
+ placeholder="请您输入选项"
options={options}
value={item}
onContentChange={(value,quill) => this.onOptionContentChange(value,quill,index)}
@@ -418,7 +437,7 @@ class ChoquesEditor extends Component{
autoFocus={false}
imgAttrs={{width: '146px', height: '136px'}}
style={{ height: '166px'}}
- placeholder="请您输入题干"
+ placeholder="请您输入选项"
options={options}
value={JSON.parse(item)}
onContentChange={(value,quill) => this.onOptionContentChange(value,quill,index)}
diff --git a/public/react/src/modules/question/component/Contentpart.js b/public/react/src/modules/question/component/Contentpart.js
index 6b6c57a43..b58dc9922 100644
--- a/public/react/src/modules/question/component/Contentpart.js
+++ b/public/react/src/modules/question/component/Contentpart.js
@@ -17,6 +17,8 @@ import NoneDatas from '../component/NoneDatas';
import LoadingSpin from '../../../common/LoadingSpin';
import Contentquestionbank from "./Contentquestionbank";
import Listjihe from "./Listjihe";
+import Certifiedprofessional from "../../modals/Certifiedprofessional";
+import QuestionModalPicture from '../component/QuestionModalPicture.js'
const { TabPane } = Tabs;
const Search = Input.Search;
class Contentpart extends Component {
@@ -25,25 +27,114 @@ class Contentpart extends Component {
this.state = {
page:1,
chakanjiexibool:false,
+ mydisplay:false,
+ occupation:2,
+ url: "",
+ isysladmins:false,
}
}
//初始化
componentDidMount(){
+ let isysladmins=false;
+ if(this.props){
+ if(this.props.current_user){
+ if(this.props.current_user.admin){
+ isysladmins=true;
+ }
+ else if(this.props.current_user.business){
+ isysladmins=true;
+ }
+ }
+ }
+ this.setState({
+ isysladmins:isysladmins
+ })
}
+ handleShowUploadImage = (url) => {
+ // console.log('==============>>>>>>>>>>>>',url);
+ // setUrl(url);
+ this.setState({
+ url:url
+ })
+ }
+ handleClose=()=>{
+ this.setState({
+ url:'',
+ })
+ }
chakanjiexibool=(index)=>{
+ if(this.props.current_user.professional_certification===false&&this.state.isysladmins===false){
+ this.HideAddcoursestypess(2);
+ return
+ }
this.props.chakanjiexibool(index);
}
+
+ showmodels=(e)=>{
+ if(this.props.current_user.professional_certification===false&&this.state.isysladmins===false){
+ this.HideAddcoursestypess(2);
+ return
+ }
+ this.props.showmodels(e)
+ }
+
+ showmodelsInaudit=(e)=>{
+ if(this.props.current_user.professional_certification===false&&this.state.isysladmins===false){
+ this.HideAddcoursestypess(2);
+ return
+ }
+ this.props.showmodelsInaudit(e)
+ }
+
+ showmodelysl=(e)=>{
+ if(this.props.current_user.professional_certification===false&&this.state.isysladmins===false){
+ this.HideAddcoursestypess(2);
+ return
+ }
+ this.props.showmodelysl(e)
+ }
+
+
+
+
+
+
componentDidUpdate(prevProps) {
if(prevProps.current_user !== this.props.current_user) {
- const isysladmins=this.props&&this.props.current_user&&this.props.current_user.admin?this.props.current_user.admin:false;
- const is_teacher=this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false;
+ let isysladmins=false;
+ let is_teacher=this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false;
const professional_certification=this.props&&this.props.current_user&&this.props.current_user.professional_certification?this.props.current_user.professional_certification:false;
let {defaultActiveKey} = this.props;
var defaultActiveKeys=defaultActiveKey;
+ try {
+ if(this.props){
+ if(this.props.current_user){
+ if(this.props.current_user.admin){
+ isysladmins=true;
+ }
+ else if(this.props.current_user.business){
+ isysladmins=true;
+ }
+ }
+ }
+
+ if(is_teacher===false){
+ if(this.props.current_user.user_identity !=="学生"){
+ //专业人士
+ is_teacher=true
+ }
+ }
+ }catch (e) {
+
+ }
+ this.setState({
+ isysladmins:isysladmins
+ })
+
if(isysladmins===true||(is_teacher===true&&professional_certification===true)){
defaultActiveKeys="0"
}else{
@@ -52,7 +143,26 @@ class Contentpart extends Component {
this.props.callback(defaultActiveKeys);
}
}
+ HideAddcoursestypess=(i)=>{
+ console.log("调用了");
+ this.setState({
+ mydisplay:true,
+ occupation:i,
+ })
+ }
+
+ mydisplayHidedel=()=>{
+ this.setState({
+ mydisplay:false,
+ })
+ }
+
xinzenw=(e)=>{
+ //只限制了教师
+ if(this.props.current_user.professional_certification===false&&this.state.isysladmins===false){
+ this.HideAddcoursestypess(2);
+ return
+ }
var urls="";
if(this.props.discipline_id){
// if(urls==="?"){
@@ -91,17 +201,36 @@ class Contentpart extends Component {
}
- this.props.history.push("/question/newitem?pages="+this.props.pages+urls);
+ this.props.history.push("/problemset/newitem?pages="+this.props.pages+urls);
}
render() {
- let {page}=this.state;
+ let {page,mydisplay,url}=this.state;
let {defaultActiveKey,item_type,booljupyterurls}=this.props;
const defaultActiveKeys=defaultActiveKey+'';
- const isysladmins=this.props&&this.props.current_user&&this.props.current_user.admin?this.props.current_user.admin:false;
- const is_teacher=this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false;
+ let isysladmins=false;
+ let is_teacher=this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false;
const professional_certification=this.props&&this.props.current_user&&this.props.current_user.professional_certification?this.props.current_user.professional_certification:false;
+ try {
+ if(is_teacher===false){
+ if(this.props.current_user.user_identity !=="学生"){
+ //专业人士
+ is_teacher=true
+ }
+ }
+ if(this.props){
+ if(this.props.current_user){
+ if(this.props.current_user.admin){
+ isysladmins=true;
+ }
+ else if(this.props.current_user.business){
+ isysladmins=true;
+ }
+ }
+ }
+ }catch (e) {
+ }
const content = (
+ {url?
+
this.handleClose()}>
+ :
+ ""
+ }
+ {
+ mydisplay===true?
+
+
+ :""
+ }
+ {
+ mydisplay===true?
+
+
+ :""
+ }
@@ -166,7 +321,7 @@ class Contentpart extends Component {
{
- isysladmins===true||(is_teacher===true&&professional_certification===true)?
+ isysladmins===true||is_teacher===true?
this.props.callback(e)}>
@@ -192,12 +347,13 @@ class Contentpart extends Component {
`
.xaxisreverseorder .ant-input-group-addon{
- width: 60px !important;
-
+ width: 48px !important;
+
}
- .xaxisreverseorder .ant-input-lg {
- height: 41px !important;}
+ .xaxisreverseorder .ant-input-wrapper .ant-input-group-addon button .ant-input-lg {
+ height: 39px !important;
+ }
.xaxisreverseorder .ant-popover{
top: 30px !important;
@@ -207,14 +363,14 @@ class Contentpart extends Component {
.xaxisreverseorder .ant-popover-inner-content {
padding:0px !important;
}
-
+
`
}
{
defaultActiveKey===0||defaultActiveKey==="0"?
- isysladmins===true||(is_teacher===true&&professional_certification===true)?
+ isysladmins===true||is_teacher===true?
this.props.Isitapopup&&this.props.Isitapopup==="true"?
""
:
@@ -247,7 +403,7 @@ class Contentpart extends Component {
defaultActiveKey===0||defaultActiveKey==="0"?
this.props.Isitapopup&&this.props.Isitapopup==="true"?
this.props.setdatafuns(value)} />
:
{
defaultActiveKey===1||defaultActiveKey==="1"?
- this.props.selectallquestionsonthispage()} >
+ this.props.selectallquestionsonthispage(bool)} >
:""
}
{
defaultActiveKey===0||defaultActiveKey==="0"?
- this.props.selectallquestionsonthispage()}>
+ this.props.selectallquestionsonthispage(bool)}>
:""
}
@@ -320,9 +476,12 @@ class Contentpart extends Component {
pages={this.props.pages}
getitem_basketss={(id)=>this.props.getitem_basketss(id)}
getitem_baskets={(e)=>this.props.getitem_baskets(e)}
- showmodels={(e)=>this.props.showmodels(e)}
- showmodelysl={(e)=>this.props.showmodelysl(e)}
- showmodelsInaudit={(e)=>this.props.showmodelsInaudit(e)}
+ showmodels={(e)=>this.showmodels(e)}
+ showmodelysl={(e)=>this.showmodelysl(e)}
+ showmodelsInaudit={(e)=>this.showmodelsInaudit(e)}
+ handleShowUploadImage={(e)=>this.handleShowUploadImage(e)}
+ handleClose={()=>this.handleClose()}
+
>
diff --git a/public/react/src/modules/question/component/Contentquestionbank.js b/public/react/src/modules/question/component/Contentquestionbank.js
index 79e8bbb88..e6a724fef 100644
--- a/public/react/src/modules/question/component/Contentquestionbank.js
+++ b/public/react/src/modules/question/component/Contentquestionbank.js
@@ -50,9 +50,9 @@ class Contentquestionbank extends Component {
{
selectionbools===true?
-
this.props.selectallquestionsonthispage()} disabled>
+
this.props.selectallquestionsonthispage(this.props.selectallquestionsonthispages)} >
:
-
this.props.selectallquestionsonthispage()}>
+
this.props.selectallquestionsonthispage(this.props.selectallquestionsonthispages)}>
}
选用本页全部试题
diff --git a/public/react/src/modules/question/component/Headplugselections.js b/public/react/src/modules/question/component/Headplugselections.js
index 4da7a57e3..2f315a0d6 100644
--- a/public/react/src/modules/question/component/Headplugselections.js
+++ b/public/react/src/modules/question/component/Headplugselections.js
@@ -260,7 +260,7 @@ class Headplugselections extends Component {
disciplinesdata&&disciplinesdata.map((item,key)=>{
return(
item.sub_disciplines.length>0?
-
trigger.parentNode} overlay={ overlaymenu(item.sub_disciplines,item.id)} key={key} placement={"bottomRight"}>
+ trigger.parentNode} overlay={ overlaymenu(item.sub_disciplines,item.id)} key={key} placement="bottomLeft">
this.shixunserdchAlls(item.sub_disciplines,item.id)}>
{item.name}
@@ -305,7 +305,7 @@ class Headplugselections extends Component {
}
this.settixingtixing(null)}>全部
-
this.settixingtixing("PROGRAM")}>编程题
+ {/*
this.settixingtixing("PROGRAM")}>编程题*/}
this.settixingtixing("SINGLE")}>单选题
this.settixingtixing("MULTIPLE")}>多选题
this.settixingtixing("JUDGMENT")}>判断题
diff --git a/public/react/src/modules/question/component/Itembankstop.js b/public/react/src/modules/question/component/Itembankstop.js
index 126dc6bc8..65a3b1b51 100644
--- a/public/react/src/modules/question/component/Itembankstop.js
+++ b/public/react/src/modules/question/component/Itembankstop.js
@@ -805,7 +805,7 @@ class Itembankstop extends Component {
)(