@@ -606,7 +605,7 @@
@@ -1209,7 +1208,6 @@ export default {
CustomCalculateMarkChange() {
this.isShow = false
if (this.form.CustomCalculateMark <= 4 || this.form.CustomCalculateMark >= 10) {
- console.log('1111')
this.form.CalculateQuestions = [
{
IsTable: false,
@@ -1244,7 +1242,7 @@ export default {
if (res.Result) {
this.tableQuestions = res.Result.filter(i=>i.Type === 'basicTable')
this.selectQuestions = res.Result.filter(i=>i.Type === 'select' || i.Type === 'radio' || i.Type === 'class')
- this.numberQuestions = res.Result.filter(i=>i.Type === 'number')
+ this.numberQuestions = res.Result.filter(i=>i.Type === 'number' || (i.Type === 'class' && i.ClassifyShowType === 4))
}
} catch(e) {
console.log(e)
diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsPreview.vue b/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsPreview.vue
index 55835bcb..73eb0392 100644
--- a/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsPreview.vue
+++ b/src/views/trials/trials-panel/setting/reading-unit/components/QuestionsPreview.vue
@@ -203,9 +203,7 @@ export default {
})
answer = o ? o.label : null
}
- if (answer !== null) {
- this.$set(this.questionForm, i.classId, answer)
- }
+ this.$set(this.questionForm, i.classId, answer)
}
})
// if (this.classArr.length > 0) {