forked from github/dataease
feat(仪表盘):仪表盘 过滤组件
This commit is contained in:
parent
df8413731e
commit
d908467028
@ -51,6 +51,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
'$store.getters.conditions': function(newVal, oldVal) {
|
||||||
|
this.filter.filter = newVal
|
||||||
|
this.getData(this.element.propValue.viewId)
|
||||||
|
},
|
||||||
filter(val) {
|
filter(val) {
|
||||||
this.getData(this.element.propValue.viewId)
|
this.getData(this.element.propValue.viewId)
|
||||||
},
|
},
|
||||||
@ -95,6 +99,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.filter.filter = this.$store.getters.conditions
|
||||||
this.getData(this.element.propValue.viewId)
|
this.getData(this.element.propValue.viewId)
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
Loading…
Reference in New Issue
Block a user