feat:全部问卷接口联调
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
<div>
|
||||
<ul :key="test">
|
||||
<li
|
||||
v-for="(rate, rateIndex) in rateItem" :key="rateIndex" class="rate_item" :class="{ active_item: rate.active }"
|
||||
v-for="(rate, rateIndex) in rateItem"
|
||||
:key="rateIndex"
|
||||
class="rate_item"
|
||||
:class="{ active_item: rate.active }"
|
||||
@click="getItem(rate)"
|
||||
>
|
||||
{{ rate.label }}
|
||||
@@ -79,12 +82,16 @@ function getItem(value) {
|
||||
});
|
||||
}
|
||||
|
||||
watch(model, () => {
|
||||
getItem({ label: model.value, active: false });
|
||||
emit('change', index.value, model.value);
|
||||
}, {
|
||||
// immediate: true
|
||||
});
|
||||
watch(
|
||||
model,
|
||||
() => {
|
||||
getItem({ label: model.value, active: false });
|
||||
emit('change', index.value, model.value);
|
||||
},
|
||||
{
|
||||
// immediate: true
|
||||
}
|
||||
);
|
||||
|
||||
// 监听 min、max 和 score_interval 的变化
|
||||
watch(
|
||||
|
||||
Reference in New Issue
Block a user