Commit 86ad47a4 by yuzhenWang

修复健康信息bug

parent fdc91283
......@@ -262,12 +262,34 @@ const deleteMedical = (l1, l2, l3, index) => {
]['questionTextJsonDtoList'].splice(index, 1)
}
const handleRadioChange = (l1, l2, l3, level3) => {
console.log('====================================')
console.log('表单form', form.value)
console.log('====================================')
let answer = JSON.parse(
JSON.stringify(
form.value[l1]['secondCategoryDtoList'][l2]['questionsDtoList'][l3]['answerSessionsDto']
)
)
if (answer.optionBizId == 'option_1001') {
if (answer.optionJsonDtoList.length > 0) {
answer.optionJsonDtoList.map((item, index) => {
if (item.optionBizId == 'option_1002') {
answer.optionJsonDtoList.splice(index, 1)
}
})
}
} else if (answer.optionBizId == 'option_1002') {
if (answer.optionJsonDtoList.length > 0) {
answer.optionJsonDtoList.map((item, index) => {
if (item.optionBizId == 'option_1001') {
answer.optionJsonDtoList.splice(index, 1)
}
})
}
}
console.log('====================================')
console.log('answer', answer)
console.log('====================================')
let optionItem = level3.optionsDtoList.filter(item => item.optionBizId === answer.optionBizId)
let newObj = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment