|
@@ -17,6 +17,16 @@
|
|
|
"
|
|
|
/>
|
|
|
{{ answer.conditionname }}
|
|
|
+ <template v-if="answer.conditiondesc">
|
|
|
+ <el-tooltip :content="answer.conditiondesc" placement="top">
|
|
|
+ <SvgIcon
|
|
|
+ class="__hover"
|
|
|
+ name="czr_tip"
|
|
|
+ size="20"
|
|
|
+ :active="true"
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
<template v-if="answer.id === question.__answer">
|
|
|
<treeNode
|
|
@@ -48,12 +58,10 @@ const ref_treeNode = ref()
|
|
|
|
|
|
const getAnswer = () => {
|
|
|
const arr: any = []
|
|
|
- console.log(ref_treeNode)
|
|
|
props.data.forEach((question, questionIndex) => {
|
|
|
arr.push([question.__answer])
|
|
|
})
|
|
|
ref_treeNode.value?.forEach((v, i) => {
|
|
|
- console.log(v.getAnswer())
|
|
|
v.getAnswer().forEach((a) => {
|
|
|
a.forEach((b) => {
|
|
|
arr[v.parentIndex].push(b)
|