|
@@ -888,7 +888,7 @@ export default {
|
|
this.$http.get(url).then((response) => {
|
|
this.$http.get(url).then((response) => {
|
|
this.paperStructs = response.data;
|
|
this.paperStructs = response.data;
|
|
for (let paperStructObj of this.paperStructs) {
|
|
for (let paperStructObj of this.paperStructs) {
|
|
- if (paperStructObj.paperStrucType == "BLUEPRINT") {
|
|
|
|
|
|
+ if (paperStructObj.type == "BLUEPRINT") {
|
|
for (let couProperty of this.coursePropertyList) {
|
|
for (let couProperty of this.coursePropertyList) {
|
|
if (couProperty.id == paperStructObj.coursePropertyId) {
|
|
if (couProperty.id == paperStructObj.coursePropertyId) {
|
|
this.blueStructs.push(paperStructObj);
|
|
this.blueStructs.push(paperStructObj);
|
|
@@ -1039,10 +1039,6 @@ export default {
|
|
this.$httpWithMsg
|
|
this.$httpWithMsg
|
|
.post(url, this.genPaper)
|
|
.post(url, this.genPaper)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- this.$notify({
|
|
|
|
- message: "组卷成功",
|
|
|
|
- type: "success",
|
|
|
|
- });
|
|
|
|
this.back(res.data.status);
|
|
this.back(res.data.status);
|
|
})
|
|
})
|
|
.finally(() => {
|
|
.finally(() => {
|
|
@@ -1060,12 +1056,12 @@ export default {
|
|
back(status) {
|
|
back(status) {
|
|
if ("PASS" == status) {
|
|
if ("PASS" == status) {
|
|
this.$notify({
|
|
this.$notify({
|
|
- message: "上传成功",
|
|
|
|
|
|
+ message: "组卷成功",
|
|
type: "success",
|
|
type: "success",
|
|
});
|
|
});
|
|
this.$router.push({ path: "/questions/gen_paper/1" });
|
|
this.$router.push({ path: "/questions/gen_paper/1" });
|
|
} else {
|
|
} else {
|
|
- this.$confirm("已开启审核功能.是否跳转到待审列表?", "上传成功", {
|
|
|
|
|
|
+ this.$confirm("已开启审核功能.是否跳转到待审列表?", "组卷成功", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning",
|
|
type: "warning",
|