mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 09:16:46 +08:00
讲师管理bug
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user