+
diff --git a/src/assets/images/legend-item-1.png b/src/assets/images/legend-item-1.png new file mode 100644 index 0000000..0b3886f Binary files /dev/null and b/src/assets/images/legend-item-1.png differ diff --git a/src/assets/images/legend-item-2.png b/src/assets/images/legend-item-2.png new file mode 100644 index 0000000..bde6a94 Binary files /dev/null and b/src/assets/images/legend-item-2.png differ diff --git a/src/assets/images/more-col.png b/src/assets/images/more-col.png new file mode 100644 index 0000000..b42a93a Binary files /dev/null and b/src/assets/images/more-col.png differ diff --git a/src/components/CoreVideo/index.vue b/src/components/CoreVideo/index.vue index 701e0de..99de71b 100644 --- a/src/components/CoreVideo/index.vue +++ b/src/components/CoreVideo/index.vue @@ -64,7 +64,7 @@ background-color: transparent !important; } .core-video { - margin: vh(10); + margin: vw(8); width: vw(300); border-radius: vw(2); background-image: url('@/assets/images/bg-1.png'); @@ -135,7 +135,7 @@ } &-img { width: 100%; - height: vh(164); + height: vw(164); display: block; object-fit: cover; } diff --git a/src/components/Correspondence/index.vue b/src/components/Correspondence/index.vue index d98e79c..bdd0353 100644 --- a/src/components/Correspondence/index.vue +++ b/src/components/Correspondence/index.vue @@ -49,7 +49,7 @@ diff --git a/src/hooks/socket.js b/src/hooks/socket.js index 655033b..2cb5fda 100644 --- a/src/hooks/socket.js +++ b/src/hooks/socket.js @@ -1,9 +1,9 @@ import { ref } from 'vue' export function useWebSocket(url) { - let socket = ref(null) - let data = ref(null) - let isConnected = ref(false) + let socket = ref(null) // socket对象 + let data = ref(null) // 存储接收到的数据 + let isConnected = ref(false) // 是否连接成功 const connectWebSocket = () => { socket.value = new WebSocket(url, 'echo-protocol', { @@ -15,13 +15,6 @@ export function useWebSocket(url) { socket.value.onopen = () => { isConnected.value = true console.log('WebSocket connected') - sendMessage( - JSON.stringify({ - action: 'start', - type: 'index', - scenitspot: 'index' - }) - ) } socket.value.onerror = (error) => { console.error('WebSocket error:', error) diff --git a/src/styles/common.scss b/src/styles/common.scss index 8d1d75e..2c15c8f 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -38,10 +38,10 @@ margin-top: vw(8) !important; } .pt-10 { - padding-top: vh(10) !important; + padding-top: vw(10) !important; } .pb-10 { - padding-bottom: vh(10) !important; + padding-bottom: vw(10) !important; } .mb-10 { margin-bottom: vh(10) !important; diff --git a/src/views/home/components/age.vue b/src/views/home/components/age.vue index 308a7ce..5a541e0 100644 --- a/src/views/home/components/age.vue +++ b/src/views/home/components/age.vue @@ -1,5 +1,5 @@ - + diff --git a/src/views/home/components/box-1.vue b/src/views/home/components/box-1.vue index d6a8b6d..0c78173 100644 --- a/src/views/home/components/box-1.vue +++ b/src/views/home/components/box-1.vue @@ -6,9 +6,10 @@
+
+
+
{{ item.name }}
+
+
工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息 工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息
工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息 工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息
工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息
工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息
@@ -272,6 +272,7 @@
.progress {
width: vw(100);
:deep(.el-progress-bar__outer) {
+ height: vh(4) !important;
background-color: #0858ae !important;
}
}
@@ -304,29 +305,27 @@
&:nth-last-child(1) {
margin-bottom: 0;
}
- .tag {
+ &-tag {
padding: 0 vw(16);
font-weight: bold;
font-size: vw(14);
+ color: #fff;
display: flex;
align-items: center;
justify-content: center;
border-radius: vw(2);
- &--success {
- color: #02f9fa;
- border: 1px solid #02f9fa;
- box-shadow: inset 0 0 vw(8) 0 #0be1ab;
- }
- &--error {
- color: #ee2c2c;
- border: 1px solid #ee2c2c;
- box-shadow: inset 0 0 vw(8) 0 #ee2c2c;
- }
- &--primary {
- color: #00aaff;
- border: 1px solid #00aaff;
- box-shadow: inset 0 0 vw(8) 0 #00aaff;
- }
+ }
+ &-tag--warning {
+ @extend .item-tag;
+ background: #feae00;
+ }
+ &-tag--error {
+ @extend .item-tag;
+ background: #d9011b;
+ }
+ &-tag--primary {
+ @extend .item-tag;
+ background: #2380fb;
}
.content {
margin-left: vw(4);
diff --git a/src/views/home/components/box-3.vue b/src/views/home/components/box-3.vue
index dd4dc86..f1a4223 100644
--- a/src/views/home/components/box-3.vue
+++ b/src/views/home/components/box-3.vue
@@ -1,7 +1,7 @@
+