Merge pull request #8285 from dataease/pr@dev@fix_fullscreen_clean_filter
fix(过滤器): 全屏会清空过滤器中内容 close #8076
This commit is contained in:
commit
e9c19b0e39
@ -371,7 +371,7 @@ export default {
|
|||||||
if (this.refreshHandler()) {
|
if (this.refreshHandler()) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length
|
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]
|
||||||
if (this.element.options.value || existLastValidFilters) {
|
if (this.element.options.value || existLastValidFilters) {
|
||||||
this.values = this.fillValueDerfault()
|
this.values = this.fillValueDerfault()
|
||||||
this.dateChange(this.values)
|
this.dateChange(this.values)
|
||||||
|
|||||||
@ -86,7 +86,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length
|
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]
|
||||||
if (this.element.options.value || existLastValidFilters) {
|
if (this.element.options.value || existLastValidFilters) {
|
||||||
this.value = this.fillValueDerfault()
|
this.value = this.fillValueDerfault()
|
||||||
this.search()
|
this.search()
|
||||||
|
|||||||
@ -144,7 +144,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length
|
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]
|
||||||
if ((this.element.options.value && this.element.options.value.length > 0) || existLastValidFilters) {
|
if ((this.element.options.value && this.element.options.value.length > 0) || existLastValidFilters) {
|
||||||
const values = this.fillValueDerfault()
|
const values = this.fillValueDerfault()
|
||||||
this.form.min = values[0]
|
this.form.min = values[0]
|
||||||
|
|||||||
@ -387,7 +387,7 @@ export default {
|
|||||||
},
|
},
|
||||||
initLoad() {
|
initLoad() {
|
||||||
this.initOptions(this.fillFirstSelected)
|
this.initOptions(this.fillFirstSelected)
|
||||||
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length
|
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]
|
||||||
if ((this.element.options.value || existLastValidFilters) && !this.selectFirst) {
|
if ((this.element.options.value || existLastValidFilters) && !this.selectFirst) {
|
||||||
this.value = this.fillValueDerfault()
|
this.value = this.fillValueDerfault()
|
||||||
this.changeValue(this.value)
|
this.changeValue(this.value)
|
||||||
|
|||||||
@ -342,7 +342,7 @@ export default {
|
|||||||
initLoad() {
|
initLoad() {
|
||||||
this.value = this.element.options.attrs.multiple ? [] : null
|
this.value = this.element.options.attrs.multiple ? [] : null
|
||||||
this.initOptions()
|
this.initOptions()
|
||||||
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length
|
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]
|
||||||
if (this.element.options.value || existLastValidFilters) {
|
if (this.element.options.value || existLastValidFilters) {
|
||||||
this.value = this.fillValueDerfault()
|
this.value = this.fillValueDerfault()
|
||||||
this.changeValue(this.value)
|
this.changeValue(this.value)
|
||||||
|
|||||||
@ -275,7 +275,7 @@ export default {
|
|||||||
this.value = this.fillValueDerfault()
|
this.value = this.fillValueDerfault()
|
||||||
this.data = []
|
this.data = []
|
||||||
this.initOptions()
|
this.initOptions()
|
||||||
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length
|
const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]
|
||||||
if (this.element.options.value || existLastValidFilters) {
|
if (this.element.options.value || existLastValidFilters) {
|
||||||
this.value = this.fillValueDerfault()
|
this.value = this.fillValueDerfault()
|
||||||
this.changeValue(this.value)
|
this.changeValue(this.value)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user