forked from github/dataease
Merge pull request #4418 from dataease/pr@dev@pages
fix: 日期范围组件的开始结束时间参数重复出现
This commit is contained in:
commit
347d19629c
@ -357,23 +357,7 @@ export default {
|
||||
},
|
||||
'activeName': {
|
||||
handler(newName, oldName) {
|
||||
if (this.activeName === 'assembly') {
|
||||
this.allParams = JSON.parse(JSON.stringify(this.childViews.datasetParams))
|
||||
} else {
|
||||
if (this.datasetParams.length > 0) {
|
||||
for (var j = 0; j < this.datasetParams.length; j++) {
|
||||
var hasParam = false
|
||||
for (var i = 0; i < this.childViews.datasetParams.length; i++) {
|
||||
if (this.childViews.datasetParams[i].id === this.datasetParams[j].id) {
|
||||
hasParam = true
|
||||
}
|
||||
}
|
||||
if (!hasParam) {
|
||||
this.allParams.push(this.datasetParams[j])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user