| | |
| | | <div class="mainContent"> |
| | | <!-- 数据展示 --> |
| | | <el-table |
| | | border |
| | | stripe |
| | | ref="multipleTable" |
| | | :header-cell-style="{ |
| | | 'background':'#F5F5F5', |
| | | 'font-size': '14px', |
| | | 'font-weight': '650', |
| | | 'line-height': '45px', |
| | |
| | | <span @click="handleUpdate(scope.row)">修改</span> |
| | | <span class="line">|</span> |
| | | <span @click="handleDelete(scope.row)">删除</span> |
| | | <span class="line">|</span> |
| | | <span @click="handleChangeStatus(scope.row)">{{ |
| | | scope.row.status === true ? "停用" : "启用" |
| | | }}</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | // 修改状态 |
| | | handleChangeStatus(obj) { |
| | | let {id, status} = obj; |
| | | status == true ? (status = 1) : (status = 0); |
| | | status == true ? (status = 0) : (status = 1); |
| | | this.$axios |
| | | .post(`sccg/depart/status`, {id: id, status: status}) |
| | | .then((res) => { |
| | |
| | | <style lang="scss" scoped> |
| | | .userList { |
| | | text-align: left; |
| | | margin: 10px 20px; |
| | | padding: 10px 20px; |
| | | // color: #4b9bb7; |
| | | |
| | | //height: 100%; |
| | | border: 1px solid #ccc; |
| | | header { |
| | | // background-color: white; |
| | | // border: 1 pox solid #fff; |
| | | |
| | | .headerContent { |
| | | padding: 0 40px; |
| | | padding: 0; |
| | | display: flex; |
| | | line-height: 100px; |
| | | justify-content: space-between; |
| | |
| | | |
| | | .el-button { |
| | | padding: 12px 25px; |
| | | border-radius: 20px; |
| | | //border-radius: 20px; |
| | | } |
| | | } |
| | | |
| | | .addBtn { |
| | | background-color: #eb5d01; |
| | | //background-color: #eb5d01; |
| | | border: none; |
| | | border-radius: 20px; |
| | | //border-radius: 20px; |
| | | padding: 12px 30px; |
| | | } |
| | | } |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | padding: 0 20px; |
| | | padding: 0; |
| | | |
| | | .funs-sp { |
| | | // border: 1px solid #17324c; |
| | | border: 1px solid #DCDFE6; |
| | | background-color: #fff; |
| | | } |
| | | |
| | | .funs { |