From 127a6a471b1b13f40bf4aba9815f33823630e6f7 Mon Sep 17 00:00:00 2001 From: donghaolin <17667510818@163.com> Date: Mon, 30 Dec 2024 11:35:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8A=A0=E4=BA=86=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/gold-system/src/views/usergold/index.vue | 26 ++++++++++-- vue/gold-system/src/views/usergoldInfo/index.vue | 54 ++++++++++++++++-------- 2 files changed, 60 insertions(+), 20 deletions(-) diff --git a/vue/gold-system/src/views/usergold/index.vue b/vue/gold-system/src/views/usergold/index.vue index cab7179..4bcf14d 100644 --- a/vue/gold-system/src/views/usergold/index.vue +++ b/vue/gold-system/src/views/usergold/index.vue @@ -248,10 +248,26 @@ const exportExcel = () => { XLSX.writeFile(wb, "客户金币明细.xlsx"); }; -const putExcel = ref({}); +const today = new Date(); +const startDate = new Date( + today.getFullYear(), + today.getMonth(), + today.getDate() +); +const endDate = new Date( + today.getFullYear(), + today.getMonth(), + today.getDate() + 1 +); +const putExcel = ref({ + startDate: startDate, + endDate: endDate, +}); const excelInfo = ref({}); -const areyour = async function (val) { +const loading = ref(false); +const areyour = async function () { try { + loading.value = true; const result = await API.post( "http://192.168.8.93:10010/detailY/searchAll", { ...putExcel.value } @@ -260,10 +276,12 @@ const areyour = async function (val) { areyouright.value = true; ElMessage({ type: "success", - message: "导出成功", + message: "查询成功", }); + loading.value = false; } catch (error) { console.log("请求失败", error); + loading.value = false; } }; @@ -378,6 +396,7 @@ const get30 = function () { > 导出 + - +