|
|
@@ -92,11 +92,15 @@ const onConfirm = ([start, end]: Date[]) => {
|
|
|
}
|
|
|
|
|
|
const onRefresh = () => {
|
|
|
- const [begindate, enddate] = dateRange.value
|
|
|
- run({
|
|
|
- begindate: formatDate(begindate, 'YYYYMMDD'),
|
|
|
- enddate: formatDate(enddate, 'YYYYMMDD')
|
|
|
- })
|
|
|
+ if (dateRange.value.length != 0) {
|
|
|
+ const [begindate, enddate] = dateRange.value
|
|
|
+ run({
|
|
|
+ begindate: formatDate(begindate, 'YYYYMMDD'),
|
|
|
+ enddate: formatDate(enddate, 'YYYYMMDD')
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ run()
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|