【修改】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

@@ -405,8 +405,13 @@ const formData = ref({
})
let wordPointsInfosList: (typeof wordPoints)[] = []
const removePoint = (index: number) => {
list.value.splice(index, 1)
const removePoint = (row) => {
// 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, column, cellValue) {
if (cellValue === '0') return '素材文件(上传ZIP)'
@@ -512,6 +517,7 @@ const submitWordPoints = 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