From 51799eb43bfa96836df96967b2187a58ccd7bf38 Mon Sep 17 00:00:00 2001 From: dlaren Date: Sat, 16 Aug 2025 16:36:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=20PPT?= =?UTF-8?q?=E5=87=BA=E9=A2=98=E9=A1=B5=E9=9D=A2=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/paper/question/WpsPptxForm.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/paper/question/WpsPptxForm.vue b/src/views/paper/question/WpsPptxForm.vue index 4289334..7d4f4da 100644 --- a/src/views/paper/question/WpsPptxForm.vue +++ b/src/views/paper/question/WpsPptxForm.vue @@ -407,7 +407,7 @@ const formData = ref({ // 定义 pptxPoints 类型 interface PptxPoints { firstName: string; - index: string; + slideIndex: string; function: string; examName: string; examCode: string; @@ -458,7 +458,7 @@ const handleCheckChange = (data: any, _checked: boolean, _indeterminate: boolean console.log(data) const pptxPoints: PptxPoints = { firstName: '', - index: '', + slideIndex: '', function: '', examName: '', examCode: '', @@ -466,7 +466,7 @@ const handleCheckChange = (data: any, _checked: boolean, _indeterminate: boolean } if (data.functions != null && data.functions != '') { pptxPoints.firstName = chineseName.value - pptxPoints.index = textIndex.value + pptxPoints.slideIndex = textIndex.value pptxPoints.function = data.functions pptxPoints.examName = data.chineseName pptxPoints.examCode = '111' From e44ade01e5b3f3583bc5db307b3b0d814add98d4 Mon Sep 17 00:00:00 2001 From: huababa1 <2037205722@qq.com> Date: Sat, 16 Aug 2025 21:25:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91word?= =?UTF-8?q?=EF=BC=8Cexcel=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/paper/question/WpsWordForm.vue | 2 +- src/views/paper/question/WpsXlsxForm.vue | 59 ++++++++++++++++-------- 2 files changed, 40 insertions(+), 21 deletions(-) diff --git a/src/views/paper/question/WpsWordForm.vue b/src/views/paper/question/WpsWordForm.vue index 2892a1a..82c5886 100644 --- a/src/views/paper/question/WpsWordForm.vue +++ b/src/views/paper/question/WpsWordForm.vue @@ -515,9 +515,9 @@ const submitWordPoints = async () => { wordPointsInfosList = [] console.log(res) for (let i = 0; i < res.data.length; i++) { + res.data[i].scoreRate='1' 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 diff --git a/src/views/paper/question/WpsXlsxForm.vue b/src/views/paper/question/WpsXlsxForm.vue index 4cdeb05..1c7bbb9 100644 --- a/src/views/paper/question/WpsXlsxForm.vue +++ b/src/views/paper/question/WpsXlsxForm.vue @@ -308,7 +308,7 @@