This commit is contained in:
aihe 2024-12-13 01:42:53 +08:00
parent f7eeca8d82
commit bff37ed0d9

View File

@ -36,6 +36,7 @@
</template> </template>
<script> <script>
import { showLoading, hideLoading, } from "@/common/untool"
// uni-datetime-picker 插件地址: https://ext.dcloud.net.cn/plugin?id=3962 // uni-datetime-picker 插件地址: https://ext.dcloud.net.cn/plugin?id=3962
import dayjs from "dayjs" import dayjs from "dayjs"
const formatStr = 'YYYY-MM-DD' const formatStr = 'YYYY-MM-DD'
@ -161,16 +162,17 @@
}, },
handleClaValChange(val) { handleClaValChange(val) {
this.handleChange(val) this.handleChange(val)
this.handleClaClose()
}, },
handleClaClose(res){ handleClaClose(res){
this.showCladar = false this.showCladar = false
}, },
handleClaShow() { handleClaShow() {
this.showCladar = true this.showCladar = true
showLoading()
// 手动唤起日期事件 // 手动唤起日期事件
setTimeout(()=> { setTimeout(()=> {
this.$refs.unDateTimePckRef.show() this.$refs.unDateTimePckRef.show()
hideLoading()
}, 1000) }, 1000)
}, },
handleToolsRangChange(val) { handleToolsRangChange(val) {