Browse Source

手动解锁用户

360view
bianyaqi 2 years ago
parent
commit
5afc7a669a
  1. 2
      public/index.html
  2. 11
      src/page-subspecialty/views/modules/systemManagement/team/index.vue

2
public/index.html

@ -40,7 +40,7 @@
<script>
//http://121.36.16.195:9002/huimu-admin/swagger-ui/index.html
window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.0.167:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.0.168:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.4.174:8036/xiangan-crf';
</script>
<% } %>

11
src/page-subspecialty/views/modules/systemManagement/team/index.vue

@ -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

Loading…
Cancel
Save