zydx-plus 1.32.201 → 1.32.203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -360,6 +360,11 @@ export default {
|
|
|
360
360
|
let pHeight = 0
|
|
361
361
|
let html = ''
|
|
362
362
|
for (let i = 0; i < data.length; i++) {
|
|
363
|
+
if(data[i].className === 'custom-link') { // 分割线
|
|
364
|
+
pHeight += 21
|
|
365
|
+
html += data[i].outerHTML
|
|
366
|
+
continue
|
|
367
|
+
}
|
|
363
368
|
if(data[i].firstChild.localName === 'img') {
|
|
364
369
|
const img = data[i].firstChild
|
|
365
370
|
const imgHeight = img.offsetHeight
|
|
@@ -113,10 +113,10 @@ export default {
|
|
|
113
113
|
if(item.testKey) {
|
|
114
114
|
item.testKey = JSON.parse(item.testKey).map(x => {
|
|
115
115
|
if(this.ques(item.quesType)) { // 判断是否单选
|
|
116
|
-
x.checked = x.index === item?.
|
|
116
|
+
x.checked = x.index === item?.judgeAnswer; //答案
|
|
117
117
|
}else {
|
|
118
|
-
for(let i=0; i<item?.
|
|
119
|
-
if(x.index === item.
|
|
118
|
+
for(let i=0; i<item?.judgeAnswer?.length; i++) {
|
|
119
|
+
if(x.index === item.judgeAnswer[i]) {
|
|
120
120
|
x.checked = true
|
|
121
121
|
break
|
|
122
122
|
}else {
|
|
@@ -148,7 +148,7 @@ export default {
|
|
|
148
148
|
deep: true
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
|
-
emits: ['change','modify','del','changeAll','replaceData','choiceData','
|
|
151
|
+
emits: ['change','modify','del','changeAll','replaceData','choiceData','judgeAnswer'],
|
|
152
152
|
methods: {
|
|
153
153
|
answerChange(e,v,id) {
|
|
154
154
|
let answerArr = []
|
|
@@ -158,9 +158,9 @@ export default {
|
|
|
158
158
|
answerArr.push(v.testKey[index].index)
|
|
159
159
|
}
|
|
160
160
|
})
|
|
161
|
-
this.$emit('
|
|
161
|
+
this.$emit('judgeAnswer',{
|
|
162
162
|
...v,
|
|
163
|
-
|
|
163
|
+
judgeAnswer: this.ques(v.quesType)? answerArr[0]: answerArr
|
|
164
164
|
})
|
|
165
165
|
},
|
|
166
166
|
checkboxChange(e,index) {
|