zydx-plus 1.32.184 → 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) {
|
|
@@ -158,6 +158,7 @@ export default {
|
|
|
158
158
|
let arr = []
|
|
159
159
|
v.forEach(item => {
|
|
160
160
|
arr.push({
|
|
161
|
+
...v,
|
|
161
162
|
quesType: item.quesType,
|
|
162
163
|
quesName: item.quesName,
|
|
163
164
|
easyScore: item.easyScore? item.easyScore: '',
|
|
@@ -174,18 +175,35 @@ export default {
|
|
|
174
175
|
this.totalScore()
|
|
175
176
|
},
|
|
176
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
|
+
}
|
|
177
191
|
return {
|
|
178
|
-
data:
|
|
192
|
+
data: arr,
|
|
179
193
|
total: this.totalNum,
|
|
180
194
|
}
|
|
181
195
|
},
|
|
182
196
|
// 添加数据
|
|
183
|
-
addData(v) {
|
|
197
|
+
addData(v,n) {
|
|
198
|
+
const len = this.question.length
|
|
199
|
+
if(n) n(len)
|
|
200
|
+
if(len === 6) return
|
|
184
201
|
if(this.empty) {
|
|
185
202
|
this.empty = false
|
|
186
203
|
this.question = []
|
|
187
204
|
}
|
|
188
205
|
this.question.push({
|
|
206
|
+
...v,
|
|
189
207
|
quesType: v.quesType,
|
|
190
208
|
quesName: v.quesName,
|
|
191
209
|
easyScore:'',
|