Merge pull request #1575 from dataease/pr@dev@feat-mobile-reset

refactor: 过滤组件初始化优化,适配历史过滤组件
This commit is contained in:
王嘉豪 2021-12-30 19:05:29 +08:00 committed by GitHub
commit 6b7c0671bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,7 +315,7 @@ export default {
this.refId = uuid.v1
if (this.element && this.element.propValue && this.element.propValue.viewId) {
const hasFilter = this.componentData.filter(item => item.type === 'custom').some(item => item.options.value && !(item.options.value instanceof Object) || (item.options.attrs && item.options.attrs.default && item.options.attrs.default.isDynamic))
if (hasFilter || this.filters.length > 0) { this.getData(this.element.propValue.viewId, false) }
if (!hasFilter || this.filters.length > 0) { this.getData(this.element.propValue.viewId, false) }
}
},
methods: {