讲师管理bug

This commit is contained in:
zhangsir
2024-11-21 16:31:03 +08:00
parent 49163a4642
commit 12a79be123
4 changed files with 10 additions and 21 deletions

View File

@@ -159,7 +159,11 @@ import {getCookieForName} from "@/api/method";
title:{
type: String,
default: null,
}
},
template:{
type: String,
default: null,
},
},
setup(props, ctx) {
const state = reactive({
@@ -283,22 +287,7 @@ import {getCookieForName} from "@/api/method";
}
};
function downTemplate() {
if (props.url==='/admin/export/importInTeacherRecord'){
window.open(
`${process.env.VUE_APP_BASE_API}/admin/export/exportInTeacherRecord?
&name=${props.name||''}`
);}
else if(props.url==='/admin/export/importOutTeacherRecord'){
window.open(
`${process.env.VUE_APP_BASE_API}/admin/export/exportOutTeacherRecord?
&name=${props.name||''}`
);
}else if(props.url==='/admin/export/exportTeacherExpense') {
window.open(
`${process.env.VUE_APP_BASE_API}/admin/export/importTeacherExpense?
&name=${props.name||''}`
);
}
window.open(`${process.env.VUE_APP_BASE}/template/${props.template}.xlsx`);
}
return {