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:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
// 政策类型不选时,不显示二级分类
|
// 政策类型不选时,不显示二级分类
|
||||||
|
|||||||
Reference in New Issue
Block a user