| | |
| | | const height = ref(document.documentElement.clientHeight - 400 + "px;"); |
| | | const loading = ref(false); |
| | | const loading2 = ref(false); |
| | | const clickedQuery = ref(false); |
| | | const clickedQuery2 = ref(false); |
| | | const data = reactive({ |
| | | queryParams: { |
| | | date: "", |
| | |
| | | } |
| | | const handleCancleStaus = () => { |
| | | clickedTableRef.value = false; |
| | | if(!clickedQuery.value){ |
| | | return |
| | | } |
| | | const year = queryParams.value.date.split("-")[0]; |
| | | const month = parseInt(queryParams.value.date.split("-")[1]); |
| | | getRouteList(year, month); |
| | | |
| | | }; |
| | | const handleCancleStausGas = () => { |
| | | clickedTableRefGas.value = false; |
| | | if(!clickedQuery2.value){ |
| | | return |
| | | } |
| | | const year = queryParams.value.date.split("-")[0]; |
| | | const month = parseInt(queryParams.value.date.split("-")[1]); |
| | | getGasList(year, month); |
| | |
| | | const month = parseInt(queryParams.value.date.split("-")[1]); |
| | | getRouteList(year, month); |
| | | getGasList(year, month); |
| | | clickedQuery.value = true; |
| | | clickedQuery2.value = true |
| | | } |
| | | function resetQuery() { |
| | | queryParams.value.date = ""; |