|
|
@@ -263,7 +263,7 @@ export default {
|
|
|
this.remarkSetVisibleTmp = this.remarkSetVisible
|
|
|
this.curTaskId = this.taskId
|
|
|
this.curPaperId = this.paperId
|
|
|
- this.getPaperPieces(this.activeSetName,this.curPaperId)
|
|
|
+ this.getPaperPieces(this.activeSetName,this.curPaperId,this.curTaskId)
|
|
|
},
|
|
|
},
|
|
|
methods:{
|
|
|
@@ -279,15 +279,21 @@ export default {
|
|
|
this.markPointsSetVisible = false;
|
|
|
},
|
|
|
handleClick(){
|
|
|
- this.getPaperPieces(this.activeSetName,this.curPaperId);
|
|
|
+ this.getPaperPieces(this.activeSetName,this.curPaperId,this.curTaskId);
|
|
|
this.getMarkPaperTeachers();
|
|
|
},
|
|
|
addQues(){
|
|
|
|
|
|
},
|
|
|
- getPaperPieces(quetype,paper_id){
|
|
|
- this.$api.getStdQueList({"quetype":quetype,"paper_id":paper_id}).then(res=>{
|
|
|
+ getPaperPieces(quetype,paper_id,task_id){
|
|
|
+ this.$api.getStdQueList({"quetype":quetype,"paper_id":paper_id,"task_id":task_id}).then(res=>{
|
|
|
if(quetype==1){
|
|
|
+ // this.objectiveQueList = [];
|
|
|
+ // res.data.data.forEach((item,index)=>{
|
|
|
+ // item.forEach((iitem,iindex)=>{
|
|
|
+ // this.objectiveQueList.push(iitem)
|
|
|
+ // })
|
|
|
+ // })
|
|
|
this.objectiveQueList = res.data.data;
|
|
|
}else{
|
|
|
this.subjectiveQueList = res.data.data;
|
|
|
@@ -346,10 +352,10 @@ export default {
|
|
|
this.markPointsSetVisible = false
|
|
|
},
|
|
|
saveObjectiveQue(){
|
|
|
- this.$api.saveObjectiveQue({paper_id:this.curPaperId,objectiveQueList:this.objectiveQueList}).then(res=>{
|
|
|
+ this.$api.saveTaskObjectiveQue({task_id:this.curTaskId,paper_id:this.curPaperId,objectiveQueList:this.objectiveQueList}).then(res=>{
|
|
|
if(!res.data.code){
|
|
|
this.msgSuccess("成功!");
|
|
|
- this.getPaperPieces(this.activeSetName,this.curPaperId)
|
|
|
+ this.getPaperPieces(this.activeSetName,this.curPaperId,this.curTaskId)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -357,7 +363,7 @@ export default {
|
|
|
this.$api.saveSubjectiveQue({paper_id:this.curPaperId,subjectiveQueList:this.subjectiveQueList}).then(res=>{
|
|
|
if(!res.data.code){
|
|
|
this.msgSuccess("成功!");
|
|
|
- this.getPaperPieces(this.activeSetName,this.curPaperId)
|
|
|
+ this.getPaperPieces(this.activeSetName,this.curPaperId,this.curTaskId)
|
|
|
}
|
|
|
})
|
|
|
},
|