From 8dd7af51db4cf768fbf92002b5b62f7fb9d1c929 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期二, 06 五月 2025 15:04:59 +0800 Subject: [PATCH] refactor(zhitan):调整模型代码和优化能源统计功能 --- zhitan-vue/src/views/index.vue | 45 ++++++++++++++++++++++++++++----------------- 1 files changed, 28 insertions(+), 17 deletions(-) diff --git a/zhitan-vue/src/views/index.vue b/zhitan-vue/src/views/index.vue index 0805090..85e2687 100644 --- a/zhitan-vue/src/views/index.vue +++ b/zhitan-vue/src/views/index.vue @@ -336,6 +336,7 @@ }) const { queryParams } = toRefs(data) function handleTimeType(item, type) { + console.log("itemtype",item,type) queryParams.value.timeType = item queryParams.value.type = type queryParams.value.dataTime = proxy.dayjs(new Date()).format("YYYY-MM-DD") @@ -924,7 +925,7 @@ width: 0; flex: 1 1 320px; max-width: 320px; - height: 127px; + height: 135px; background: rgba(242, 246, 250, 0.1); box-sizing: border-box; padding: 16px; @@ -941,7 +942,7 @@ } .item-left { - margin-right: 16px; + margin-right: 20px; .top-icon { width: 73px; @@ -967,9 +968,12 @@ font-size: 14px; font-family: OPPOSans-Regular; color: rgba(255, 255, 255, 0.65); + letter-spacing: 0.5px; + margin-bottom: 4px; + .unit { color: rgba(255, 255, 255, 0.65); - margin-left: 2px; + margin-left: 4px; font-size: 12px; font-weight: normal; } @@ -978,29 +982,31 @@ .right-value { font-weight: 500; font-size: 26px; - margin-top: 4px; + margin-top: 6px; font-family: OPPOSans-Medium; color: #fff; - line-height: 1; + line-height: 1.2; + letter-spacing: 0.5px; } } .item-bottom { display: flex; justify-content: space-between; - margin-top: 14px; + margin-top: 18px; font-family: OPPOSans, OPPOSans; font-weight: normal; font-size: 12px; color: rgba(255, 255, 255, 0.5); - line-height: 1; + line-height: 1.2; .bottom-left, .bottom-right { display: flex; align-items: center; + letter-spacing: 0.3px; :deep(.el-icon) { - margin-left: 4px; + margin-left: 6px; font-size: 12px; } } @@ -1082,7 +1088,7 @@ .themeLight { .page { padding: 20px; - background: #f7f8fa; + background: #fff; .card-title { width: 132px; @@ -1109,7 +1115,7 @@ width: 0; flex: 1 1 320px; max-width: 320px; - height: 127px; + height: 135px; background: #fff; box-sizing: border-box; padding: 16px; @@ -1121,7 +1127,7 @@ align-items: center; .item-left { - margin-right: 16px; + margin-right: 20px; .top-icon { width: 73px; @@ -1147,9 +1153,12 @@ font-size: 14px; font-family: OPPOSans-Regular; color: rgba(0, 0, 0, 0.65); + letter-spacing: 0.5px; + margin-bottom: 4px; + .unit { color: rgba(0, 0, 0, 0.65); - margin-left: 2px; + margin-left: 4px; font-size: 12px; font-weight: normal; } @@ -1158,29 +1167,31 @@ .right-value { font-weight: 500; font-size: 26px; - margin-top: 4px; + margin-top: 6px; font-family: OPPOSans-Medium; color: #333; - line-height: 1; + line-height: 1.2; + letter-spacing: 0.5px; } } .item-bottom { display: flex; justify-content: space-between; - margin-top: 14px; + margin-top: 18px; font-family: OPPOSans, OPPOSans; font-weight: normal; font-size: 12px; color: rgba(0, 0, 0, 0.5); - line-height: 1; + line-height: 1.2; .bottom-left, .bottom-right { display: flex; align-items: center; + letter-spacing: 0.3px; :deep(.el-icon) { - margin-left: 4px; + margin-left: 6px; font-size: 12px; } } -- Gitblit v1.9.3