liu.tao3 1 year ago
commit 23234a34a4

@ -61,27 +61,23 @@ export default {
}, },
// 跟当前组件计算表达式关联的组件的数据集合 // 跟当前组件计算表达式关联的组件的数据集合
currentDataset () { currentDataset () {
// ['RiTkJGDa','PEKwsHbf']this.config.expressionCodes const newDataset = {}
const newDataset = this.config.expressionCodes?.map(code => { this.config.expressionCodes?.forEach(code => {
return this.dataset[code] if (this.dataset[code]) {
newDataset[code] = this.dataset[code]
}
}) })
if (newDataset?.some(item => !item)) { return newDataset
return null
} else {
return newDataset
}
}, },
// 跟当前组件计算表达式关联的组件的数据集合 // 跟当前组件计算表达式关联的组件的数据集合
currentComputedDatas () { currentComputedDatas () {
// ['RiTkJGDa','PEKwsHbf']this.config.expressionCodes const newDataset = {}
const newDataset = this.config.expressionCodes?.map(code => { this.config.expressionCodes?.forEach(code => {
return this.computedDatas[code] if (this.computedDatas[code]) {
newDataset[code] = this.computedDatas[code]
}
}) })
if (newDataset?.some(item => !item)) { return newDataset
return null
} else {
return newDataset
}
}, },
// 组件数据加载时的背景颜色 // 组件数据加载时的背景颜色
loadingBackground () { loadingBackground () {

Loading…
Cancel
Save