From 61c5d76651dcef6c0f8ea011b048d702c1f43858 Mon Sep 17 00:00:00 2001 From: weiwei Date: Wed, 2 Jul 2025 16:00:00 +0800 Subject: [PATCH] --- .../wallet-recharge-apply/upload-excel.vue | 50 +++++++++++++------ 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/src/views/wallet/wallet-recharge-apply/upload-excel.vue b/src/views/wallet/wallet-recharge-apply/upload-excel.vue index d208ebd..b0c7fbf 100644 --- a/src/views/wallet/wallet-recharge-apply/upload-excel.vue +++ b/src/views/wallet/wallet-recharge-apply/upload-excel.vue @@ -3,19 +3,36 @@ - + - +
{{ $t("excel.operationNotice") }} @@ -24,8 +41,13 @@ @@ -41,8 +63,7 @@ - + @@ -161,10 +182,11 @@ const handleFileSuccess = (response: any) => { */ const submitFileForm = async () => { if (form.bizType != "1") { + state.upload.isUploading = true uploadRef.value.submit() return } - const valid = await dataFormRef.value.validate().catch(() => { }) + const valid = await dataFormRef.value.validate().catch(() => {}) if (!valid) return try { state.upload.isUploading = true @@ -173,7 +195,7 @@ const submitFileForm = async () => { useMessage().success("导入成功充值") emit?.("refreshDataList") } catch (error: any) { - console.error(error); + console.error(error) useMessage().error(error.msg || "新增充值数据错误") } finally { state.upload.isUploading = false