zydx-plus 1.32.185 → 1.32.186
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
|
@@ -276,6 +276,17 @@ export default {
|
|
|
276
276
|
}
|
|
277
277
|
this.$emit('confirm', data)
|
|
278
278
|
},
|
|
279
|
+
getConfirm() {
|
|
280
|
+
let data = html2json(this.editor.getHTML()).child
|
|
281
|
+
if(this.signMenuShow) {
|
|
282
|
+
data.unshift({
|
|
283
|
+
node: 'element',
|
|
284
|
+
tag: 'sign',
|
|
285
|
+
child: []
|
|
286
|
+
})
|
|
287
|
+
}
|
|
288
|
+
return data
|
|
289
|
+
},
|
|
279
290
|
// 上传进度
|
|
280
291
|
progressFunction(e) {
|
|
281
292
|
if (e.lengthComputable) {
|
|
@@ -175,15 +175,28 @@ export default {
|
|
|
175
175
|
this.totalScore()
|
|
176
176
|
},
|
|
177
177
|
getContent() {
|
|
178
|
+
let arr = []
|
|
179
|
+
for(let i=0; i< this.question.length; i++) {
|
|
180
|
+
if(this.question[i].allScore === '-' || this.question[i].count === '-') continue;
|
|
181
|
+
arr.push({
|
|
182
|
+
...this.question[i],
|
|
183
|
+
easyScore: this.question[i].easy? this.question[i].easyScore: '',
|
|
184
|
+
hardScore: this.question[i].hard? this.question[i].hardScore: '',
|
|
185
|
+
midScore: this.question[i].mid? this.question[i].midScore: '',
|
|
186
|
+
easy: this.question[i].easyScore? this.question[i].easy: '',
|
|
187
|
+
hard: this.question[i].hardScore? this.question[i].hard: '',
|
|
188
|
+
mid: this.question[i].midScore? this.question[i].mid: ''
|
|
189
|
+
})
|
|
190
|
+
}
|
|
178
191
|
return {
|
|
179
|
-
data:
|
|
192
|
+
data: arr,
|
|
180
193
|
total: this.totalNum,
|
|
181
194
|
}
|
|
182
195
|
},
|
|
183
196
|
// 添加数据
|
|
184
197
|
addData(v,n) {
|
|
185
198
|
const len = this.question.length
|
|
186
|
-
n(len)
|
|
199
|
+
if(n) n(len)
|
|
187
200
|
if(len === 6) return
|
|
188
201
|
if(this.empty) {
|
|
189
202
|
this.empty = false
|