From 3748cbf0a42798c6fd9e27eecd7355871f99687d Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 28 Mar 2025 10:38:05 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/drone/command-center-dashboard
---
src/views/Home/components/HomeRight/EventOverview.vue | 95 ++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 93 insertions(+), 2 deletions(-)
diff --git a/src/views/Home/components/HomeRight/EventOverview.vue b/src/views/Home/components/HomeRight/EventOverview.vue
index 2447bdb..20d1dfc 100644
--- a/src/views/Home/components/HomeRight/EventOverview.vue
+++ b/src/views/Home/components/HomeRight/EventOverview.vue
@@ -1,12 +1,13 @@
<script setup>
import CommonTitle from '@/components/CommonTitle.vue';
-import { wToR } from '@/utils/pxConver';
+import { pxToRem } from '@/utils/rem';
import overviewImg1 from '@/assets/images/home/homeRight/overview1.png';
import overviewImg2 from '@/assets/images/home/homeRight/overview2.png';
import overviewImg3 from '@/assets/images/home/homeRight/overview3.png';
import overviewImg4 from '@/assets/images/home/homeRight/overview4.png';
import overviewImg5 from '@/assets/images/home/homeRight/overview5.png';
import overviewImg6 from '@/assets/images/home/homeRight/overview6.png';
+import completionLeft from '@/assets/images/home/homeRight/completionLeft.png';
const list = ref([
{ name: '待审核', value: 265, img: overviewImg1, color: '#FF8E8E' },
@@ -16,11 +17,35 @@
{ name: '已完成', value: 246, img: overviewImg5, color: '#FF8E8E' },
{ name: '已完结', value: 262, img: overviewImg6, color: '#8EFFAC' },
]);
+const value = ref('');
+
+const options = [
+ {
+ value: 'Option1',
+ label: 'Option1',
+ },
+ {
+ value: 'Option2',
+ label: 'Option2',
+ },
+ {
+ value: 'Option3',
+ label: 'Option3',
+ },
+ {
+ value: 'Option4',
+ label: 'Option4',
+ },
+ {
+ value: 'Option5',
+ label: 'Option5',
+ },
+];
</script>
<template>
<CommonTitle title="事件概况" />
- <div :style="{ marginLeft: wToR(14) }">
+ <div :style="{ marginLeft: pxToRem(14) }">
<div class="eventOverview">
<div class="overviewData">
<div class="totalBox">
@@ -34,11 +59,49 @@
</div>
</div>
</div>
+
+ <el-select class="homeRightSelect" v-model="value" placeholder="请选择" size="large">
+ <el-option
+ v-for="item in options"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
+
+ <div class="completion">
+ <img class="completion-left-img" :src="completionLeft" />
+ <div class="completion-text">事件类型完成率情况</div>
+ <div class="completion-separator"></div>
+ <img class="completion-left-img" :src="completionLeft" />
+ </div>
+
+ <div class="chart">
+ <div class="chart-text">echarts柱状图</div>
+ </div>
</div>
</div>
</template>
<style scoped lang="scss">
+.homeRightSelect {
+ width: 356px;
+
+ :deep() {
+ .el-select__wrapper {
+ background: linear-gradient(90deg, #195bad 0%, rgba(25, 91, 173, 0) 100%);
+ min-height: 28px;
+ box-shadow: none;
+ border: 1px solid #306fca;
+ }
+
+ .el-select__placeholder {
+ font-family: Microsoft YaHei, Microsoft YaHei, serif;
+ color: #ffffff;
+ }
+ }
+}
+
.eventOverview {
width: 390px;
height: 445px;
@@ -119,5 +182,33 @@
}
}
}
+
+ .completion {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ width: 356px;
+ height: 23px;
+
+ &--left-img {
+ width: 16px;
+ height: 16px;
+ }
+
+ &-text {
+ font-family: YouSheBiaoTiHei, YouSheBiaoTiHei, serif;
+ font-weight: 400;
+ font-size: 18px;
+ color: #ffffff;
+ line-height: 21px;
+ }
+
+ &-separator {
+ width: 149px;
+ height: 0px;
+ border: 1px solid #4ca6ff;
+ opacity: 0.2;
+ }
+ }
}
</style>
--
Gitblit v1.9.3