【修改】wps出题页面bug

This commit is contained in:
huababa1
2025-08-14 16:45:54 +08:00
parent e35f54abe4
commit 59612d28c8
3 changed files with 24 additions and 7 deletions

View File

@@ -415,7 +415,12 @@ interface PptxPoints {
}
let pptxPointsInfosList: PptxPoints[] = []
const removePoint = (index: number) => {
list.value.splice(index, 1)
// list.value.splice(index, 1)
for (let i = 0; i < list.value.length; i++) {
if (row.content == list.value[i].content) {
list.value.splice(i, 1)
}
}
}
function fileTypeFormatter(_row: any, _column: any, cellValue: any) {
if (cellValue === '0') return '素材文件(上传ZIP)'
@@ -525,6 +530,7 @@ const submitPptxPoints = async () => {
for (let i = 0; i < res.data.length; i++) {
var indexFlag = false
for (let x = 0; x < list.value.length; x++) {
list.value[x].scoreRate='1'
if (res.data[i].content == list.value[x].content) {
// 如果存在相同的数据话 不进入
indexFlag = true