Commit 24583cf1 authored by Kimber's avatar Kimber

'update'

parent 890b8a5c
...@@ -8,3 +8,6 @@ ...@@ -8,3 +8,6 @@
"version": "1.120",更新内容: 2024/8/10(周六) "version": "1.120",更新内容: 2024/8/10(周六)
为防止环境监测模块名称过长超出边界,添加对设备名称的过滤,只显示设备类型 为防止环境监测模块名称过长超出边界,添加对设备名称的过滤,只显示设备类型
"version": "1.121",2024/9/29(周日)
更新内容: 对大屏模块添加自动播放控制, 控制字段为 autoplay, 在数据库的 sys_views 表中, true 表示自动播放
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
*/ */
--> -->
<template> <template>
<Carousel class="cu-slider" indicator-position="none" height="100%" :interval="config.interval"> <Carousel class="cu-slider" indicator-position="outside" height="100%" :interval="config.interval" :autoplay="config.autoplay">
<Carousel-item v-for="(item, i) in list"> <Carousel-item v-for="(item, i) in list">
<h3><i class="el-icon-s-data"></i>{{item.sumtitle}}</h3> <h3><i class="el-icon-s-data"></i>{{item.sumtitle}}</h3>
<!-- 设备信息 --> <!-- 设备信息 -->
...@@ -138,6 +138,7 @@ export default { ...@@ -138,6 +138,7 @@ export default {
}, },
config:{ config:{
interval:6000, interval:6000,
autoplay:true,
}, },
} }
}, },
...@@ -152,6 +153,7 @@ export default { ...@@ -152,6 +153,7 @@ export default {
methods: { methods: {
createViews(item){ createViews(item){
this.list = item.children;this.config.interval = item.interval; this.list = item.children;this.config.interval = item.interval;
item.autoplay && (this.config.autoplay = item.autoplay);
var carouselCtn = this.$el.firstElementChild; var carouselCtn = this.$el.firstElementChild;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$nextTick(() => { this.$nextTick(() => {
...@@ -320,6 +322,6 @@ export default { ...@@ -320,6 +322,6 @@ export default {
} }
} }
.el-carousel__arrow{display:none;} //.el-carousel__arrow{display:none;}
} }
</style> </style>
\ No newline at end of file
...@@ -49,5 +49,5 @@ module.exports = { ...@@ -49,5 +49,5 @@ module.exports = {
*/ */
caseNumber: '鲁ICP备09100748号-5', caseNumber: '鲁ICP备09100748号-5',
"version": "1.120" "version": "1.121"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment