forked from github/dataease
fix(查询组件): 查询组件级联的级联状态不能重置 #12885
This commit is contained in:
parent
65565832a6
commit
3a4d2d0620
@ -459,10 +459,10 @@ const resetData = () => {
|
|||||||
;(props.element.cascade || []).forEach(ele => {
|
;(props.element.cascade || []).forEach(ele => {
|
||||||
ele.forEach(item => {
|
ele.forEach(item => {
|
||||||
const comId = item.datasetId.split('--')[1]
|
const comId = item.datasetId.split('--')[1]
|
||||||
if (next.id === comId && ![null, undefined].includes(next.selectValue)) {
|
if (next.id === comId) {
|
||||||
item.currentSelectValue = Array.isArray(next.selectValue)
|
item.currentSelectValue = Array.isArray(next.selectValue)
|
||||||
? next.selectValue
|
? next.selectValue
|
||||||
: [next.selectValue]
|
: [next.selectValue].map(itx => ![null, undefined].includes(itx))
|
||||||
useEmitt().emitter.emit(`${item.datasetId.split('--')[1]}-select`)
|
useEmitt().emitter.emit(`${item.datasetId.split('--')[1]}-select`)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user