From 49dd960389608e3c26af25620ae50db20e78d7a7 Mon Sep 17 00:00:00 2001 From: lihuilin Date: Wed, 22 Oct 2025 10:31:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=80=80=E6=AC=BE=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/moneyManage/executor/executor.vue | 10 +++++++++- src/views/moneyManage/refundDetail/refundCharge.vue | 10 +++++++++- src/views/moneyManage/refundDetail/refundFinance.vue | 12 ++++++++++-- src/views/moneyManage/refundDetail/refundHeader.vue | 10 +++++++++- src/views/moneyManage/refundDetail/refundService.vue | 6 +++++- 5 files changed, 42 insertions(+), 6 deletions(-) diff --git a/src/views/moneyManage/executor/executor.vue b/src/views/moneyManage/executor/executor.vue index ac2c2c2..ee28961 100644 --- a/src/views/moneyManage/executor/executor.vue +++ b/src/views/moneyManage/executor/executor.vue @@ -43,7 +43,7 @@ 退款时间 + :disabled-date="disabledDate" :default-time="defaultTime" />
查询 @@ -641,6 +641,14 @@ const productList = [ }, ] +const defaultTime = [ + new Date(2000, 1, 1, 0, 0, 0), + new Date(2000, 2, 1, 23, 59, 59), +] +const disabledDate = (time) => { + const limitDate = new Date(2025, 0, 1); + return time.getTime() < limitDate.getTime(); +} const reset = function () { searchForm.value = { jwcode: '', diff --git a/src/views/moneyManage/refundDetail/refundCharge.vue b/src/views/moneyManage/refundDetail/refundCharge.vue index 8dcef07..4007789 100644 --- a/src/views/moneyManage/refundDetail/refundCharge.vue +++ b/src/views/moneyManage/refundDetail/refundCharge.vue @@ -45,7 +45,7 @@ 付款时间 + :disabled-date="disabledDate" :default-time="defaultTime" />
查询 @@ -749,6 +749,14 @@ const showAudit = function (row) { auditRow.value = row showAudit2.value = true } +const defaultTime = [ + new Date(2000, 1, 1, 0, 0, 0), + new Date(2000, 2, 1, 23, 59, 59), +] +const disabledDate = (time) => { + const limitDate = new Date(2025, 0, 1); + return time.getTime() < limitDate.getTime(); +} onMounted(() => { console.log('???????????????????', adminData.value) getRefund() diff --git a/src/views/moneyManage/refundDetail/refundFinance.vue b/src/views/moneyManage/refundDetail/refundFinance.vue index 376e9f9..6c17397 100644 --- a/src/views/moneyManage/refundDetail/refundFinance.vue +++ b/src/views/moneyManage/refundDetail/refundFinance.vue @@ -43,8 +43,8 @@
付款时间 + end-placeholder="结束时间" style="width:22vw;" @change="handleDatePickerChange" clearable + :disabled-date="disabledDate" :default-time="defaultTime" />
查询 @@ -815,6 +815,14 @@ const hideReject = function () { showReject.value = false addForm.value.remark = '' } +const defaultTime = [ + new Date(2000, 1, 1, 0, 0, 0), + new Date(2000, 2, 1, 23, 59, 59), +] +const disabledDate = (time) => { + const limitDate = new Date(2025, 0, 1); + return time.getTime() < limitDate.getTime(); +} onMounted(() => { console.log('???????????????????', adminData.value) getRefund() diff --git a/src/views/moneyManage/refundDetail/refundHeader.vue b/src/views/moneyManage/refundDetail/refundHeader.vue index f7d6edb..7269ad4 100644 --- a/src/views/moneyManage/refundDetail/refundHeader.vue +++ b/src/views/moneyManage/refundDetail/refundHeader.vue @@ -44,7 +44,7 @@ 付款时间 + :disabled-date="disabledDate" :default-time="defaultTime" />
查询 @@ -778,6 +778,14 @@ const showAudit = function (row) { auditRow.value = row showAudit2.value = true } +const defaultTime = [ + new Date(2000, 1, 1, 0, 0, 0), + new Date(2000, 2, 1, 23, 59, 59), +] +const disabledDate = (time) => { + const limitDate = new Date(2025, 0, 1); + return time.getTime() < limitDate.getTime(); +} onMounted(() => { console.log('???????????????????', adminData.value) getRefund() diff --git a/src/views/moneyManage/refundDetail/refundService.vue b/src/views/moneyManage/refundDetail/refundService.vue index 4bf4f36..556f40b 100644 --- a/src/views/moneyManage/refundDetail/refundService.vue +++ b/src/views/moneyManage/refundDetail/refundService.vue @@ -43,7 +43,7 @@
付款时间 + end-placeholder="结束时间" style="width:22vw;" :disabled-date="disabledDate" :default-time="defaultTime" clearable />
查询 @@ -644,6 +644,10 @@ const disabledDate = (time) => { const handleMarketChange = (value) => { searchForm.value.market = value || [] } +const defaultTime = [ + new Date(2000, 1, 1, 0, 0, 0), + new Date(2000, 2, 1, 23, 59, 59), +] onMounted(() => { getRefund() getMarket() From a89979a3355c9200c8e0b01c0043b2b863ae663e Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Wed, 22 Oct 2025 10:44:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AF=B9=E7=99=BB=E5=BD=95=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=81=9A=E5=8A=A0=E8=BD=BD=E7=8A=B6=E6=80=81=E9=98=B2?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/login.vue b/src/views/login.vue index c95bf96..9fa8503 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -9,6 +9,8 @@ import {useAdminStore} from '@/store' import {filterFirstMenu, findFirstThirdLevelMenu, getRoutePath,} from "../utils/menuUtils.js" import {storeToRefs} from "pinia"; +const loading = ref(false) // 登录按钮loading状态 + const router = useRouter() // 获取路由实例 //获取当前浏览器地址 var url = window.location.href //上传服务器时打开注释并注释掉下一行 @@ -38,6 +40,13 @@ const adminStore = useAdminStore() //调用方法 const login = async function () { + if(loading.value) { + console.log('正在登录,请稍后') + return + } + + loading.value = true + try { const result = await request({ url: '/admin/login', @@ -177,7 +186,7 @@ onMounted(() => { -

登录

+

{{loading ? '登录中...' : '登录'}}