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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.32.184",
3
+ "version": "1.32.186",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -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: this.question,
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:'',
package/src/index.js CHANGED
@@ -77,7 +77,7 @@ function install(app) {
77
77
  }
78
78
 
79
79
  export default {
80
- version: '1.32.184',
80
+ version: '1.32.186',
81
81
  install,
82
82
  Calendar,
83
83
  Message,