WANG 6 年之前
父节点
当前提交
3aaccbac91

+ 2 - 0
src/modules/examwork/view/offlineExam.vue

@@ -258,6 +258,8 @@ export default {
                 type: "success",
                 message: "新增成功"
               });
+              this.examId = response.data.id;
+              this.form.id = this.examId;
               this.$router.push({
                 path: "/examwork/offlineExam/" + response.data.id
               });

+ 2 - 0
src/modules/examwork/view/onlineExam.vue

@@ -955,6 +955,8 @@ export default {
                 type: "success",
                 message: "新增成功"
               });
+              this.examId = response.data.id;
+              this.form.id = this.examId;
               this.$router.push({
                 path: "/examwork/onlineExam/" + response.data.id
               });

+ 2 - 0
src/modules/examwork/view/practiceExam.vue

@@ -457,6 +457,8 @@ export default {
                 type: "success",
                 message: "新增成功"
               });
+              this.examId = response.data.id;
+              this.form.id = this.examId;
               this.$router.push({
                 path: "/examwork/practiceExam/" + response.data.id
               });

+ 2 - 0
src/modules/examwork/view/printExam.vue

@@ -218,6 +218,8 @@ export default {
                 type: "success",
                 message: "新增成功"
               });
+              this.examId = response.data.id;
+              this.form.id = this.examId;
               this.$router.push({
                 path: "/examwork/printExam/" + response.data.id
               });

+ 3 - 1
src/modules/examwork/view/traditionExam.vue

@@ -211,6 +211,8 @@ export default {
                 type: "success",
                 message: "新增成功"
               });
+              this.examId = response.data.id;
+              this.form.id = this.examId;
               this.$router.push({
                 path: "/examwork/traditionExam/" + response.data.id
               });
@@ -239,4 +241,4 @@ export default {
 .input >>> .el-input__inner {
   -webkit-appearance: button;
 }
-</style>
+</style>