|
@ -3,7 +3,7 @@ |
|
|
<div bordered class="list-box" v-for="(item, index) in test" :key="index"> |
|
|
<div bordered class="list-box" v-for="(item, index) in test" :key="index"> |
|
|
<template v-for="(listItem, listIndex) in item"> |
|
|
<template v-for="(listItem, listIndex) in item"> |
|
|
<template v-if="listItem.code === 'ZQTH-SJ'"> |
|
|
<template v-if="listItem.code === 'ZQTH-SJ'"> |
|
|
<Talk :key="listIndex"/> |
|
|
<Talk :key="listIndex" @changeHeigt="changeHeigt" /> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else> |
|
|
<template v-else> |
|
|
<div |
|
|
<div |
|
@ -491,6 +491,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
changeHeigt() { |
|
|
|
|
|
this.$emit('getCollaoseHeight', this.testIndex); |
|
|
|
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 判断当前 item 是否显示 |
|
|
* 判断当前 item 是否显示 |
|
|
* 根据 显示条件: isShow 是否和父级code: Fcode 的值相等判断 |
|
|
* 根据 显示条件: isShow 是否和父级code: Fcode 的值相等判断 |
|
@ -859,7 +862,6 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 点击分数输入框时,将当前输入框的选项改为选中状态 |
|
|
// 点击分数输入框时,将当前输入框的选项改为选中状态 |
|
|
iptChangeRadio(value, code, index, itemIndex) { |
|
|
iptChangeRadio(value, code, index, itemIndex) { |
|
|
console.log('value, code, index, itemIndex: ', value, code, index, itemIndex); |
|
|
|
|
|
this.Rerender(value, index, itemIndex); |
|
|
this.Rerender(value, index, itemIndex); |
|
|
this.setAnswer(code, value); |
|
|
this.setAnswer(code, value); |
|
|
}, |
|
|
}, |
|
@ -887,7 +889,12 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 组件周期函数--监听组件挂载完毕 |
|
|
// 组件周期函数--监听组件挂载完毕 |
|
|
mounted() {}, |
|
|
mounted() { |
|
|
|
|
|
const that = this |
|
|
|
|
|
this.$nextTick(()=> { |
|
|
|
|
|
that.changeHeigt(); |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.test = [...this.list]; |
|
|
this.test = [...this.list]; |
|
|
}, |
|
|
}, |
|
|