From 38096899e190e8d5446331b6033cb26d62b644e1 Mon Sep 17 00:00:00 2001 From: pengYYY Date: Wed, 22 Dec 2021 23:29:37 +0800 Subject: [PATCH] fix(responsive): responsive ui edit --- src/layouts/components/Header.vue | 3 +- src/pages/dashboard/base/index.vue | 4 +- src/pages/dashboard/detail/index.vue | 2 +- src/pages/form/base/constants.ts | 1 + src/pages/form/base/index.less | 1 - src/pages/form/base/index.vue | 32 ++++++------ src/pages/list/base/index.vue | 6 +-- src/pages/list/card/index.vue | 4 +- src/pages/list/components/CommonTable.vue | 60 +++++++++++------------ src/pages/result/success/index.vue | 4 +- src/pages/user/index.vue | 11 ++++- 11 files changed, 67 insertions(+), 61 deletions(-) diff --git a/src/layouts/components/Header.vue b/src/layouts/components/Header.vue index e869eb8..d3ab107 100644 --- a/src/layouts/components/Header.vue +++ b/src/layouts/components/Header.vue @@ -268,7 +268,8 @@ export default defineComponent({ } .header-logo-container { - width: 166px; + width: 184px; + height: 26px; display: flex; margin-left: 24px; color: @text-color-primary; diff --git a/src/pages/dashboard/base/index.vue b/src/pages/dashboard/base/index.vue index 0dc185e..b437b76 100644 --- a/src/pages/dashboard/base/index.vue +++ b/src/pages/dashboard/base/index.vue @@ -236,7 +236,9 @@ const getThisMonth = (checkedValues?: string[]) => { date = new Date(checkedValues[0]); const date2 = new Date(checkedValues[1]); - return `${date.getFullYear()}-${date.getMonth() + 1} 至 ${date2.getFullYear()}-${date2.getMonth() + 1}`; + const startMonth = date.getMonth() + 1 > 9 ? date.getMonth() + 1 : `0${date.getMonth() + 1}`; + const endMonth = date2.getMonth() + 1 > 9 ? date2.getMonth() + 1 : `0${date2.getMonth() + 1}`; + return `${date.getFullYear()}-${startMonth} 至 ${date2.getFullYear()}-${endMonth}`; }; export default defineComponent({ diff --git a/src/pages/dashboard/detail/index.vue b/src/pages/dashboard/detail/index.vue index 6a027a3..1862155 100644 --- a/src/pages/dashboard/detail/index.vue +++ b/src/pages/dashboard/detail/index.vue @@ -16,7 +16,7 @@ - +