|
@@ -564,7 +564,7 @@ export default {
|
|
|
this.paperId = this.$route.params.id;
|
|
|
this.parentView = this.$route.params.parentView;
|
|
|
this.initPaper();
|
|
|
- this.getreduplicateQuestions();
|
|
|
+ // this.getreduplicateQuestions();
|
|
|
this.uploadAction = QUESTION_API + "/uploadRadio/" + this.paperId;
|
|
|
this.uploadHeaders = {
|
|
|
key: this.user.key,
|
|
@@ -860,16 +860,16 @@ export default {
|
|
|
},
|
|
|
//获取重复试题
|
|
|
getreduplicateQuestions() {
|
|
|
- // this.duplicateLoading = true;
|
|
|
- // this.$http
|
|
|
- // .get(QUESTION_API + "/paper/" + this.paperId + "/reduplicate-questions")
|
|
|
- // .then((response) => {
|
|
|
- // this.reduplicateQuestions = response.data;
|
|
|
- // this.duplicateLoading = false;
|
|
|
- // this.initReduplicateQuesColor();
|
|
|
- // // var ques = document.getElementsByClassName("ques")[0];
|
|
|
- // // ques.style.display = "inline";
|
|
|
- // });
|
|
|
+ this.duplicateLoading = true;
|
|
|
+ this.$http
|
|
|
+ .get(QUESTION_API + "/paper/" + this.paperId + "/reduplicate-questions")
|
|
|
+ .then((response) => {
|
|
|
+ this.reduplicateQuestions = response.data;
|
|
|
+ this.duplicateLoading = false;
|
|
|
+ this.initReduplicateQuesColor();
|
|
|
+ // var ques = document.getElementsByClassName("ques")[0];
|
|
|
+ // ques.style.display = "inline";
|
|
|
+ });
|
|
|
},
|
|
|
initReduplicateQuesColor() {
|
|
|
var colorCount = this.reduplicateQuestions.length;
|