This commit is contained in:
aihe 2024-08-10 23:38:29 +08:00
parent 268ea9adb3
commit 25f72125b3
2 changed files with 9 additions and 10 deletions

View File

@ -139,7 +139,7 @@
methods: {
handleSelectDate() {
this.handleSwitchCladar()
this.handleClaShow()
},
handleChange(val){
if(Array.isArray(val)) {
@ -156,23 +156,22 @@
},
handleClaValChange(val) {
this.handleChange(val)
this.handleClaClose()
},
handleClaClose(res){
this.handleSwitchCladar()
this.showCladar = false
},
handleSwitchCladar() {
this.showCladar = !this.showCladar
handleClaShow() {
this.showCladar = true
// 手动唤起日期事件
setTimeout(()=> {
if(this.showCladar) {
this.$refs.unDateTimePckRef.show()
}
}, 300)
this.$refs.unDateTimePckRef.show()
}, 1000)
},
handleToolsRangChange(val) {
this.rangeVal = val
if(val == -1) {
this.handleSwitchCladar()
this.handleClaShow()
} else {
let sltRang = this.toolsRangesList.filter(t=> t.val == val)[0].range
this.handleChange(sltRang, )

View File

@ -509,7 +509,7 @@
this.$nextTick(() => {
setTimeout(() => {
this.show = false
this.$emit('close')
// this.$emit('close')
}, 300)
})
},