This commit is contained in:
yuping
2023-01-12 01:37:28 +08:00
parent f8068bb712
commit c04574fc40
8 changed files with 46 additions and 57 deletions

View File

@@ -18,7 +18,7 @@
<div class="main">
<div class="minatitl">
<div class="up1">请下载</div>
<a class="up2" :href="template" style="course: pointer">模板</a>
<a class="up2" :href="template" target="_blank" style="cursor: pointer">模板</a>
<div class="up1">按要求填写数据并导入</div>
</div>
<div class="upload">
@@ -221,10 +221,9 @@ export default {
setup(props, ctx) {
const store = useStore();
const state = reactive({
template:
process.env.VUE_APP_TEMPLATE + "导入学员模版-1672998102528.xlsx",
template: process.env.VUE_APP_FILE_PATH + process.env.VUE_APP_UP_LOAD_STUDENT_TEMPLATE,
importStudent:
process.env.VUE_APP_BASE_API + "admin/student/importStudent",
process.env.VUE_APP_BASE_API + "/admin/student/importStudent",
timers: "", // 定时器,用于清空定时器使用
isAddStudent: false, // 用于判断用户是否关闭弹框需要重新获取学员列表
uploadpercent: -1,
@@ -235,11 +234,6 @@ export default {
errNum: 0, //失败数据数
downloadErrUrl: "",
showBottomBar: false, // 显示底部成功条数和失败条数
locationHref:
location.href.indexOf("http://") !== -1
? "http://111.231.196.214:12016/"
: location.href.slice(0, location.href.indexOf("/m")) + "/upload/",
userId: store.state.userInfo.id,
userName: store.state.userInfo.realName,
fileName: "",
@@ -337,9 +331,8 @@ export default {
// 下载失败数据
const downloadEeeorData = () => {
console.log(state.locationHref + state.downloadErrUrl);
if (state.downloadErrUrl !== "") {
window.open(state.locationHref + state.downloadErrUrl);
window.open(process.env.VUE_APP_FILE_PATH + state.downloadErrUrl);
}
};