perf: 调整single-stat的取色按钮样式;修复dcboxbug

This commit is contained in:
陈劲松
2020-12-18 17:57:00 +08:00
committed by chenjinsong
parent 1af777a4e0
commit 0fcdf9dfef
3 changed files with 7 additions and 3 deletions

View File

@@ -517,6 +517,7 @@
}, },
mounted() { mounted() {
this.getUserData();
//初始化表头 //初始化表头
this.tools.customTableTitle = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path) this.tools.customTableTitle = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)) ? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))

View File

@@ -117,10 +117,12 @@
} }
.color-show{ .color-show{
border: 1px solid #E7EAED; border: 1px solid #E7EAED;
border-radius: 5px; border-radius: 4px;
top: -2px;
align-items: center; align-items: center;
width: 28px; width: 28px;
height: 28px; height: 28px;
box-sizing: border-box;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
position: relative; position: relative;
@@ -128,7 +130,8 @@
.color-show-left{ .color-show-left{
width: 28px; width: 28px;
height: 28px; height: 28px;
border-radius: 5px; border-radius: 4px;
box-sizing: border-box;
text-align: center; text-align: center;
line-height: 28px; line-height: 28px;
} }

View File

@@ -159,7 +159,7 @@
} }
} else if (this.styleType == 2) { } else if (this.styleType == 2) {
if (n) { if (n) {
console.log(this.$parent.$parent) //console.log(this.$parent.$parent)
this.metricOptions = this.$parent.$parent.$parent.getMetricOptions(); this.metricOptions = this.$parent.$parent.$parent.getMetricOptions();
} else { } else {
this.metricOptions = []; this.metricOptions = [];