| | |
| | | <el-table |
| | | ref="multipleTable" |
| | | :header-cell-style="{ |
| | | background: '#06122c', |
| | | 'font-size': '12px', |
| | | color: '#4b9bb7', |
| | | 'font-size': '14px', |
| | | 'font-weight': '650', |
| | | 'line-height': '45px', |
| | | }" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="启用" min-width="5"> |
| | | <template slot-scope="scope" > |
| | | <template slot-scope="scope"> |
| | | <!-- @change="handleChangeStatus(scope.row)" --> |
| | | <el-switch |
| | | class="switchStyle" |
| | |
| | | >修改部门</span |
| | | > |
| | | <span class="line">|</span> |
| | | <span @click="handleChangeStatus(scope.row)">{{scope.row.status === true ?'停用':'启用' }}</span> |
| | | |
| | | <span @click="handleChangeStatus(scope.row)">{{ |
| | | scope.row.status === true ? "停用" : "启用" |
| | | }}</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | main { |
| | | background-color: #09152f; |
| | | // background-color: #09152f; |
| | | margin-top: 20px; |
| | | padding-bottom: 50px; |
| | | border: 1pox solid #fff; |
| | |
| | | .funs { |
| | | display: flex; |
| | | .funs-sp { |
| | | border: 1px solid #17324c; |
| | | // border: 1px solid #17324c; |
| | | } |
| | | .funsItem { |
| | | line-height: 28px; |
| | |
| | | width: 120px; |
| | | } |
| | | |
| | | &::v-deep .el-input__inner { |
| | | border: none; |
| | | background-color: #09152f; |
| | | } |
| | | |
| | | &:hover { |
| | | border: 1px solid #4b9bb7; |
| | | } |
| | | |
| | | &:hover .el-checkbox { |
| | | color: #4b9bb7; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | &::v-deep li, |
| | | &::v-deep .btn-prev, |
| | | &::v-deep .btn-next { |
| | | background-color: #071f39; |
| | | color: #4b9bb7; |
| | | // background-color: #071f39; |
| | | // color: #4b9bb7; |
| | | } |
| | | |
| | | &::v-deep .active { |
| | |
| | | } |
| | | |
| | | .el-table { |
| | | color: #4b9bb7; |
| | | font-size: 10px; |
| | | // color: #4b9bb7; |
| | | // font-size: 10px; |
| | | .operation { |
| | | display: flex; |
| | | font-size: 10px; |
| | |
| | | } |
| | | } |
| | | } |
| | | // &::v-deep .switchStyle .el-switch__label { |
| | | // position: absolute; |
| | | // display: none; |
| | | // color: #fff; |
| | | // } |
| | | |
| | | // &::v-deep .el-switch__core { |
| | | // background-color: rgba(166, 166, 166, 1); |
| | | // } |
| | | |
| | | // &::v-deep .switchStyle .el-switch__label--left { |
| | | // z-index: 9; |
| | | // left: 20px; |
| | | // } |
| | | |
| | | // &::v-deep .switchStyle .el-switch__label--right { |
| | | // z-index: 9; |
| | | // left: 4px; |
| | | // } |
| | | |
| | | // &::v-deep .switchStyle .el-switch__label.is-active { |
| | | // display: block; |
| | | // } |
| | | |
| | | // &::v-deep .switchStyle.el-switch .el-switch__core, |
| | | // &::v-deep .el-switch .el-switch__label { |
| | | // width: 56px !important; |
| | | // } |
| | | } |
| | | </style> |