|
@@ -69,11 +69,13 @@
|
|
|
<el-table-column prop="socialNo" label="身份证"></el-table-column>
|
|
|
<el-table-column prop="phoneNo" label="手机号码"></el-table-column>
|
|
|
<el-table-column prop="ybCode" label="医保编码"></el-table-column>
|
|
|
- <el-table-column label="操作" fixed="right">
|
|
|
+ <el-table-column label="操作" fixed="right" width="180">
|
|
|
<template v-slot="scope">
|
|
|
- <el-button type="primary" text @click="clickToEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
- <br/>
|
|
|
- <el-button text size="small" v-if="competence" @click="viewUserRoles(scope.row)">角色</el-button>
|
|
|
+ <el-button-group>
|
|
|
+ <el-button type="primary" text @click="clickToEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
+ <el-button text size="small" v-if="competence" @click="viewUserRoles(scope.row)">角色</el-button>
|
|
|
+ <el-button text size="small" v-if="competence" @click="resetPasswordClick(scope.row)">重置密码</el-button>
|
|
|
+ </el-button-group>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -117,7 +119,7 @@
|
|
|
</page-layer>
|
|
|
</template>
|
|
|
|
|
|
-<script setup name="UserRoleSettings">
|
|
|
+<script setup>
|
|
|
import store from '@/store'
|
|
|
import {
|
|
|
addNewRole,
|
|
@@ -125,12 +127,14 @@ import {
|
|
|
getAllUsers,
|
|
|
getDeptTree,
|
|
|
getUserRoles,
|
|
|
+ resetPasswordByCode,
|
|
|
saveUserRoles
|
|
|
} from '@/api/settings/permission-settings'
|
|
|
import {ElMessage, ElMessageBox} from 'element-plus'
|
|
|
import PersonnelInformationEditing from '@/components/settings/permissions/PersonnelInformationEditing.vue'
|
|
|
import {needRule} from '@/utils/public'
|
|
|
import PageLayer from "@/layout/PageLayer";
|
|
|
+import {CyMessageBox} from "@/components/cy/message-box";
|
|
|
|
|
|
const windowSize = store.state.app.windowSize
|
|
|
const tableHeight = windowSize.h - 10
|
|
@@ -287,6 +291,16 @@ const addEmployees = () => {
|
|
|
userInfo.value = {}
|
|
|
}
|
|
|
|
|
|
+function resetPasswordClick(row) {
|
|
|
+ CyMessageBox.confirm({
|
|
|
+ type: 'info',
|
|
|
+ message: `是否要重置:【${row.name}】密码`,
|
|
|
+ }).then(() => {
|
|
|
+ resetPasswordByCode(row.code)
|
|
|
+ })
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
clickToQuery()
|
|
|
getAllRoles().then((res) => {
|