提交 2af18ba1 编写于 作者: 刘英杰's avatar 刘英杰

20241017 保存

上级 505d5bb6
流水线 #29999 已失败
......@@ -4,14 +4,14 @@
<div class="h-t">
<div class="h-t-l">
<div class="h-t-l-time">
<span>{{ init.data.time }}</span>
<span>{{ init.data.time }}</span>
</div>
</div>
<div class="h-t-c">
<span class="h-t-c-title">{{ init.data.initTitle.subject_title }}</span>
</div>
<div class="h-t-r">
<Icon color="#fff" style="font-size:1vw; " type="ios-cog" @click="value = true"/>
<Icon color="#fff" style="font-size:1vw; " type="ios-cog" @click="value = true"/>
</div>
</div>
<div class="h-c">
......@@ -220,75 +220,50 @@
<div v-if="!!!init.data.xscrq.length" class="c-f-l-f-empty"></div>
<div v-else-if="!!init.data.xscrq.length" class="c-f-l-f-table ">
<!-- <table class="w-full">
<thead class="w-full">
<tr style="color: #c2efff;font-size: 0.8vw;">
<td v-for="item in init.table.headArray" :key="item" class="w-[20%] ">{{ item }}</td>
</tr>
</thead>
<tbody class="w-full h-full ">
<vue3SeamlessScroll :hover="true" :list="init.data.xscrq" :step="0.1" class="scroll w-full h-full accent-red-500" isWatch
<div class="c-f-l-f-title BackGround1">
<div
style="width: 100%;height: 100%;display: flex;justify-content: space-between;color: white;font-size: 0.7vw;">
<div
style="width: 20%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-left: 1vw;">
<div>姓名</div>
</div>
<div
style="width: 20%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-left: 1vw">
<div>班级</div>
</div>
<div style="width:18%;height: 100%;display:flex;justify-content: flex-start;align-items:center;">
<div>寝室</div>
</div>
<div
style="width:18%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-right: 0.7vw;">
<div>状态</div>
</div>
<div
style="width: 24%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-right: 1vw;">
<div>时间</div>
</div>
</div>
</div>
<div class="c-f-l-f-content">
<vue3SeamlessScroll :hover="true" :list="init.data.xscrq" :step="0.1" class="scroll" isWatch
limitScrollNum="9">
<tr v-for="(item,index) in init.data.xscrq"
:key="index" :class="['','BackGround1'][index % 2 === 0?0:1]"
style=" min-height: 1.5vw;">
<td class="text-wrap bg-green-600 text-[0.8vw] ">{{ item.name }}</td>
<td class="text-wrap text-[0.8vw] ">{{ item.room_name }}</td>
<td class="text-wrap text-[0.8vw] ">{{ item.state_name }}</td>
<td class="text-wrap text-[0.8vw] ">{{ item.state_name }}</td>
<td class="text-wrap text-[0.8vw] ">{{ item.time }}</td>
</tr>
<div
v-for="(item, index) in init.data.xscrq"
:key="index" :class="['','BackGround1'][index % 2 === 0?0:1]"
style=" color: #c2efff; display: flex;justify-content: space-between;align-items: center;width: 32vw; min-height: 1.5vw;">
<div style=" width: 20%; margin-left: 0.8vw;font-size: 0.7vw">{{ item.name }}</div>
<div style=" width: 20%; font-size: 0.7vw;overflow-x: hidden; "><span>{{ item.class_name }}</span>
</div>
<div style=" width: 18%; font-size: 0.7vw;"><span>{{ item.room_name }}</span></div>
<div style=" width: 18%; font-size: 0.7vw">
<span v-if="item.state_name==='进'" class="yerllow">{{ item.state_name }}</span>
<span v-else class="blueness">{{ item.state_name }}</span>
</div>
<div style=" width: 24%; font-size: 0.7vw">{{ item.time }}</div>
</div>
</vue3SeamlessScroll>
</tbody>
</table>-->
<div class="c-f-l-f-title BackGround1">
<div
style="width: 100%;height: 100%;display: flex;justify-content: space-between;color: white;font-size: 0.7vw;">
<div
style="width: 20%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-left: 1vw;">
<div>姓名</div>
</div>
<div
style="width: 20%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-left: 1vw">
<div>班级</div>
</div>
<div style="width:18%;height: 100%;display:flex;justify-content: flex-start;align-items:center;">
<div>寝室</div>
</div>
<div
style="width:18%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-right: 0.7vw;">
<div>状态</div>
</div>
<div
style="width: 24%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-right: 1vw;">
<div>时间</div>
</div>
</div>
</div>
<div class="c-f-l-f-content">
<vue3SeamlessScroll :hover="true" :list="init.data.xscrq" :step="0.1" class="scroll" isWatch
limitScrollNum="9">
<div
v-for="(item, index) in init.data.xscrq"
:key="index" :class="['','BackGround1'][index % 2 === 0?0:1]"
style=" color: #c2efff; display: flex;justify-content: space-between;align-items: center;width: 32vw; min-height: 1.5vw;">
<div style=" width: 20%; margin-left: 0.8vw;font-size: 0.7vw">{{ item.name }}</div>
<div style=" width: 20%; font-size: 0.7vw;overflow-x: hidden; "><span
style="margin-left: 0.5vw;">{{
item.class_name
}}</span></div>
<div style=" width:18%; display: flex; font-size: 0.7vw;"><span>{{ item.room_name }}</span></div>
<div style=" width:18%; display: flex; font-size: 0.7vw">
<span v-if="item.state_name==='进'" class="yerllow">{{ item.state_name }}</span>
<span v-else class="blueness">{{ item.state_name }}</span>
</div>
<div style=" display:flex;width: 24%; font-size: 0.7vw;">{{ item.time }}</div>
</div>
</vue3SeamlessScroll>
</div>
</div>
</div>
</div>
</div>
......@@ -521,7 +496,7 @@
</div>
</template>
<script setup>
import {defineAsyncComponent, onMounted, onUnmounted, reactive, ref, watch} from "vue";
import {computed, defineAsyncComponent, onMounted, onUnmounted, reactive, ref, watch} from "vue";
import * as charts from "echarts";
import * as utils from "../../utils/index.js";
import {Vue3SeamlessScroll} from "vue3-seamless-scroll";
......@@ -853,6 +828,20 @@ const openIndexDB = () => {
biao.add({123: 'id'})
};
}
let defaultOption = ref({
timer: null,
step: 0.2, // 数值越大速度滚动越快
limitMoveNum: 0, // 开始无缝滚动的数据量 this.dataList.length
hoverStop: true, // 是否开启鼠标悬停stop
direction: 1, // 0向下 1向上 2向左 3向右
openWatch: true, // 开启数据实时监控刷新dom
singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
waitTime: 1000, // 单步运动停止的时间(默认值1000ms)
})
onUnmounted(() => {
clearInterval(init.data.piece)
Object.values(init.data.timePiece).map(cur => clearInterval(cur))
......@@ -1242,7 +1231,7 @@ onMounted(() => {
align-items: center;
justify-content: center;
margin-top: 0.4vw;
/* background: url("../../assets/materialImage/6.主屏(楼栋信息实时统计背景).png");*/
/* background: url("../../assets/materialImage/6.主屏(楼栋信息实时统计背景).png");*/
background: url("../../assets/大屏统一素材/左.png");
background-size: 100% 100%;
......@@ -1495,9 +1484,59 @@ onMounted(() => {
height: 100%;
padding-top: 0.5vw;
ul {
list-style: none;
}
table {
width: 100%;
text-align: center;
}
th {
height: 20px;
line-height: 20px;
font-size: 14px;
}
.th1 {
width: 20%;
.text_align {
text-align: center;
}
}
/*//设置宽度与表头列宽一致*/
.seamless-warp {
/*组件 自动获取父级width*/
height: calc(100% - 50px);
overflow: hidden;
.liStyle {
min-height: 30px;
line-height: 30px;
width: 100%;
display: flex; /* //设置flex布局,否则span标签无法设置宽度*/
.title1 {
width: 20%;
}
/*//设置宽度与表头列宽一致*/
.text_align {
text-align: center;
}
}
}
.c-f-l-f-title {
width: 100%;
height: 13%;
}
.c-f-l-f-content {
......
......@@ -129,11 +129,6 @@
v-for="(item, index) in init.data.xscrq"
:key="index" :class="['','BackGround1'][index % 2 === 0?0:1]"
style=" color: #c2efff; display: flex;justify-content: space-between;align-items: center;width: 32vw; min-height: 1.5vw;">
<!-- <div style="margin-left: 0.8vw;font-size: 0.7vw">{{item.name}}</div>-->
<!-- <div style="font-size: 0.7vw;overflow-x: hidden; ">{{item.class_name}}</div>-->
<!-- <div style="font-size: 0.7vw;">{{item.card}}</div>-->
<!-- <div style="font-size: 0.7vw">{{item.state_name}}</div>-->
<!-- <div style="font-size: 0.7vw">{{item.time}}</div>-->
<div style=" width: 20%; margin-left: 0.8vw;font-size: 0.7vw">{{ item.name }}</div>
<div style=" width: 20%; font-size: 0.7vw;overflow-x: hidden; "><span>{{ item.class_name }}</span>
</div>
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或