| | |
| | | }, |
| | | |
| | | created() { |
| | | department.getDepartmentList() |
| | | .then(res => { |
| | | this.areaData = res; |
| | | }) |
| | | .catch(err => this.$message.error(err)) |
| | | if (sessionStorage.getItem('area')) { |
| | | this.areaData = JSON.parse(sessionStorage.getItem('area')); |
| | | } else { |
| | | department.getDepartmentList() |
| | | .then(res => { |
| | | this.areaData = res; |
| | | sessionStorage.setItem('area', JSON.stringify(this.areaData)); |
| | | }) |
| | | .catch(err => this.$message.error(err)) |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | return data.regionName.indexOf(value) !== -1; |
| | | }, |
| | | nodeClick(data, node, props) { |
| | | this.$emit('selectedDepartment', data); |
| | | if (node.level > 1) { |
| | | this.$emit('selectedDepartment', data); |
| | | } |
| | | } |
| | | } |
| | | }; |
| | |
| | | <style lang="scss" scoped> |
| | | .aside { |
| | | width: 200px; |
| | | height: calc(100vh - 102px); |
| | | background-color: #09152f; |
| | | height: calc(103vh - 102px); |
| | | background-color: #ffffff; |
| | | padding: 10px; |
| | | display: flex; |
| | | flex-direction: column; |
| | |
| | | line-height: 30px; |
| | | |
| | | &::v-deep .el-input__inner { |
| | | background-color: #09152f; |
| | | // background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | } |
| | | } |
| | |
| | | flex: 1; |
| | | .el-tree{ |
| | | height: 100%; |
| | | background-color: #09152f; |
| | | &::v-deep .el-tree-node:focus>.el-tree-node__content{ |
| | | background-color: #092c4a; |
| | | } |
| | | &::v-deep .el-tree-node__content:hover{ |
| | | background-color: #092c4a; |
| | | } |
| | | // background-color: #09152f; |
| | | // &::v-deep .el-tree-node:focus>.el-tree-node__content{ |
| | | // background-color: #092c4a; |
| | | // } |
| | | // &::v-deep .el-tree-node__content:hover{ |
| | | // background-color: #092c4a; |
| | | // } |
| | | } |
| | | } |
| | | } |