update: 新疆大屏

This commit is contained in:
xf
2025-07-06 18:03:41 +08:00
parent 86ed8341e2
commit aa71fd5c7e
9 changed files with 146 additions and 44 deletions
+15 -4
View File
@@ -9,9 +9,9 @@
<template v-if="scrollList.length > 0">
<vue3-seamless-scroll :list="scrollList" class="scroll" :hover="true" :copyNum="3" :limitScrollNum="5" v-bind="{ step: 0.2 }">
<div class="item-d" v-for="(item, index) in scrollList" :key="index">
<div>张二雷{{ index }}</div>
<div style="color: #f6ff00">压力异常(82)</div>
<div>2025-10-26 22:29:58</div>
<div>{{ item.realName }}</div>
<div style="color: #f6ff00">{{ item.eventType_dictText }}({{ item.dataValue }})</div>
<div>{{ item.warnTime }}</div>
<div class="item-d-img">
<img :src="pointPng" alt="" />
<img :src="addressPng" alt="" />
@@ -34,10 +34,21 @@
import { ref, onMounted } from 'vue';
import pointPng from '/@/assets/indexSun/point.png';
import addressPng from '/@/assets/indexSun/address.png';
import { oneRApi } from '/@/views/indexSun/indexSun.api.ts';
const loading = ref(true);
const scrollList = ref<any[]>([{}, {}, {}, {}, {}, {}, {}, {}]);
const scrollList = ref<any[]>([]);
const emit = defineEmits(['handleView']);
onMounted(() => {
getList();
});
function getList() {
oneRApi({}).then((res) => {
if (res.code == 200) {
scrollList.value = res.result.records;
}
});
}
function handleView() {
emit('handleView');
}