|
@@ -22,7 +22,7 @@
|
|
@click="confirmGenPaper"
|
|
@click="confirmGenPaper"
|
|
>确定</el-button
|
|
>确定</el-button
|
|
>
|
|
>
|
|
- <el-button type="danger" plain icon="icon icon-back" @click="back"
|
|
|
|
|
|
+ <el-button type="danger" plain icon="icon icon-back" @click="toback"
|
|
>返回</el-button
|
|
>返回</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -779,7 +779,7 @@ export default {
|
|
"rootOrgId=" +
|
|
"rootOrgId=" +
|
|
this.user.rootOrgId +
|
|
this.user.rootOrgId +
|
|
"&code=" +
|
|
"&code=" +
|
|
- this.genPaper.courseNo;
|
|
|
|
|
|
+ encodeURIComponent(this.genPaper.courseNo);
|
|
this.$httpWithMsg
|
|
this.$httpWithMsg
|
|
.get(url)
|
|
.get(url)
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -821,7 +821,6 @@ export default {
|
|
this.searchPaper();
|
|
this.searchPaper();
|
|
},
|
|
},
|
|
selectChange(val) {
|
|
selectChange(val) {
|
|
- console.log("val123:");
|
|
|
|
val.forEach((element) => {
|
|
val.forEach((element) => {
|
|
element.publicSimple = 0;
|
|
element.publicSimple = 0;
|
|
element.publicMedium = 0;
|
|
element.publicMedium = 0;
|
|
@@ -877,7 +876,6 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
- console.log("空值");
|
|
|
|
this.selectPapers = [];
|
|
this.selectPapers = [];
|
|
this.totalSelect = 0;
|
|
this.totalSelect = 0;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -888,9 +886,9 @@ export default {
|
|
this.searchPaperDetailStructs();
|
|
this.searchPaperDetailStructs();
|
|
},
|
|
},
|
|
searchPaperStructs() {
|
|
searchPaperStructs() {
|
|
- console.log("bbb");
|
|
|
|
var courseNo = this.genPaper.courseNo;
|
|
var courseNo = this.genPaper.courseNo;
|
|
- var url = QUESTION_API + "/paperStruct?courseNo=" + courseNo;
|
|
|
|
|
|
+ var url =
|
|
|
|
+ QUESTION_API + "/paperStruct?courseNo=" + encodeURIComponent(courseNo);
|
|
this.loading = true;
|
|
this.loading = true;
|
|
this.$http.get(url).then((response) => {
|
|
this.$http.get(url).then((response) => {
|
|
this.paperStructs = response.data;
|
|
this.paperStructs = response.data;
|
|
@@ -909,7 +907,6 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
searchPaperDetailStructs() {
|
|
searchPaperDetailStructs() {
|
|
- console.log("this.genPaper.paperStructId:", this.genPaper.paperStructId);
|
|
|
|
for (let paperStruct of this.paperStructs) {
|
|
for (let paperStruct of this.paperStructs) {
|
|
if (paperStruct.id == this.genPaper.paperStructId) {
|
|
if (paperStruct.id == this.genPaper.paperStructId) {
|
|
this.paperDetailStructs = paperStruct.paperDetailStructs;
|
|
this.paperDetailStructs = paperStruct.paperDetailStructs;
|
|
@@ -1074,6 +1071,9 @@ export default {
|
|
this.curSelect = val;
|
|
this.curSelect = val;
|
|
this.searchPaper();
|
|
this.searchPaper();
|
|
},
|
|
},
|
|
|
|
+ toback() {
|
|
|
|
+ this.$router.push({ path: "/questions/gen_paper/1" });
|
|
|
|
+ },
|
|
back(status) {
|
|
back(status) {
|
|
if ("PASS" == status) {
|
|
if ("PASS" == status) {
|
|
this.$notify({
|
|
this.$notify({
|
|
@@ -1124,7 +1124,6 @@ export default {
|
|
setSimpleParams() {
|
|
setSimpleParams() {
|
|
var simpleParams = new Object();
|
|
var simpleParams = new Object();
|
|
for (let paper of this.tempPapers) {
|
|
for (let paper of this.tempPapers) {
|
|
- console.log("paper", paper);
|
|
|
|
if (this.genPaper.simpleGenPaperPolicy == "BY_SCORE") {
|
|
if (this.genPaper.simpleGenPaperPolicy == "BY_SCORE") {
|
|
if (!this.isNumber(paper.publicSimple)) {
|
|
if (!this.isNumber(paper.publicSimple)) {
|
|
this.$notify({
|
|
this.$notify({
|
|
@@ -1223,14 +1222,17 @@ export default {
|
|
simpleParams[paper.id] = numberParams;
|
|
simpleParams[paper.id] = numberParams;
|
|
}
|
|
}
|
|
this.genPaper.simpleParams = simpleParams;
|
|
this.genPaper.simpleParams = simpleParams;
|
|
- console.log("this.genPaper.simpleParams:", this.genPaper.simpleParams);
|
|
|
|
return true;
|
|
return true;
|
|
},
|
|
},
|
|
//查询课程下开启的课程属性
|
|
//查询课程下开启的课程属性
|
|
getCoursePropertyList() {
|
|
getCoursePropertyList() {
|
|
var courseNo = this.genPaper.courseNo;
|
|
var courseNo = this.genPaper.courseNo;
|
|
this.$http
|
|
this.$http
|
|
- .get(QUESTION_API + "/courseProperty/enable/" + courseNo)
|
|
|
|
|
|
+ .get(
|
|
|
|
+ QUESTION_API +
|
|
|
|
+ "/courseProperty/enable?courseCode=" +
|
|
|
|
+ encodeURIComponent(courseNo)
|
|
|
|
+ )
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.coursePropertyList = response.data;
|
|
this.coursePropertyList = response.data;
|
|
this.searchPaperStructs();
|
|
this.searchPaperStructs();
|