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

20241017 保存

上级 505d5bb6
流水线 #29999 已失败
...@@ -220,30 +220,7 @@ ...@@ -220,30 +220,7 @@
<div v-if="!!!init.data.xscrq.length" class="c-f-l-f-empty"></div> <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 "> <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
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>
</vue3SeamlessScroll>
</tbody>
</table>-->
<div class="c-f-l-f-title BackGround1"> <div class="c-f-l-f-title BackGround1">
<div <div
style="width: 100%;height: 100%;display: flex;justify-content: space-between;color: white;font-size: 0.7vw;"> style="width: 100%;height: 100%;display: flex;justify-content: space-between;color: white;font-size: 0.7vw;">
...@@ -276,16 +253,14 @@ ...@@ -276,16 +253,14 @@
:key="index" :class="['','BackGround1'][index % 2 === 0?0:1]" :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;"> 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%; margin-left: 0.8vw;font-size: 0.7vw">{{ item.name }}</div>
<div style=" width: 20%; font-size: 0.7vw;overflow-x: hidden; "><span <div style=" width: 20%; font-size: 0.7vw;overflow-x: hidden; "><span>{{ item.class_name }}</span>
style="margin-left: 0.5vw;">{{ </div>
item.class_name <div style=" width: 18%; font-size: 0.7vw;"><span>{{ item.room_name }}</span></div>
}}</span></div> <div style=" width: 18%; font-size: 0.7vw">
<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-if="item.state_name==='进'" class="yerllow">{{ item.state_name }}</span>
<span v-else class="blueness">{{ item.state_name }}</span> <span v-else class="blueness">{{ item.state_name }}</span>
</div> </div>
<div style=" display:flex;width: 24%; font-size: 0.7vw;">{{ item.time }}</div> <div style=" width: 24%; font-size: 0.7vw">{{ item.time }}</div>
</div> </div>
</vue3SeamlessScroll> </vue3SeamlessScroll>
</div> </div>
...@@ -521,7 +496,7 @@ ...@@ -521,7 +496,7 @@
</div> </div>
</template> </template>
<script setup> <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 charts from "echarts";
import * as utils from "../../utils/index.js"; import * as utils from "../../utils/index.js";
import {Vue3SeamlessScroll} from "vue3-seamless-scroll"; import {Vue3SeamlessScroll} from "vue3-seamless-scroll";
...@@ -853,6 +828,20 @@ const openIndexDB = () => { ...@@ -853,6 +828,20 @@ const openIndexDB = () => {
biao.add({123: 'id'}) 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(() => { onUnmounted(() => {
clearInterval(init.data.piece) clearInterval(init.data.piece)
Object.values(init.data.timePiece).map(cur => clearInterval(cur)) Object.values(init.data.timePiece).map(cur => clearInterval(cur))
...@@ -1495,9 +1484,59 @@ onMounted(() => { ...@@ -1495,9 +1484,59 @@ onMounted(() => {
height: 100%; height: 100%;
padding-top: 0.5vw; 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 { .c-f-l-f-title {
width: 100%; width: 100%;
height: 13%; height: 13%;
} }
.c-f-l-f-content { .c-f-l-f-content {
......
...@@ -129,11 +129,6 @@ ...@@ -129,11 +129,6 @@
v-for="(item, index) in init.data.xscrq" v-for="(item, index) in init.data.xscrq"
:key="index" :class="['','BackGround1'][index % 2 === 0?0:1]" :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;"> 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%; 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 style=" width: 20%; font-size: 0.7vw;overflow-x: hidden; "><span>{{ item.class_name }}</span>
</div> </div>
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或