| | |
| | | </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 @click="handleChangeRole(scope.row, 'depart')" |
| | | >修改部门</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/admin/updateStatus/` + id + "?status=" + status) |
| | | .then((res) => { |
| | | this.getUserList(); |
| | | }); |
| | | }, |
| | | // 获取用户列表 |