Commit 9a2b75e9 authored by 纪泽龙's avatar 纪泽龙

left组件优化完成

parent d171861e
...@@ -96,6 +96,23 @@ ...@@ -96,6 +96,23 @@
} }
.el-table__body-wrapper { .el-table__body-wrapper {
.el-table__body {
border-spacing: 0 5px;
font-size: 14px;
td:nth-child(4) .cell {
text-align: center;
}
}
.el-table__row {
width: 100%;
// display: block;
vertical-align: 5px;
height: 36px;
width: 350px;
}
.el-table__row:nth-child(2n + 1) { .el-table__row:nth-child(2n + 1) {
background-color: #e6e6e6; background-color: #e6e6e6;
...@@ -195,8 +212,9 @@ ...@@ -195,8 +212,9 @@
} }
.el-table__body-wrapper { .el-table__body-wrapper {
.el-table__row:nth-child(2n + 1) { .el-table__row:nth-child(2n + 1) {
background-color: rgb(11 22 37); background-color: #062A45;
&:hover td { &:hover td {
background-color: #7bf8f430 !important; background-color: #7bf8f430 !important;
...@@ -205,13 +223,18 @@ ...@@ -205,13 +223,18 @@
td { td {
.cell { .cell {
// color: #525252; // color: #525252;
color: rgba(123, 248, 244, 1); // color: rgba(123, 248, 244, 1);
line-height: 14px;
color: #fff;
} }
} }
} }
.el-table__row:nth-child(2n) { .el-table__row:nth-child(2n) {
background-color: #213b52; // background-color: #213b52;
background-color: #062A45;
&:hover td { &:hover td {
background-color: #7bf8f430 !important; background-color: #7bf8f430 !important;
...@@ -219,6 +242,7 @@ ...@@ -219,6 +242,7 @@
td { td {
.cell { .cell {
line-height: 14px;
color: #fff; color: #fff;
} }
} }
...@@ -621,6 +645,7 @@ ...@@ -621,6 +645,7 @@
} }
.el-table__body-wrapper { .el-table__body-wrapper {
.el-table__row:nth-child(2n + 1) { .el-table__row:nth-child(2n + 1) {
background-color: #e6e6e6; background-color: #e6e6e6;
......
...@@ -424,8 +424,26 @@ export default { ...@@ -424,8 +424,26 @@ export default {
changeTimer: false, changeTimer: false,
repeatFinshed: false, repeatFinshed: false,
tableHeight: 135, tableHeight: 185,
tableData: [{unitName:123},{unitName:456},{unitName:45446}], tableData: [
// {
// unitName: 123,
// handledStatus: 123,
// statusName: 345,
// alarmTime: "2014-11-11 10:10:10",
// },
// {
// unitName: 456,
// handledStatus: 123,
// statusName: 345,
// alarmTime: "2014-11-11 10:10:10",
// },
// { unitName: 45446, alarmTime: "2014-11-11 10:10:10" },
// { unitName: 45446, alarmTime: "2014-11-11 10:10:10" },
// { unitName: 45446, alarmTime: "2014-11-11 10:10:10" },
// { unitName: 45446, alarmTime: "2014-11-11 10:10:10" },
// { unitName: 45446, alarmTime: "2014-11-11 10:10:10" },
],
yujingdata: { yujingdata: {
unitName: "省移动", unitName: "省移动",
detectorType: "", detectorType: "",
...@@ -497,7 +515,7 @@ export default { ...@@ -497,7 +515,7 @@ export default {
cancel1() {}, cancel1() {},
getAlarm() { getAlarm() {
return alarmData().then((response) => { return alarmData().then((response) => {
return; // return;
this.tableData = response.data.pageData; this.tableData = response.data.pageData;
if (this.tableData.length > 0) { if (this.tableData.length > 0) {
this.yujingdata = this.tableData[0]; this.yujingdata = this.tableData[0];
...@@ -550,7 +568,8 @@ export default { ...@@ -550,7 +568,8 @@ export default {
); );
clearInterval(this.timer); clearInterval(this.timer);
this.timer = setInterval(async () => { this.timer = setInterval(async () => {
if (selectWrap.scrollTop == this.scrollHeight) { // console.log(selectWrap.scrollTop,this.scrollHeight)
if (selectWrap.scrollTop >= this.scrollHeight) {
clearInterval(this.timer); clearInterval(this.timer);
await this.getAlarm(); await this.getAlarm();
selectWrap.scrollTop = 0; selectWrap.scrollTop = 0;
...@@ -1140,7 +1159,7 @@ export default { ...@@ -1140,7 +1159,7 @@ export default {
}; };
</script> </script>
<style scoped> <style lang="scss" scoped>
.rightb { .rightb {
width: 98%; width: 98%;
height: 100%; height: 100%;
...@@ -1393,8 +1412,13 @@ titletu2 { ...@@ -1393,8 +1412,13 @@ titletu2 {
.left { .left {
margin-top: 10px; margin-top: 10px;
width: 350px; width: 350px;
height: 55%; height: 75%;
margin-left: 35px; margin-left: 35px;
.right-bottom-data-left {
height: 100%;
// background: red;
}
} }
.yj { .yj {
padding: 0px 10px; padding: 0px 10px;
......
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