|
@@ -89,10 +89,27 @@ export default {
|
|
|
const keys = []
|
|
|
this.customs.map(item => {
|
|
|
if (e.type < 4) {
|
|
|
- item.conditions === `${e.fieldKey}_${e.content}` ? item.bool = true : ''
|
|
|
+ if (item.conditions === `${e.fieldKey}_${e.content}`) {
|
|
|
+ item.bool = true
|
|
|
+ item.bools = true
|
|
|
+ } else {
|
|
|
+ if (item.conditions.split('_')[0] === e.fieldKey) {
|
|
|
+ item.bool = false
|
|
|
+ delete item.bools
|
|
|
+ }
|
|
|
+ }
|
|
|
} else if (e.type === 4) {
|
|
|
e.contents.map(i => {
|
|
|
- item.conditions === `${e.fieldKey}_${i}` ? item.bool = true : ''
|
|
|
+ if (item.conditions === `${e.fieldKey}_${i}`) {
|
|
|
+ item.bool = true
|
|
|
+ item.bools = true
|
|
|
+ } else {
|
|
|
+ if (item.conditions.split('_')[0] === e.fieldKey) {
|
|
|
+ item.bool = false
|
|
|
+ delete item.bools
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // item.conditions === `${e.fieldKey}_${i}` ? item.bool = true : ''
|
|
|
})
|
|
|
}
|
|
|
})
|