diff --git a/ui/dasadmin/src/views/backend/dashboard.vue b/ui/dasadmin/src/views/backend/dashboard.vue
index d40abab6..ade8f383 100644
--- a/ui/dasadmin/src/views/backend/dashboard.vue
+++ b/ui/dasadmin/src/views/backend/dashboard.vue
@@ -1,20 +1,36 @@
-
+
-
+
+ <!–实时告警–>
-
+ -->
@@ -322,10 +338,14 @@ const clearScroll = () => {
const createScroll = () => {
clearScroll()
timer =setInterval(() => {
- scrollRef.value.scrollTop += 1
- if (scrollRef.value.clientHeight + scrollRef.value.scrollTop == scrollRef.value.scrollHeight) {
- scrollRef.value.scrollTop = 0
+ scrollRef.value.scrollLeft += 1;
+ if (scrollRef.value.clientWidth + scrollRef.value.scrollLeft == scrollRef.value.scrollWidth) {
+ scrollRef.value.scrollLeft = 0
}
+ //scrollRef.value.scrollTop += 1
+ /* if (scrollRef.value.clientHeight + scrollRef.value.scrollTop == scrollRef.value.scrollHeight) {
+ scrollRef.value.scrollTop = 0
+ }*/
}, 30);
}
@@ -356,7 +376,7 @@ const sizeChange = () => {
if (!rect) return
computedHeight.powerHeight = rect.height - 630 + 'px'
computedHeight.alarmHeight = rect.height - 5 + 'px'
- computedHeight.centerHeight = rect.height - 5 + 'px'
+ computedHeight.centerHeight = rect.height - 0 + 'px'
if (window.screen.width < 1360) {
computedHeight.alarmHeight = '300px'
computedHeight.powerHeight = '200px'
@@ -394,7 +414,7 @@ onUnmounted(() => {
diff --git a/ui/dasadmin/src/views/backend/realData/index.vue b/ui/dasadmin/src/views/backend/realData/index.vue
index 3c60fbd9..fafa2a56 100644
--- a/ui/dasadmin/src/views/backend/realData/index.vue
+++ b/ui/dasadmin/src/views/backend/realData/index.vue
@@ -87,7 +87,7 @@