diff --git a/vue/gold-system/src/views/audit/refundAudit.vue b/vue/gold-system/src/views/audit/refundAudit.vue index 2d67d9d..127f51b 100644 --- a/vue/gold-system/src/views/audit/refundAudit.vue +++ b/vue/gold-system/src/views/audit/refundAudit.vue @@ -517,7 +517,7 @@ onMounted(async function () { }} - + 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 () { > 导出 +