forked from drone/command-center-dashboard

罗广辉
2025-03-28 fb3136514444c11c63d499a360fa5cb5f6815923
src/views/Home/components/HomeLeft/OverviewNext.vue
@@ -1,5 +1,6 @@
<!-- 机巢概况 -->
<template>
  <common-title :style="{ marginLeft: pxToRem(14) }" @details="detailsFun"></common-title>
    <div class="overview-next">
        <div class="next-num">
            <div class="total">
@@ -14,10 +15,7 @@
            </div>
        </div>
        <div class="search-box">
            <el-input
                v-model="searchText"
                placeholder="请输入搜索内容"
                class="input-with-select">
      <el-input v-model="searchText" placeholder="请输入搜索内容" class="input-with-select">
                <template #append>
                    <el-button :icon="Search" />
                </template>
@@ -30,8 +28,8 @@
            </div>
            <div class="table-item" v-for="item in tableList">
                <div class="name">
                    <img class="yjzx-img" width="10" height="10" src="@/assets/images/table-zx.png" alt="">
                    <img width="13" height="15"  src="@/assets/images/table-icon.png" alt="">
          <img class="yjzx-img" width="10" height="10" src="@/assets/images/table-zx.png" alt="" />
          <img width="13" height="15" src="@/assets/images/table-icon.png" alt="" />
                    {{item.name}}
                </div>
                <div class="status">{{ item.status }}</div>
@@ -40,7 +38,9 @@
    </div>
</template>
<script setup>
import { pxToRem } from '@/utils/rem';
import { Search } from '@element-plus/icons-vue';
import CommonTitle from '@/components/CommonTitle.vue';
const list = ref([
  { name: '执行中', value: 89, color: '#FFA768' },
@@ -55,6 +55,10 @@
  { name: '小兰工业园3号', status: '预计执行' },
  { name: '小兰工业园3号', status: '预计执行' },
]);
const detailsFun = () => {
  console.log('details');
};
</script>
<style scoped lang="scss">
.overview-next {
@@ -63,22 +67,28 @@
    padding: 16px 16px;
    width: 390px;
    height: 414px;
    background: linear-gradient( 270deg, rgba(31,62,122,0) 0%, rgba(31,62,122,0.35) 21%, #1F3E7A 100%);
  background: linear-gradient(
    270deg,
    rgba(31, 62, 122, 0) 0%,
    rgba(31, 62, 122, 0.35) 21%,
    #1f3e7a 100%
  );
    border-radius: 0px 0px 0px 0px;
    opacity: 0.85;
    .next-num {
        width: 358px;
        height: 92px;
        background: url(@/assets/images/next-num.png) no-repeat center / 100% 100%;;
    background: url(@/assets/images/next-num.png) no-repeat center / 100% 100%;
        position: relative;
        .total {
            position: absolute;
            left: 22px;
            top: 18px;
      top: 28px;
            font-weight: 500;
            font-size: 14px;
            color: #FFFFFF;
      color: #ffffff;
            font-family: Source Han Sans CN, Source Han Sans CN;
      line-height: 19px;
            .value {
                font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
                margin-left: 8px;
@@ -97,12 +107,11 @@
                font-family: Source Han Sans CN, Source Han Sans CN;
                font-weight: 400;
                font-size: 14px;
                color: #FFFFFF;
        color: #ffffff;
            }
            .value {
                font-weight: 400;
                font-size: 26px;
            }
        }
    }
@@ -112,14 +121,14 @@
        :deep(.el-input__wrapper) {
            background-color: rgba(0, 112, 255, 0.1);
            background: rgba(0,15,34,0.5);
            box-shadow: 0 0 0 1px #0070FF inset;
      box-shadow: 0 0 0 1px #0070ff inset;
        }
        :deep(.el-input-group__append) {
            background: rgba(0,112,255,0.38);
            .el-button {
                background-color: transparent;
                border: 1px solid #0070FF;
        border: 1px solid #0070ff;
                border-left: none;
                color: #fff;
            }
@@ -137,7 +146,8 @@
        margin: 16px;
        font-weight: 500;
        font-size: 16px;
        .table-header, .table-item {
    .table-header,
    .table-item {
            display: flex;
            justify-content: space-between;
            height: 36px;
@@ -152,10 +162,10 @@
                left: 10px;
            }
            .status {
                color: #6FC3FF;
        color: #6fc3ff;
            }
            .atcive {
                color: #04F020;
        color: #04f020;
            }
        }
    }