【修改】小bug

This commit is contained in:
huababa1
2025-08-17 23:26:24 +08:00
parent bdf32f83b7
commit fabb419a30
2 changed files with 7 additions and 3 deletions

View File

@@ -504,7 +504,7 @@ const removePoint = (row) => {
}
}
}
function fileTypeFormatter(cellValue) {
function fileTypeFormatter(row, column, cellValue) {
if (cellValue === '0') return '素材文件(上传ZIP)'
if (cellValue === '1') return '考试文件'
if (cellValue === '2') return '结果文件'

View File

@@ -850,8 +850,12 @@ const handleDeletes = async () => {
type: 'warning'
})
selectedRows.value = rows.map((d: any) => d.quId) // 保存选中的行数据
await QuestionApi.removeQuestions(selectedRows.value)
message.success(t('common.delSuccess'))
const res = await QuestionApi.removeQuestions(selectedRows.value)
if (res == '删除成功') {
message.success(res)
} else {
message.error(res)
}
// 刷新列表
await getList()
} catch {}