Pārlūkot izejas kodu

考试新增编码

WANG 6 gadi atpakaļ
vecāks
revīzija
5c2d030632

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

@@ -44,7 +44,7 @@
                     ></el-input>
                   </el-form-item>
                 </el-row>
-                <el-row>
+                <el-row v-if="examId != 'add'">
                   <el-form-item
                     label="考试编码"
                     placeholder="请输入考试编码"
@@ -299,6 +299,7 @@ export default {
               });
             });
           } else {
+            this.form.code = this.form.name;
             this.$httpWithMsg.post(url, this.form).then(response => {
               console.log(response);
               this.$notify({
@@ -335,4 +336,4 @@ export default {
 .input >>> .el-input__inner {
   -webkit-appearance: button;
 }
-</style>
+</style>

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

@@ -44,7 +44,7 @@
                     ></el-input>
                   </el-form-item>
                 </el-row>
-                <el-row>
+                <el-row v-if="examId != 'add'">
                   <el-form-item
                     label="考试编码"
                     placeholder="请输入考试编码"
@@ -1022,6 +1022,7 @@ export default {
               });
             });
           } else {
+            this.form.code = this.form.name;
             this.$httpWithMsg.post(url, this.form).then(response => {
               console.log(response);
               this.$notify({
@@ -1058,4 +1059,4 @@ export default {
 .input >>> .el-input__inner {
   -webkit-appearance: button;
 }
-</style>
+</style>

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

@@ -44,7 +44,7 @@
                     ></el-input>
                   </el-form-item>
                 </el-row>
-                <el-row>
+                <el-row v-if="examId != 'add'">
                   <el-form-item
                     label="考试编码"
                     placeholder="请输入考试编码"
@@ -498,6 +498,7 @@ export default {
               });
             });
           } else {
+            this.form.code = this.form.name;
             this.$httpWithMsg.post(url, this.form).then(response => {
               console.log(response);
               this.$notify({

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

@@ -44,7 +44,7 @@
                     ></el-input>
                   </el-form-item>
                 </el-row>
-                <el-row>
+                <el-row v-if="examId != 'add'">
                   <el-form-item
                     label="考试编码"
                     placeholder="请输入考试编码"
@@ -259,6 +259,7 @@ export default {
               });
             });
           } else {
+            this.form.code = this.form.name;
             this.$httpWithMsg.post(url, this.form).then(response => {
               console.log(response);
               this.$notify({

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

@@ -44,7 +44,7 @@
                     ></el-input>
                   </el-form-item>
                 </el-row>
-                <el-row>
+                <el-row v-if="examId != 'add'">
                   <el-form-item
                     label="考试编码"
                     placeholder="请输入考试编码"
@@ -252,6 +252,7 @@ export default {
               });
             });
           } else {
+            this.form.code = this.form.name;
             this.$httpWithMsg.post(url, this.form).then(response => {
               console.log(response);
               this.$notify({