forked from github/dataease
fix: 日期范围组件的开始结束时间参数重复出现
This commit is contained in:
parent
acfee00db3
commit
5e27e1ae25
@ -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