This commit is contained in:
2026-03-02 15:48:29 +08:00
parent e12883e50d
commit 1910b27a98
3 changed files with 12 additions and 8 deletions
@@ -25,13 +25,14 @@ const setting = {
},
methods:{
onOpen(option,ext){
console.log(option)
this.formData = { ...option }
this.formData = option
this.ext = ext
this.visible = true
},
onConfirm(){
this.$emit('confirm', { option:this.formData,ext:this.ext })
this.formData ={}
this.visible = false
}
}
@@ -323,7 +323,6 @@ const subjectForm = {
//删除选项图片
removeOptionImg(subjectIndex, optionIndex){
this.$set(this.subjects[subjectIndex].options[optionIndex], "imgUrl", null)
console.log(this.subjects[subjectIndex])
},
//打开选项设置
@@ -336,11 +335,7 @@ const subjectForm = {
//选项设置确认
onSettingConfirm({option, ext}){
this.subjects[ext.subjectIndex].options[ext.optionIndex] = option
console.log(this.subjects[ext.subjectIndex].options[ext.optionIndex])
// this.$set(this.subjects[ext.subjectIndex].options[ext.optionIndex], "isCorrect", option.isCorrect)
// this.$set(this.subjects[ext.subjectIndex].options[ext.optionIndex], "hint", option.hint)
this.$set(this.subjects[ext.subjectIndex].options, ext.optionIndex, option)
},
//保存