zhangjie 1 ano atrás
pai
commit
674c8aa3f9

+ 5 - 3
src/modules/base/components/course-simple/ModifyStudentSimple.vue

@@ -55,14 +55,16 @@
     </div>
     <!-- import -->
     <div v-if="curTab === 'import'" class="tab-body">
-      <el-button type="success" icon="el-icon-download"
-        ><a :href="downloadUrl" :download="dfilename">模板下载</a></el-button
+      <el-button
+        type="success"
+        icon="el-icon-download"
+        @click="downloadTemplate('teachClassStudent')"
+        >模板下载</el-button
       >
       <upload-button
         btn-icon="el-icon-circle-plus-outline"
         btn-content="批量导入"
         btn-type="success"
-        :download-handle="() => downloadTemplate('teachClassStudent')"
         :upload-data="uploadData"
         :format="['xls', 'xlsx']"
         accept=".xls,.xlsx"