修改设置日期函数

This commit is contained in:
GGJ
2024-12-02 13:33:44 +08:00
parent 6a57c4a573
commit 834fc6895a
16 changed files with 179 additions and 237 deletions

View File

@@ -161,14 +161,14 @@ const setDatePicker = (list: any) => {
}
const onResetForm = () => {
//时间重置成默认值
datePickerRef.value?.setInterval(3)
datePickerRef.value?.setTheDate(3)
tableStore.onTableAction('reset', {})
}
const setInterval = (val: any) => {
datePickerRef.value.setInterval(val)
const setTheDate = (val: any) => {
datePickerRef.value.setTheDate(val)
}
defineExpose({ onComSearch, areaRef, setDatePicker, setInterval, datePickerRef, showSelectChange })
defineExpose({ onComSearch, areaRef, setDatePicker, setTheDate, datePickerRef, showSelectChange })
</script>
<style scoped lang="scss">