|
|
@ -50,6 +50,7 @@ |
|
|
|
<el-table-column prop="operation" label="操作" header-align="center" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-show="qgUserData.employeeId === scope.row.employeeId" style="color: #1890ff; padding-right: 8px" class="details" @click="addOrUpdateHandle(scope.row.id,scope.row)">编辑</span> |
|
|
|
<span v-if="scope.row.status===0" style="color: #1890ff; padding-right: 8px" class="details" @click="unlockUser(scope.row)">解锁</span> |
|
|
|
<span style="color: #1890ff; padding-right: 8px" class="details" @click="editPasswordHandle(scope.row.id,scope.row)">修改密码</span> |
|
|
|
<span v-show="qgUserData.realName !== scope.row.realName" style="color: #ff4d4f;" class="delete" @click="deleteHandle([scope.row.id])">删除</span> |
|
|
|
</template> |
|
|
@ -115,6 +116,16 @@ export default { |
|
|
|
this.roleNameList = res.data |
|
|
|
} |
|
|
|
}, |
|
|
|
// 解锁 |
|
|
|
unlockUser(scopeRow) { |
|
|
|
const employeeId = scopeRow.employeeId |
|
|
|
this.$http.get('sys/user/unlock', { params: { |
|
|
|
employeeId |
|
|
|
}}).then(() => { |
|
|
|
this.$message.success('解锁成功!') |
|
|
|
this.getDataList() |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 修改密码 |
|
|
|
editPasswordHandle(id, params) { |
|
|
|
this.editPasswordVisible = true |
|
|
|