From 429d2748a322169dcd217c2bb18fe9590c649d99 Mon Sep 17 00:00:00 2001 From: ruancuihong <2806986110@qq.com> Date: Thu, 13 Mar 2025 18:08:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E8=A1=A8=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components.d.ts | 6 +- src/views/Main/DailyPatrolCard/index.vue | 30 ++++-- src/views/Main/ProjectCountCard/index.vue | 1 + src/views/Main/RiskInspectionCard/index.vue | 29 +++++- src/views/Main/SafetyAppraise/index.vue | 109 +++++++++++++++++--- src/views/Main/SafetyOverviewCard/index.vue | 70 ++++++++++--- 6 files changed, 201 insertions(+), 44 deletions(-) diff --git a/src/components.d.ts b/src/components.d.ts index c932a33..f41ccac 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -10,6 +10,9 @@ declare module 'vue' { Card: typeof import('./components/Card/index.vue')['default'] Dialog: typeof import('./components/Dialog/index.vue')['default'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] + ElDropdown: typeof import('element-plus/es')['ElDropdown'] + ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] + ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElInput: typeof import('element-plus/es')['ElInput'] ElOption: typeof import('element-plus/es')['ElOption'] ElPopover: typeof import('element-plus/es')['ElPopover'] @@ -27,7 +30,4 @@ declare module 'vue' { UploadImage: typeof import('./components/Upload/UploadImage.vue')['default'] Video: typeof import('./components/Video/index.vue')['default'] } - export interface ComponentCustomProperties { - vInfiniteScroll: typeof import('element-plus/es')['ElInfiniteScroll'] - } } diff --git a/src/views/Main/DailyPatrolCard/index.vue b/src/views/Main/DailyPatrolCard/index.vue index 435e59d..88ebde3 100644 --- a/src/views/Main/DailyPatrolCard/index.vue +++ b/src/views/Main/DailyPatrolCard/index.vue @@ -14,7 +14,7 @@ @@ -51,7 +132,7 @@ defineOptions({ .appraise-item { width: 104px; height: 119px; - background: url("@/assets/card/safety-item-bg.png") no-repeat; + background: url('@/assets/card/safety-item-bg.png') no-repeat; display: flex; flex-direction: column; align-items: center; @@ -65,8 +146,8 @@ defineOptions({ text-align: center; letter-spacing: 0em; - font-variation-settings: "opsz" auto; - font-feature-settings: "kern" on; + font-variation-settings: 'opsz' auto; + font-feature-settings: 'kern' on; color: #ffffff; } .count { @@ -103,7 +184,7 @@ defineOptions({ line-height: 22px; letter-spacing: 0px; - font-variation-settings: "opsz" auto; + font-variation-settings: 'opsz' auto; color: rgba(0, 0, 0, 0.55); span { font-family: DIN; @@ -112,7 +193,7 @@ defineOptions({ line-height: 22px; letter-spacing: 0px; - font-variation-settings: "opsz" auto; + font-variation-settings: 'opsz' auto; &.ok { color: #28ce8e; } diff --git a/src/views/Main/SafetyOverviewCard/index.vue b/src/views/Main/SafetyOverviewCard/index.vue index 6772900..af20475 100644 --- a/src/views/Main/SafetyOverviewCard/index.vue +++ b/src/views/Main/SafetyOverviewCard/index.vue @@ -2,33 +2,70 @@