|
@@ -987,7 +987,9 @@ export default {
|
|
weishenpi: "",
|
|
weishenpi: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ updated() {
|
|
|
|
+ this.changeColor();
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
this.getList();
|
|
this.getList();
|
|
// 获取单位
|
|
// 获取单位
|
|
@@ -1402,6 +1404,17 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 隔行变色
|
|
|
|
+ changeColor() {
|
|
|
|
+ var content = document.getElementsByClassName("el-tree-node__content");
|
|
|
|
+ for (var i = 0; i < content.length; i++) {
|
|
|
|
+ if (i % 2 === 0) {
|
|
|
|
+ content[i].style.background = "#00365F ";
|
|
|
|
+ } else {
|
|
|
|
+ content[i].style.background = "#003C69";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
const ids = row.id || this.ids;
|
|
const ids = row.id || this.ids;
|
|
@@ -1592,18 +1605,21 @@ export default {
|
|
position: relative;
|
|
position: relative;
|
|
}
|
|
}
|
|
.el-tree {
|
|
.el-tree {
|
|
- padding: 10px;
|
|
|
|
background: #003156;
|
|
background: #003156;
|
|
color: #fff;
|
|
color: #fff;
|
|
|
|
+ margin-right: 2px;
|
|
}
|
|
}
|
|
::v-deep .el-tree-node__content:hover {
|
|
::v-deep .el-tree-node__content:hover {
|
|
background-color: #004d86 !important;
|
|
background-color: #004d86 !important;
|
|
}
|
|
}
|
|
-::v-deep .el-tree-node:focus > .el-tree-node__content {
|
|
|
|
|
|
+/* ::v-deep .el-tree-node:focus > .el-tree-node__content {
|
|
background-color: #003156 !important;
|
|
background-color: #003156 !important;
|
|
}
|
|
}
|
|
::v-deep .el-table__empty-block {
|
|
::v-deep .el-table__empty-block {
|
|
- background-color: #004d86 !important;
|
|
|
|
|
|
+ background-color: #004d86 !important; */
|
|
|
|
+/* } */
|
|
|
|
+::v-deep .el-tree-node__content{
|
|
|
|
+ height: 30px !important;
|
|
}
|
|
}
|
|
::v-deep .el-table .el-table__header-wrapper th,
|
|
::v-deep .el-table .el-table__header-wrapper th,
|
|
.el-table .el-table__fixed-header-wrapper th {
|
|
.el-table .el-table__fixed-header-wrapper th {
|