fix:首页+大屏问题修改
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: SunTao 328867980@qq.com
|
||||
* @Date: 2024-10-18 10:31:31
|
||||
* @LastEditors: SunTao 328867980@qq.com
|
||||
* @LastEditTime: 2024-10-24 15:35:02
|
||||
* @LastEditTime: 2024-10-30 16:21:25
|
||||
* @FilePath: \znxjxt-ui\src\views\big-screen\disease-components\pic-rank.vue
|
||||
* @Description: 病害巡检-pic排名
|
||||
-->
|
||||
@@ -94,7 +94,7 @@ export default {
|
||||
getPicData() {
|
||||
roadPic().then(({ data, code }) => {
|
||||
if (code === 200) {
|
||||
this.picList = data;
|
||||
this.picList = data.slice(0, 5);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -159,27 +159,47 @@ export default {
|
||||
|
||||
.pic-bottom-0 {
|
||||
height: 0.3rem;
|
||||
background: linear-gradient(90deg, #322707 0%, #ffc000 100%);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(3, 25, 56, 0.2) 0%,
|
||||
#ffc000 100%
|
||||
);
|
||||
}
|
||||
|
||||
.pic-bottom-1 {
|
||||
height: 0.3rem;
|
||||
background: linear-gradient(90deg, #322707 0%, #00fcff 100%);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(3, 25, 56, 0.2) 0%,
|
||||
#00fcff 100%
|
||||
);
|
||||
}
|
||||
|
||||
.pic-bottom-2 {
|
||||
height: 0.3rem;
|
||||
background: linear-gradient(90deg, #322707 0%, #22b5ff 100%);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(3, 25, 56, 0.2) 0%,
|
||||
#22b5ff 100%
|
||||
);
|
||||
}
|
||||
|
||||
.pic-bottom-3 {
|
||||
height: 0.3rem;
|
||||
background: linear-gradient(90deg, #322707 0%, #00fcff 100%);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(3, 25, 56, 0.2) 0%,
|
||||
#00fcff 100%
|
||||
);
|
||||
}
|
||||
|
||||
.pic-bottom-4 {
|
||||
height: 0.3rem;
|
||||
background: linear-gradient(90deg, #322707 0%, #22b5ff 100%);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(3, 25, 56, 0.2) 0%,
|
||||
#22b5ff 100%
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,13 +114,15 @@ export default {
|
||||
getRoadList() {
|
||||
roadRankList({ type: this.select }).then(({ data, code }) => {
|
||||
if (code === 200) {
|
||||
this.roadList = data.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
tongbi: item.tongbi.slice(0, 3),
|
||||
huanbi: item.huanbi.slice(0, 3),
|
||||
};
|
||||
});
|
||||
this.roadList = data
|
||||
.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
tongbi: item.tongbi.slice(0, 3),
|
||||
huanbi: item.huanbi.slice(0, 3),
|
||||
};
|
||||
})
|
||||
.slice(0, 5);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user