From f7a425e367f56023f53d0a6a686d27dd6e40fd49 Mon Sep 17 00:00:00 2001
From: wyw <571921741@qq.com>
Date: Thu, 5 Mar 2026 14:09:20 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E9=80=9A=E7=9F=A5=E3=80=81?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95=20=E6=B7=BB=E5=8A=A0=E7=BC=96=E5=8F=B7?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=20=E8=AF=95=E9=A2=98=E6=9F=A5=E7=9C=8B=20?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=80=83=E8=AF=95=E7=AD=94=E6=A1=88=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=20=E6=B7=BB=E5=8A=A0=20=E4=BD=8D=E6=8E=A9=E7=A0=81=20?=
=?UTF-8?q?=E5=85=AC=E5=85=B1=E6=96=B9=E6=B3=95=20=20=E8=8E=B7=E5=8F=96?=
=?UTF-8?q?=E5=A4=9A=E9=80=89=E7=BB=93=E6=9E=9C=20=E7=AD=94=E9=A2=98=20?=
=?UTF-8?q?=E5=A4=9A=E9=80=89=20=E8=AE=A1=E7=AE=97=E7=BB=93=E6=9E=9C=20?=
=?UTF-8?q?=E5=8A=A0break=20=E5=87=8F=E5=B0=91=E5=BE=AA=E7=8E=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/apply/subPages/SE/1trainNotifyShow.vue | 4 ++
pages/apply/subPages/SE/2trainRecordShow.vue | 4 ++
pages/apply/subPages/SE/7answerPageEdit.vue | 64 ++++++++++++++------
3 files changed, 55 insertions(+), 17 deletions(-)
diff --git a/pages/apply/subPages/SE/1trainNotifyShow.vue b/pages/apply/subPages/SE/1trainNotifyShow.vue
index 8c84fd0..3b521db 100644
--- a/pages/apply/subPages/SE/1trainNotifyShow.vue
+++ b/pages/apply/subPages/SE/1trainNotifyShow.vue
@@ -9,6 +9,10 @@
+
+
+
diff --git a/pages/apply/subPages/SE/2trainRecordShow.vue b/pages/apply/subPages/SE/2trainRecordShow.vue
index 2f37cd3..f245551 100644
--- a/pages/apply/subPages/SE/2trainRecordShow.vue
+++ b/pages/apply/subPages/SE/2trainRecordShow.vue
@@ -9,6 +9,10 @@
+
+
+
diff --git a/pages/apply/subPages/SE/7answerPageEdit.vue b/pages/apply/subPages/SE/7answerPageEdit.vue
index 9f484d5..2022524 100644
--- a/pages/apply/subPages/SE/7answerPageEdit.vue
+++ b/pages/apply/subPages/SE/7answerPageEdit.vue
@@ -44,7 +44,7 @@
-
+
@@ -73,25 +73,41 @@
{{(index+1)+'. '+ item.Nav_Test.NAME+getType(item.Nav_Test.TYPE)}}
-
-
- -->
+
+
+
+
+
+
+
+
+ @change="checkboxChange($event,item,item.ID)" placement="column">
+ v-for="(item3, index3) in radiolist2[item.ID]" :key="item3.name"
+ :label="item3.name" :name="item3.value" :disabled="readonly">
@@ -121,7 +137,8 @@
extendRule,
guid,
initFilter,
- initFilterGroup
+ initFilterGroup,
+ getSelectedOptions
} from '../../../../utils/common'
import {
getRequest,
@@ -147,10 +164,12 @@
tableKey: '0',
radiolist1: [{
name: '正确',
+ value: 1,
disabled: false
},
{
name: '错误',
+ value: 2,
disabled: false
},
],
@@ -228,6 +247,8 @@
extendInclude(json, 'Nav_User');
getRequest(json, "/SE/SETrainRecord/GetUserPapers").then(res => {
this.model = res
+
+
if (res && res.Nav_Papers && res.Nav_Papers.length > 0) {
let papers = res.Nav_Papers.sort((a, b) => {
return a.Nav_Test.TYPE - b.Nav_Test.TYPE
@@ -243,24 +264,32 @@
}
this.papers = papers;
this.papers.forEach(item => {
+ if (item.Nav_Test.TYPE == 2) {
+ item.ANSWER3 = getSelectedOptions(item.ANSWER)
+ }
let test = {}
if (item.Nav_Test.TYPE != 0) {
this.radiolist2[item.ID] = [];
this.radiolist2[item.ID].push({
- name: item.Nav_Test.OPTION_A
+ name: item.Nav_Test.OPTION_A,
+ value: 1
}, {
- name: item.Nav_Test.OPTION_B
+ name: item.Nav_Test.OPTION_B,
+ value: 2
}, {
- name: item.Nav_Test.OPTION_C
+ name: item.Nav_Test.OPTION_C,
+ value: 4
}, )
if (item.Nav_Test.OPTION_D != undefined && item.Nav_Test.OPTION_D != "") {
this.radiolist2[item.ID].push({
- name: item.Nav_Test.OPTION_D
+ name: item.Nav_Test.OPTION_D,
+ value: 8
})
}
if (item.Nav_Test.OPTION_E != undefined && item.Nav_Test.OPTION_E != "") {
this.radiolist2[item.ID].push({
- name: item.Nav_Test.OPTION_E
+ name: item.Nav_Test.OPTION_E,
+ value: 16
})
}
}
@@ -386,8 +415,8 @@
item.ANSWER = 16;
}
},
- checkboxChange(arr, item) {
- let indexArr = this.findCommonElementsIndices(arr, this.radiolist2[item.ID])
+ checkboxChange(arr, item,itemID) {
+ let indexArr = this.findCommonElementsIndices(arr, this.radiolist2[itemID])//item.ID
item.ANSWER3 = arr;
item.ANSWER = 0;
indexArr.forEach(index => {
@@ -408,8 +437,9 @@
const commonElements = [];
for (let i = 0; i < arr1.length; i++) {
for (let j = 0; j < arr2.length; j++) {
- if (arr1[i] === arr2[j].name) {
+ if (arr1[i] === arr2[j].value) {//name
commonElements.push(j);
+ break
}
}
}