导入导出调整

This commit is contained in:
wangxuemei
2024-10-23 14:13:41 +08:00
parent 7ba81b50b3
commit 40246afe39
7 changed files with 83 additions and 38 deletions

View File

@@ -274,7 +274,22 @@ import {getCookieForName} from "@/api/method";
}
};
function downTemplate() {
window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportHomeWorkTemplate?taskId=${props.id || ''}&type=${props.type || ''}&pid=${props.pid || ''}&thirdType=3`);
if (props.url=='/admin/export/importInTeacherRecord'){
window.open(
`${process.env.VUE_APP_BASE_API}/admin/export/importInTeacherRecord?
&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 {
window.open(
`${process.env.VUE_APP_BASE_API}/admin/export/importTeacherExpense?
&name=${props.name||''}`
);
}
}
return {