WANG 6 éve
szülő
commit
7aab3f3c27
1 módosított fájl, 53 hozzáadás és 61 törlés
  1. 53 61
      src/modules/examwork/view/examStudent.vue

+ 53 - 61
src/modules/examwork/view/examStudent.vue

@@ -166,15 +166,15 @@
           @close="closeAddingStudentDialog"
           title="考生信息页面"
           :visible.sync="addingStudentDialog"
-          width="500px"
+          width="60%"
         >
           <el-form
             :model="examStudentForm"
             :rules="rules"
             :inline="true"
             ref="addingStudentForm"
-            inline-message
             label-width="85px"
+            class="editForm"
           >
             <el-form-item label="考试" prop="examId">
               <el-select
@@ -322,7 +322,7 @@
 
         <!-- 修改弹出窗口 -->
         <el-dialog
-          width="500px"
+          width="60%"
           @close="closeUpdateStudentDialog"
           title="考生信息页面"
           :visible.sync="updateStudentDialog"
@@ -334,7 +334,7 @@
             :inline="true"
             ref="updateStudentForm"
             label-width="85px"
-            inline-message
+            class="editForm"
           >
             <el-form-item label="考试" prop="examId">
               <el-select
@@ -485,73 +485,62 @@
         <!-- 复制弹窗 -->
         <el-dialog
           title="考生信息复制"
-          size="tiny"
+          width="500px"
           :visible.sync="studentCopyDialog"
         >
           <el-form
             :model="studentCopyForm"
             :rules="rules"
             ref="studentCopyForm"
+            class="editForm"
+            :inline="true"
+            label-width="200px"
           >
-            <el-row>
-              <el-form-item
-                label="源考试批次"
-                prop="sourceExamId"
-                :label-width="formLabelWidth"
+            <el-form-item label="源考试批次" prop="sourceExamId">
+              <el-select
+                class="input"
+                :remote-method="queryExams4CopyFrom"
+                remote
+                :loading="queryExams4CopyFromLoading"
+                filterable
+                clearable
+                v-model="studentCopyForm.sourceExamId"
+                placeholder="请选择"
               >
-                <el-select
-                  class="input"
-                  :remote-method="queryExams4CopyFrom"
-                  remote
-                  :loading="queryExams4CopyFromLoading"
-                  filterable
-                  clearable
-                  v-model="studentCopyForm.sourceExamId"
-                  placeholder="请选择"
+                <el-option
+                  v-for="item in examList4CopyFrom"
+                  :label="item.name"
+                  :value="item.id"
+                  :key="item.id"
                 >
-                  <el-option
-                    v-for="item in examList4CopyFrom"
-                    :label="item.name"
-                    :value="item.id"
-                    :key="item.id"
-                  >
-                  </el-option>
-                </el-select>
-              </el-form-item>
-            </el-row>
-            <el-row>
-              <el-form-item
-                label="目标考试批次"
-                prop="targetExamId"
-                :label-width="formLabelWidth"
+                </el-option>
+              </el-select>
+            </el-form-item>
+            <el-form-item label="目标考试批次" prop="targetExamId">
+              <el-select
+                class="input"
+                :remote-method="queryExams4CopyTo"
+                remote
+                :loading="queryExams4CopyToLoading"
+                filterable
+                clearable
+                v-model="studentCopyForm.targetExamId"
+                placeholder="请选择"
               >
-                <el-select
-                  class="input"
-                  :remote-method="queryExams4CopyTo"
-                  remote
-                  :loading="queryExams4CopyToLoading"
-                  filterable
-                  clearable
-                  v-model="studentCopyForm.targetExamId"
-                  placeholder="请选择"
+                <el-option
+                  v-for="item in examList4CopyTo"
+                  :label="item.name"
+                  :value="item.id"
+                  :key="item.id"
+                  :disabled="!item.enable"
                 >
-                  <el-option
-                    v-for="item in examList4CopyTo"
-                    :label="item.name"
-                    :value="item.id"
-                    :key="item.id"
-                    :disabled="!item.enable"
-                  >
-                  </el-option>
-                </el-select>
-              </el-form-item>
-            </el-row>
-            <el-row>
-              <div class="dialog-footer">
-                <el-button type="primary" @click="copyStudent">确 定</el-button>
-                <el-button @click="studentCopyDialog = false">取 消</el-button>
-              </div>
-            </el-row>
+                </el-option>
+              </el-select>
+            </el-form-item>
+            <div class="dialog-footer">
+              <el-button type="primary" @click="copyStudent">确 定</el-button>
+              <el-button @click="studentCopyDialog = false">取 消</el-button>
+            </div>
           </el-form>
         </el-dialog>
 
@@ -1677,6 +1666,9 @@ export default {
 </script>
 <style scoped>
 .input {
-  width: 250px;
+  width: 200px;
+}
+.editForm .el-form-item {
+  margin-bottom: 12px;
 }
 </style>