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(() => {
-
查询
@@ -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()