Update PopupLists and policyList components for improved functionality

- Changed key generation in PopupLists to ensure unique keys for items.
- Adjusted validation condition in policyList to require at least 2 items instead of 3 for processing.
This commit is contained in:
2026-05-07 14:20:06 +08:00
parent c4054f2a4a
commit 9e114cc5d3
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@
]" ]"
> >
<template v-for="(itm, idx) in item.data"> <template v-for="(itm, idx) in item.data">
<view :key="idx" v-if="!itm.mode" <view :key="idx+'-C'" v-if="!itm.mode"
@click="getActive(itm, index, idx)" @click="getActive(itm, index, idx)"
:class=" :class="
idx == item.activeIndex idx == item.activeIndex

View File

@@ -244,7 +244,7 @@ export default {
watch: { watch: {
"checkData": { "checkData": {
handler(newVal) { handler(newVal) {
if (!newVal || newVal.length < 3 || !this.policyTypeMList.length) return; if (!newVal || newVal.length < 2 || !this.policyTypeMList.length) return;
const typeL = newVal[0].data[newVal[0].activeIndex].dictValue; const typeL = newVal[0].data[newVal[0].activeIndex].dictValue;
// 政策类型不选时,不显示二级分类 // 政策类型不选时,不显示二级分类