|
@@ -507,7 +507,7 @@ export default {
|
|
},
|
|
},
|
|
//初始化
|
|
//初始化
|
|
async created() {
|
|
async created() {
|
|
- await this.getTplList();
|
|
|
|
|
|
+ // await this.getTplList();
|
|
let extractConfigId = this.$route.params.extractConfigId;
|
|
let extractConfigId = this.$route.params.extractConfigId;
|
|
//1.查询考试集合
|
|
//1.查询考试集合
|
|
this.getExams("");
|
|
this.getExams("");
|
|
@@ -515,22 +515,26 @@ export default {
|
|
this.isInsert = true;
|
|
this.isInsert = true;
|
|
//规则ID存在,表示是修改操作
|
|
//规则ID存在,表示是修改操作
|
|
this.getExtractConfig(extractConfigId);
|
|
this.getExtractConfig(extractConfigId);
|
|
|
|
+ } else {
|
|
|
|
+ this.getTplList();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- async getTplList() {
|
|
|
|
|
|
+ async getTplList(id) {
|
|
let courseId = this.$route.query.courseId;
|
|
let courseId = this.$route.query.courseId;
|
|
|
|
+ let params = {
|
|
|
|
+ pageNumber: 1,
|
|
|
|
+ pageSize: 10000,
|
|
|
|
+ enable: true,
|
|
|
|
+ courseId,
|
|
|
|
+ };
|
|
|
|
+ !!id && (params.id = id);
|
|
try {
|
|
try {
|
|
let res = await this.$http.post(
|
|
let res = await this.$http.post(
|
|
QUESTION_API + "/randompaper/page",
|
|
QUESTION_API + "/randompaper/page",
|
|
null,
|
|
null,
|
|
{
|
|
{
|
|
- params: {
|
|
|
|
- pageNumber: 1,
|
|
|
|
- pageSize: 10000,
|
|
|
|
- enable: true,
|
|
|
|
- courseId,
|
|
|
|
- },
|
|
|
|
|
|
+ params,
|
|
}
|
|
}
|
|
);
|
|
);
|
|
this.tplList = res.data.content || [];
|
|
this.tplList = res.data.content || [];
|
|
@@ -1032,6 +1036,8 @@ export default {
|
|
this.extractConfig2.playTime = response.data.playTime || "";
|
|
this.extractConfig2.playTime = response.data.playTime || "";
|
|
this.curId = response.data.curId || "";
|
|
this.curId = response.data.curId || "";
|
|
|
|
|
|
|
|
+ this.getTplList(response.data.randomPaperId || "");
|
|
|
|
+
|
|
//查询该考试下的课程
|
|
//查询该考试下的课程
|
|
this.$http
|
|
this.$http
|
|
.get(
|
|
.get(
|