浏览代码

导入文件格式限制

Michael Wang 4 年之前
父节点
当前提交
0cf7e76555
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/features/examwork/ExamStudentImport/ExamStudentImportDialog.vue

+ 2 - 2
src/features/examwork/ExamStudentImport/ExamStudentImportDialog.vue

@@ -1,7 +1,7 @@
 <template>
   <el-dialog
     ref="dialog"
-    :title="'导入' + '考生'"
+    title="导入考生"
     width="540px"
     :visible.sync="visible"
     @close="closeDialog"
@@ -15,7 +15,7 @@
     >
       <el-row>
         <el-form-item label="选择文件">
-          <input @change="selectFile" type="file" />
+          <input @change="selectFile" type="file" accept=".xlsx,.xls" />
         </el-form-item>
         <el-form-item label="">
           {{ uploadingPercent ? ` 上传中(${uploadingPercent}%)` : "" }}