|
@@ -44,11 +44,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
|
testId: {
|
|
testId: {
|
|
|
- type: Number,
|
|
|
|
|
|
|
+ type: [Number, String, Boolean],
|
|
|
default: null
|
|
default: null
|
|
|
},
|
|
},
|
|
|
testSetId: {
|
|
testSetId: {
|
|
|
- type: Number,
|
|
|
|
|
|
|
+ type: [Number, String, Boolean],
|
|
|
default: null
|
|
default: null
|
|
|
},
|
|
},
|
|
|
questionType: {
|
|
questionType: {
|
|
@@ -110,6 +110,9 @@ export default {
|
|
|
this.entityLoading = false
|
|
this.entityLoading = false
|
|
|
},
|
|
},
|
|
|
edit() {
|
|
edit() {
|
|
|
|
|
+ // console.log(this.$refs.entityEdit.getFormData())
|
|
|
|
|
+ FormBuilderAssist.setAttributeByName(this.inputs, 'type', 'value', this.questionType)
|
|
|
|
|
+ // console.log(this.$refs.entityEdit.getFormData())
|
|
|
this.entityLoading = true
|
|
this.entityLoading = true
|
|
|
this.$refs.entityEdit.editEntity(false)
|
|
this.$refs.entityEdit.editEntity(false)
|
|
|
.then((response) => {
|
|
.then((response) => {
|