|
|
|
@ -194,14 +194,26 @@ export function formatParams(params = {}, equal: any = [], otherQuery: any = [])
|
|
|
|
|
const orKeys = key.split(':')
|
|
|
|
|
const ConditionalList = { ConditionalList: [] }
|
|
|
|
|
if (params[key]) {
|
|
|
|
|
orKeys.forEach((item) => {
|
|
|
|
|
let obj = {
|
|
|
|
|
Key: 1,
|
|
|
|
|
Value: {
|
|
|
|
|
FieldName: item,
|
|
|
|
|
FieldValue: params[key],
|
|
|
|
|
ConditionalType: 1,
|
|
|
|
|
},
|
|
|
|
|
orKeys.forEach((item, index) => {
|
|
|
|
|
let obj = []
|
|
|
|
|
if (index == 0) {
|
|
|
|
|
obj = {
|
|
|
|
|
Key: 0,
|
|
|
|
|
Value: {
|
|
|
|
|
FieldName: item,
|
|
|
|
|
FieldValue: params[key],
|
|
|
|
|
ConditionalType: 1,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
obj = {
|
|
|
|
|
Key: 1,
|
|
|
|
|
Value: {
|
|
|
|
|
FieldName: item,
|
|
|
|
|
FieldValue: params[key],
|
|
|
|
|
ConditionalType: 1,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
ConditionalList.ConditionalList.push(obj)
|
|
|
|
|
})
|
|
|
|
@ -209,7 +221,6 @@ export function formatParams(params = {}, equal: any = [], otherQuery: any = [])
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
let isEqual = false
|
|
|
|
|
|
|
|
|
|
if (equal.length) {
|
|
|
|
|
isEqual = equal.includes(key)
|
|
|
|
|
}
|
|
|
|
|