修改问卷

This commit is contained in:
shidongli 2024-12-19 13:22:39 +08:00
parent f263a37b16
commit e0a24f983f

View File

@ -1919,7 +1919,7 @@ export default {
newquestionSubjectList.push(el) newquestionSubjectList.push(el)
}) })
} else { } else {
if (e.questionType != 'DATE_BLANKS_SUBJECT' && e.questionType != 'TIME_BLANKS_SUBJECT' && e.questionType != 'FILL_IN_THE_BLANKS') { if (e.questionType != 'DATE_BLANKS_SUBJECT' && e.questionType != 'TIME_BLANKS_SUBJECT' && e.questionType != 'FILL_IN_THE_BLANKS' && e.questionType != 'FEEDBACK_BLANKS_SUBJECT') {
e.questionSubjectOptionList.forEach(el => { e.questionSubjectOptionList.forEach(el => {
el.optionAnswer = el.optionName el.optionAnswer = el.optionName
el.questionName = e.questionName el.questionName = e.questionName
@ -1949,6 +1949,7 @@ export default {
}) })
}) })
newObj.questionCount = this.questionlist.length newObj.questionCount = this.questionlist.length
if (this.$route.query.id) { if (this.$route.query.id) {
updateQuestion(newObj).then(res => { updateQuestion(newObj).then(res => {
loading.close(); loading.close();