diff --git a/src/views/inspection/manage/index.vue b/src/views/inspection/manage/index.vue index 2341d3f..bb06a70 100644 --- a/src/views/inspection/manage/index.vue +++ b/src/views/inspection/manage/index.vue @@ -15,6 +15,30 @@ @keyup.enter="handleQuery" /> + + + + + + + + 搜索 { - manageList.value = response.rows; - total.value = response.total; - loading.value = false; - }); + listManage(proxy.addDateRange(queryParams.value, dateRange.value)).then( + (response) => { + manageList.value = response.rows; + total.value = response.total; + loading.value = false; + }, + ); } // 取消按钮 @@ -324,6 +352,7 @@ function handleQuery() { /** 重置按钮操作 */ function resetQuery() { + dateRange.value = []; proxy.resetForm("queryRef"); handleQuery(); } @@ -447,7 +476,7 @@ function handleExport() { proxy.download( "inspection/manage/export", { - ...queryParams.value, + ...proxy.addDateRange(queryParams.value, dateRange.value), }, `manage_${new Date().getTime()}.xlsx`, );