讨论导出

This commit is contained in:
lpq
2023-02-19 21:22:21 +08:00
parent 216ddac945
commit 1e18f648ef
4 changed files with 28 additions and 29 deletions

View File

@@ -300,6 +300,7 @@ const disabledRangeTime = () => ({
async function confirm() { async function confirm() {
debugger
await validate().catch(({errorFields}) => { await validate().catch(({errorFields}) => {
message.warning(errorFields[0].errors.join()); message.warning(errorFields[0].errors.join());
throw Error("数据校验不通过") throw Error("数据校验不通过")
@@ -535,4 +536,3 @@ defineExpose({openDrawer})
} }
} }
</style> </style>

View File

@@ -448,6 +448,7 @@ function confirm() {
message.warning("请输入及格线"); message.warning("请输入及格线");
return return
} }
debugger
if (taskIndex.value === -1) { if (taskIndex.value === -1) {
const list = props.taskList const list = props.taskList
list.push({name: formData.value.examinationName, type: props.type, info: {...formData.value}}) list.push({name: formData.value.examinationName, type: props.type, info: {...formData.value}})
@@ -748,4 +749,3 @@ defineExpose({openDrawer})
} }
} }
</style> </style>

View File

@@ -462,8 +462,8 @@ export default {
// 导出数据 // 导出数据
function exportTaskStu() { function exportTaskStu() {
console.log(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}&taskType=${props.datasource.type}`) console.log(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.id}&taskType=${props.datasource.type}`)
window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}&taskType=${props.datasource.type}`) window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.id}&taskType=${props.datasource.type}`)
// window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?pageNo=${state.currentPage}&pageSize=${state.pageSize}&currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}&status=${state.name}&studentName=${state.projectName}`) // window.open(`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?pageNo=${state.currentPage}&pageSize=${state.pageSize}&currentStageId=${props.datasource.chapterId}&type=${2}&pid=${props.datasource.routerId}&taskId=${props.datasource.routerTaskId}&status=${state.name}&studentName=${state.projectName}`)
} }
@@ -718,4 +718,3 @@ export default {
} }
} }
</style> </style>