diff --git a/frontend/src/views/panel/filter/filterMain/FilterControl.vue b/frontend/src/views/panel/filter/filterMain/FilterControl.vue index 2d6d8ecd2e..149922bd3a 100644 --- a/frontend/src/views/panel/filter/filterMain/FilterControl.vue +++ b/frontend/src/views/panel/filter/filterMain/FilterControl.vue @@ -107,8 +107,8 @@
@@ -174,12 +174,27 @@ export default { { id: 'HH', name: 'HH' }, { id: 'HH:mm', name: 'HH:mm' }, { id: 'HH:mm:ss', name: 'HH:mm:ss' } - ] - } }, computed: {}, + watch: { + 'childViews.datasetParams': { + handler(newName, oldName) { + if (this.attrs.parameters.length > 0) { + const parameters = [] + for (var i = 0; i < this.attrs.parameters.length; i++) { + for (var j = 0; j < this.childViews.datasetParams.length; j++) { + if (this.childViews.datasetParams[j].id.split('|DE|')[1] === this.attrs.parameters[i]) { + parameters.push(this.childViews.datasetParams[j].id) + } + } + } + this.attrs.parameters = parameters + } + } + } + }, created() { this.attrs = this.controlAttrs @@ -213,6 +228,7 @@ export default { }, showTitleChange(value) { if (!value) { + this.attrs.title = '' this.element.style.backgroundColor = '' } this.fillAttrs2Filter()