|
@@ -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"
|