| | |
| | | <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) => { |