Commit e3fa3d90 authored by 纪泽龙's avatar 纪泽龙

修复了一下右上角的数据

parent 0ac233fa
...@@ -83,63 +83,19 @@ export default { ...@@ -83,63 +83,19 @@ export default {
alarmTime: "2021-02-02 16-00-00", alarmTime: "2021-02-02 16-00-00",
handledStatus: "上海市普陀区金沙江路", handledStatus: "上海市普陀区金沙江路",
}, },
{
unitName: "ZhC-11",
detectorType: "流量计",
statusName: "压力异常",
alarmTime: "2021-02-02 16-00-00",
handledStatus: "上海市普陀区金沙江路",
},
{
unitName: "ZhC-11",
detectorType: "流量计",
statusName: "压力异常",
alarmTime: "2021-02-02 16-00-00",
handledStatus: "上海市普陀区金沙江路",
},
{
unitName: "ZhC-11",
detectorType: "流量计",
statusName: "压力异常",
alarmTime: "2021-02-02 16-00-00",
handledStatus: "上海市普陀区金沙江路",
},
{
unitName: "ZhC-11",
detectorType: "流量计",
statusName: "压力异常",
alarmTime: "2021-02-02 16-00-00",
handledStatus: "上海市普陀区金沙江路",
},
{
unitName: "ZhC-11",
detectorType: "流量计",
statusName: "压力异常",
alarmTime: "2021-02-02 16-00-00",
handledStatus: "上海市普陀区金沙江路",
},
{
unitName: "ZhC-11",
detectorType: "流量计",
statusName: "压力异常",
alarmTime: "2021-02-02 16-00-00",
handledStatus: "上海市普陀区金沙江路",
},
{
unitName: "ZhC-11",
detectorType: "流量计",
statusName: "压力异常",
alarmTime: "2021-02-02 16-00-00",
handledStatus: "上海市普陀区金沙江路",
},
], ],
scrollHeight: 0, scrollHeight: 0,
timer: null, timer: null,
}; };
}, },
watch: { watch: {
rightPicData() { rightPicData(newData) {
// this.tableData = this.rightPicData.pageData; console.log("newData", newData);
// if (newData.pageData.length > 0) {
this.tableData = [...newData.pageData];
// }
// this.tableData = [...newData.pageData];
// 列表容器 // 列表容器
this.getScrollHeight(); this.getScrollHeight();
}, },
...@@ -162,7 +118,6 @@ export default { ...@@ -162,7 +118,6 @@ export default {
const { height: heightSelect } = select.getBoundingClientRect(); const { height: heightSelect } = select.getBoundingClientRect();
// 滚动条的高度 = 列表高度-列表容器高度 // 滚动条的高度 = 列表高度-列表容器高度
this.scrollHeight = heightSelect - heightWrapper; this.scrollHeight = heightSelect - heightWrapper;
console.log(this.scrollHeight / this.tableData.length);
this.timerAni(); this.timerAni();
}, },
......
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