--fix 作业下载模板

This commit is contained in:
yuping
2023-01-14 01:03:13 +08:00
parent 4e4655f378
commit 14cd052ec0
7 changed files with 13 additions and 5 deletions

View File

@@ -209,6 +209,10 @@ export default {
type: Number,
default: null,
},
pid: {
type: Number,
default: null,
},
searchTaskList: {
type: Function,
default: null,
@@ -352,10 +356,7 @@ export default {
}
};
function downTemplate() {
window.open(
process.env.VUE_APP_FILE_PATH +
process.env.VUE_APP_UP_LOAD_HOMEWORK_TEMPLATE
);
window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportHomeWorkTemplate?taskId=${props.id || ''}&type=${props.type || ''}&pid=${props.pid || ''}&thirdType=3`);
}
return {