From c9aaead65392b10b576f2f35c992a64bfb7ab08f Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期三, 10 四月 2024 18:21:13 +0800
Subject: [PATCH] feat:工单数据

---
 src/views/screen/components/screen-wrapper/index.vue |   94 ++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 77 insertions(+), 17 deletions(-)

diff --git a/src/views/screen/components/screen-wrapper/index.vue b/src/views/screen/components/screen-wrapper/index.vue
index 7bdc799..dbc3d1b 100644
--- a/src/views/screen/components/screen-wrapper/index.vue
+++ b/src/views/screen/components/screen-wrapper/index.vue
@@ -1,22 +1,24 @@
 <template>
   <div class="wrapper-container">
     <select-item></select-item>
-    <div class="return-button">
-      <el-button type="primary">杩斿洖</el-button>
+    <div class="return-button" @click="returnPath">
+      杩斿洖
     </div>
     <div class="wrapper-content">
       <div class="left-container wrapper">
-        <screen-face></screen-face>
-        <screen-car></screen-car>
-        <screen-video></screen-video>
+        <screen-face class="animate-enter-x enter-left"></screen-face>
+        <screen-car class="animate-enter-x enter-left animate-delay-1"></screen-car>
+        <screen-video class="animate-enter-x enter-left animate-delay-2"></screen-video>
       </div>
       <div class="center-container center-wrapper">
         <screen-map></screen-map>
-        <screen-detection></screen-detection>
+        <screen-table class="animate-enter-y enter-top"></screen-table>
+        <!-- <screen-detection></screen-detection> -->
 
       </div>
       <div class="right-container wrapper">
-        <screen-examine></screen-examine>
+        <screen-examine class="animate-enter-x enter-right"></screen-examine>
+        <screen-data></screen-data>
       </div>
     </div>
   </div>
@@ -24,23 +26,30 @@
 
 <script>
 import SelectItem from '../select-item/index';
-import ScreenFace from '../screen-face/index';
-import ScreenDetection from '../screen-detection/index';
 import ScreenExamine from '../screen-examine/index';
+import ScreenFace from '../screen-face/index';
 import ScreenVideo from '../screen-video/index';
 import ScreenCar from '../screen-car/index';
 import ScreenMap from '../screen-map/index';
+import ScreenTable from '../screen-table/index';
+import ScreenData from '../screen-data/index';
 export default {
   name: 'ScreenWrapper',
   components: {
     SelectItem,
-    ScreenFace,
-    ScreenDetection,
     ScreenExamine,
+    ScreenMap,
+    ScreenTable,
+    ScreenFace,
     ScreenVideo,
     ScreenCar,
-    ScreenMap
+    ScreenData
   },
+  methods: {
+    returnPath() {
+      this.$router.push('/index');
+    }
+  }
 }
 </script>
 
@@ -48,8 +57,15 @@
 .return-button {
   position: absolute;
   right: 20px;
-  top: 30px;
+  top: 10px;
+  border-radius: 4px;
+  border: 1px solid #4481DD;
+  background-color: rgba(67, 102, 155, 0.4);
+  color: #4481DD;
+  padding: 5px 20px;
+  cursor: pointer;
 }
+
 .wrapper-container {
   width: 100%;
   height: 100%;
@@ -60,8 +76,8 @@
 
   .wrapper-content {
     width: 100%;
-    height: calc(100% - 100px);
-    margin-top: 100px;
+    height: calc(100% - 60px);
+    margin-top: 60px;
     position: relative;
     box-sizing: border-box;
     padding: 20px;
@@ -72,7 +88,7 @@
 }
 
 .wrapper {
-  width: 27%;
+  width: 25%;
   height: 100%;
   box-sizing: border-box;
   padding: 0 10px;
@@ -88,8 +104,9 @@
     padding-right: 0;
   }
 }
+
 .center-wrapper {
-  width: 46%;
+  width: 50%;
   height: 100%;
   box-sizing: border-box;
   padding: 0 10px;
@@ -97,4 +114,47 @@
   flex-direction: column;
   justify-content: space-between;
 }
+.animate-enter-x {
+  animation: enter-x 0.4s ease forwards;
+}
+.animate-enter-y {
+  animation: enter-y 0.4s ease forwards;
+}
+.enter-left {
+  transform: translateX(-100px);
+  opacity: 0;
+}
+.enter-right {
+  transform: translateX(100px);
+  opacity: 0;
+}
+.enter-top {
+  transform: translateY(100px);
+  opacity: 0;
+}
+.animate-delay-1 {
+  animation-delay: 0.1s;
+}
+
+.animate-delay-2 {
+  animation-delay: 0.3s;
+}
+
+.animate-delay-3 {
+  animation-delay: 0.5s;
+}
+
+@keyframes enter-x {
+  100% {
+    opacity: 1;
+    transform: translateX(0);
+  }
+}
+
+@keyframes enter-y {
+  100% {
+    opacity: 1;
+    transform: translateY(0);
+  }
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0