145 lines
3.6 KiB
Vue
145 lines
3.6 KiB
Vue
|
|
<!--
|
|||
|
|
* @Author: SunTao 328867980@qq.com
|
|||
|
|
* @Date: 2024-10-18 10:31:31
|
|||
|
|
* @LastEditors: SunTao 328867980@qq.com
|
|||
|
|
* @LastEditTime: 2024-10-18 14:22:33
|
|||
|
|
* @FilePath: \znxjxt-ui\src\views\big-screen\disease-components\pic-rank.vue
|
|||
|
|
* @Description: 病害巡检-pic排名
|
|||
|
|
-->
|
|||
|
|
|
|||
|
|
<template>
|
|||
|
|
<div class="content">
|
|||
|
|
<vue-seamless-scroll
|
|||
|
|
class="vue-scroll"
|
|||
|
|
:class-option="defaultOption"
|
|||
|
|
:data="picList"
|
|||
|
|
>
|
|||
|
|
<div
|
|||
|
|
class="pic-div"
|
|||
|
|
v-for="(item, index) in picList"
|
|||
|
|
:key="`pic-${index}`"
|
|||
|
|
>
|
|||
|
|
<div class="pic-top">
|
|||
|
|
<div class="pic-top-name">
|
|||
|
|
<a>{{ index + 1 }}</a
|
|||
|
|
>{{ item.name }}
|
|||
|
|
</div>
|
|||
|
|
<div class="pic-top-value">{{ item.value }}</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="pic-bottom">
|
|||
|
|
<div
|
|||
|
|
:style="{ width: `${(item.value / 300) * 100}%` }"
|
|||
|
|
:class="`pic-bottom-${index}`"
|
|||
|
|
></div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</vue-seamless-scroll>
|
|||
|
|
</div>
|
|||
|
|
</template>
|
|||
|
|
|
|||
|
|
<script>
|
|||
|
|
import vueSeamlessScroll from "vue-seamless-scroll";
|
|||
|
|
export default {
|
|||
|
|
name: "PicRank",
|
|||
|
|
components: { vueSeamlessScroll },
|
|||
|
|
data() {
|
|||
|
|
return {
|
|||
|
|
// 轮播配置
|
|||
|
|
defaultOption: {
|
|||
|
|
step: 0.2, // 数值越大速度滚动越快
|
|||
|
|
limitMoveNum: 1,
|
|||
|
|
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: 2000, // 单步运动停止的时间(默认值1000ms)
|
|||
|
|
},
|
|||
|
|
// 排名数据
|
|||
|
|
picList: [
|
|||
|
|
{ name: "沈阳绕城高速(G1501)", value: 95 },
|
|||
|
|
{ name: "沈阳绕城高速(G1501)", value: 75 },
|
|||
|
|
{ name: "沈阳绕城高速(G1501)", value: 70 },
|
|||
|
|
{ name: "沈阳绕城高速(G1501)", value: 65 },
|
|||
|
|
{ name: "沈阳绕城高速(G1501)", value: 55 },
|
|||
|
|
],
|
|||
|
|
};
|
|||
|
|
},
|
|||
|
|
};
|
|||
|
|
</script>
|
|||
|
|
|
|||
|
|
<style lang="scss" scoped>
|
|||
|
|
.content {
|
|||
|
|
width: 100%;
|
|||
|
|
height: 100%;
|
|||
|
|
color: #c7daf2;
|
|||
|
|
overflow: hidden;
|
|||
|
|
|
|||
|
|
.pic-div {
|
|||
|
|
width: calc(100% - 1rem);
|
|||
|
|
height: 3rem;
|
|||
|
|
display: flex;
|
|||
|
|
flex-direction: column;
|
|||
|
|
justify-content: space-between;
|
|||
|
|
margin: 0.5rem;
|
|||
|
|
padding: 0.5rem 1rem;
|
|||
|
|
border: 1px solid #2f78aa;
|
|||
|
|
|
|||
|
|
.pic-top {
|
|||
|
|
display: flex;
|
|||
|
|
justify-content: space-between;
|
|||
|
|
|
|||
|
|
.pic-top-name {
|
|||
|
|
display: flex;
|
|||
|
|
align-items: flex-end;
|
|||
|
|
font-size: 0.8rem;
|
|||
|
|
|
|||
|
|
a {
|
|||
|
|
display: flex;
|
|||
|
|
width: 1rem;
|
|||
|
|
height: 1rem;
|
|||
|
|
margin-right: 0.5rem;
|
|||
|
|
justify-content: center;
|
|||
|
|
align-items: center;
|
|||
|
|
border: 1px solid #2f78aa;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.pic-top-value {
|
|||
|
|
font-size: 1rem;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.pic-bottom {
|
|||
|
|
width: 100%;
|
|||
|
|
height: 0.3rem;
|
|||
|
|
|
|||
|
|
.pic-bottom-0 {
|
|||
|
|
height: 0.3rem;
|
|||
|
|
background: linear-gradient(90deg, #322707 0%, #ffc000 100%);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.pic-bottom-1 {
|
|||
|
|
height: 0.3rem;
|
|||
|
|
background: linear-gradient(90deg, #322707 0%, #00fcff 100%);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.pic-bottom-2 {
|
|||
|
|
height: 0.3rem;
|
|||
|
|
background: linear-gradient(90deg, #322707 0%, #22b5ff 100%);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.pic-bottom-3 {
|
|||
|
|
height: 0.3rem;
|
|||
|
|
background: linear-gradient(90deg, #322707 0%, #00fcff 100%);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.pic-bottom-4 {
|
|||
|
|
height: 0.3rem;
|
|||
|
|
background: linear-gradient(90deg, #322707 0%, #22b5ff 100%);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
</style>
|
|||
|
|
|