Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
Q
quzhou-large-screen
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
quzhou-large-screen
提交
2af18ba1
提交
2af18ba1
编写于
10月 18, 2024
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
20241017 保存
上级
505d5bb6
流水线
#29999
已失败
变更
2
流水线
1
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
109 行增加
和
75 行删除
+109
-75
index.vue
src/pages/welcome/index.vue
+109
-70
index.vue
src/pages/welcomeInfo/index.vue
+0
-5
未找到文件。
src/pages/welcome/index.vue
浏览文件 @
2af18ba1
...
@@ -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
{
...
...
src/pages/welcomeInfo/index.vue
浏览文件 @
2af18ba1
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录