fix:导入学员模板下载

This commit is contained in:
wyx
2023-01-12 14:01:21 +08:00
parent 9ae7169f6c
commit 553fb1f736

View File

@@ -18,7 +18,7 @@
<div class="main">
<div class="minatitl">
<div class="up1">请下载</div>
<a class="up2" :href="template" target="_blank" style="cursor: pointer">模板</a>
<a class="up2" :href="locationHref + template" target="_blank" style="cursor: pointer">模板</a>
<div class="up1">按要求填写数据并导入</div>
</div>
<div class="upload">
@@ -221,7 +221,11 @@ export default {
setup(props, ctx) {
const store = useStore();
const state = reactive({
template: process.env.VUE_APP_FILE_PATH + process.env.VUE_APP_UP_LOAD_STUDENT_TEMPLATE,
locationHref:
location.href.indexOf("http://") !== -1
? "http://111.231.196.214:12016/"
: location.href.slice(0, location.href.indexOf("/m")) + "/upload/",
template: process.env.VUE_APP_UP_LOAD_STUDENT_TEMPLATE,
importStudent:
process.env.VUE_APP_BASE_API + "/admin/student/importStudent",
timers: "", // 定时器,用于清空定时器使用