Pārlūkot izejas kodu

feat:修改图利大小

wangsisi 1 nedēļu atpakaļ
vecāks
revīzija
7e405b2c02

+ 3 - 3
src/views/warningHome/components/landUseLegend.vue

@@ -303,12 +303,12 @@ const handleCategoryChange = (category) => {
             display: flex;
             align-items: center;
             padding: 5px 0;
-            font-size: 14px;
+            font-size: 15px;
             color: rgba(255, 255, 255, 0.8);
 
             .color-dot {
-                width: 12px;
-                height: 12px;
+                width: 15px;
+                height: 15px;
                 margin-right: 6px;
                 border-radius: 2px;
             }

+ 3 - 3
src/views/warningHome/components/legend.vue

@@ -109,14 +109,14 @@ defineExpose({
             display: flex;
             align-items: center;
             padding: 5px 0;
-            font-size: 14px;
+            font-size: 15px;
             color: rgba(255, 255, 255, 0.8);
 
         }
     }
     .color-dot {
-        width: 12px;
-        height: 12px;
+        width: 15px;
+        height: 15px;
         margin-right: 6px;
         border-radius: 2px;
     }

+ 4 - 4
src/views/warningHome/components/trackDialog.vue

@@ -52,16 +52,16 @@ onMounted(() => {
     eventBus.on("chat:showVideoDialog", showVideoDialogFn)
 })
 
-const showVideoDialog = ref(false)
+const showVideoDialog = ref(null)
 const urlIndex = ref(1)
 const showTrackDialog = (url) => {
-    showVideoDialog.value = false
+    showVideoDialog.value = true
     urlIndex.value = url
     centerDialogVisible.value = true
 }
 
-const showVideoDialogFn = (url) => {
-    showVideoDialog.value = true
+const showVideoDialogFn = () => {
+    showVideoDialog.value = false
     centerDialogVisible.value = true
 }
 </script>

+ 1 - 1
src/views/warningHome/index.vue

@@ -116,7 +116,7 @@ const handleSmartFarmClick = () => {
 };
 
 const handleShowPointClick = () => {
-    eventBus.emit("chat:showTrackDialog")
+    eventBus.emit("chat:showVideoDialog")
 }
 
 const legendRef = ref(null);