From 3c0701d153c00d3f5458fce7e14c5a23a795541b Mon Sep 17 00:00:00 2001
From: 黄何裕 <1053952480@qq.com>
Date: 星期一, 22 七月 2024 17:09:35 +0800
Subject: [PATCH] 大屏按钮样式修改

---
 src/views/system/monitor/video/index.vue |   67 ++++++++++++++++++++++++---------
 1 files changed, 48 insertions(+), 19 deletions(-)

diff --git a/src/views/system/monitor/video/index.vue b/src/views/system/monitor/video/index.vue
index fbf6ef4..31640c3 100644
--- a/src/views/system/monitor/video/index.vue
+++ b/src/views/system/monitor/video/index.vue
@@ -3,13 +3,13 @@
   <div class="app-container">
 
     <el-card class="box-card" >
-      <el-row type="flex" align="middle" justify="space-between">
-        <el-col :xl="8" :lg="8" :md="10" :sm="8" :xs="6">
-        <div class="icon-container" style="background-color: #5599F7">
+      <el-row type="flex" align="middle" justify="space-between" style="width: 100%;">
+        <el-col :span="4">
+        <div class="icon-container" style="background-color: #1890FF">
           <i class="el-icon-video-camera"></i>
         </div>
         </el-col>
-        <el-col :xl="14" :lg="14" :md="12" :sm="14" :xs="16">
+        <el-col :span="20">
           <div class="dashboard">
             <div class="dashboard-item">
               <h3 style="color: #5C9BF8">{{ count.totalPosts }}</h3>
@@ -122,10 +122,18 @@
 
     <el-table v-loading="loading" :data="monitorList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" align="center" />
-      <el-table-column label="璁惧鍚嶇О" align="center" prop="name" width="280" fixed/>
-      <el-table-column label="璁惧缂栫爜" align="center" prop="serialNumber" width="180"/>
-      <el-table-column label="鏍囩" align="center" prop="publicSecurity" width="180" v-if="columns[0].visible"/>
-      <el-table-column label="鍖哄煙" align="center" prop="address" width="180" v-if="columns[1].visible"/>
+      <el-table-column label="璁惧鍚嶇О" align="center" prop="name" width="280" fixed show-overflow-tooltip/>
+      <el-table-column label="璁惧缂栫爜" align="center" prop="serialNumber" width="180" show-overflow-tooltip/>
+      <el-table-column label="鏍囩" align="center" prop="publicSecurity" width="180" v-if="columns[0].visible">
+        <template slot-scope="scope">
+          <div>{{"鐪佸巺"}}</div>
+        </template>
+      </el-table-column>
+      <el-table-column label="鍖哄煙" align="center" prop="address" width="180" v-if="columns[1].visible">
+        <template slot-scope="scope">
+          <div>{{"鑷祦浜曞尯"}}</div>
+        </template>
+      </el-table-column>
       <el-table-column label="璁惧鐘舵��" align="center" prop="onState" v-if="columns[2].visible">
       <template slot-scope="scope">
         <dict-tag :options="dict.type.camera_state" :value="scope.row.onState"/>
@@ -136,11 +144,31 @@
         <dict-tag :options="dict.type.platform_yes_no" :value="scope.row.defaultOrder"/>
       </template>
       </el-table-column>
-      <el-table-column label="鏁版嵁鏃堕棿" align="center" prop="installedTime" width="180" v-if="columns[4].visible"/>
-      <el-table-column label="绠$悊鍗曚綅" align="center" prop="managementUnit" width="180" v-if="columns[5].visible"/>
-      <el-table-column label="淇′护鏃跺欢(ms)" align="center" prop="sipDelay" width="180" v-if="columns[6].visible"/>
-      <el-table-column label="瑙嗛鏃跺欢(ms)" align="center" prop="videoDelay" width="180" v-if="columns[7].visible"/>
-      <el-table-column label="鍏抽敭甯ф椂寤�(ms)" align="center" prop="iframeDelay" width="180" v-if="columns[8].visible"/>
+      <el-table-column label="鏁版嵁鏃堕棿" align="center" prop="installedTime" width="180" v-if="columns[4].visible">
+        <template slot-scope="scope">
+          <div>{{"2023骞�08鏈�03鏃�"}}</div>
+        </template>
+      </el-table-column>
+      <el-table-column label="绠$悊鍗曚綅" align="center" prop="managementUnit" width="180" v-if="columns[5].visible">
+        <template slot-scope="scope">
+          <div>{{"杩愮淮鍏徃鐢�"}}</div>
+        </template>
+      </el-table-column>
+      <el-table-column label="淇′护鏃跺欢(ms)" align="center" prop="sipDelay" width="180" v-if="columns[6].visible">
+        <template slot-scope="scope">
+          <div>{{"100"}}</div>
+        </template>
+      </el-table-column>
+      <el-table-column label="瑙嗛鏃跺欢(ms)" align="center" prop="videoDelay" width="180" v-if="columns[7].visible">
+        <template slot-scope="scope">
+          <div>{{"200"}}</div>
+        </template>
+      </el-table-column>
+      <el-table-column label="鍏抽敭甯ф椂寤�(ms)" align="center" prop="iframeDelay" width="180" v-if="columns[8].visible">
+        <template slot-scope="scope">
+          <div>{{"300"}}</div>
+        </template>
+      </el-table-column>
       <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"  fixed="right">
           <template slot-scope="scope">
             <el-button
@@ -406,17 +434,17 @@
 <style lang="scss" scoped>
 
 .box-card {
-  background-color: #F5F9FE;
+  background-color: hsl(0, 0%, 100%);
   width: 100%;
   margin-bottom: 20px;
-  height: 120px
+  height: 120px;
 }
 .icon-container {
   display: flex;
   justify-content: center;
   align-items: center;
-  border-radius: 20px;
-  width: 20%;
+  border-radius: 4px;
+  width: 130px;
   height: 80px;
   margin-left: 5%;
 }
@@ -427,9 +455,10 @@
 
 .dashboard {
   display: flex;
-  gap: 10%;
+  gap: 5%;
   align-items: center;
-  margin-left: -50%;
+  justify-content: space-between;
+  margin-right: 20px;
 }
 
 .dashboard-item {

--
Gitblit v1.8.0