修改重置密码
This commit is contained in:
parent
8970cb4d9f
commit
a74e9ba7ea
|
@ -45,10 +45,11 @@ export function delUser(userId) {
|
|||
}
|
||||
|
||||
// 用户密码重置
|
||||
export function resetUserPwd(userId, password) {
|
||||
export function resetUserPwd(userId, password, deptId) {
|
||||
const data = {
|
||||
userId,
|
||||
password
|
||||
password,
|
||||
deptId
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/resetPwd',
|
||||
|
|
|
@ -59,12 +59,13 @@
|
|||
@selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<!-- <el-table-column label="用户编号" align="center" key="userId" prop="userId" /> -->
|
||||
<el-table-column label="用户登录名" align="left" key="userName" prop="userName" min-width="150" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="用户姓名" align="left" key="realName" prop="realName" min-width="150" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="用户登录名" align="left" key="userName" prop="userName" min-width="150"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="用户姓名" align="left" key="realName" prop="realName" min-width="150"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="部门" align="center" key="deptName" prop="dept.deptName" width="150"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="岗位" align="center" key="posts" prop="posts" width="130"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="岗位" align="center" key="posts" prop="posts" width="130" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="手机号码" align="center" key="phonenumber" prop="phonenumber" width="160"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="座机电话" align="center" key="tel" prop="tel" width="180" :show-overflow-tooltip="true" />
|
||||
|
@ -459,7 +460,7 @@ function handleResetPwd(row) {
|
|||
}
|
||||
},
|
||||
}).then(({ value }) => {
|
||||
resetUserPwd(row.userId, value).then(response => {
|
||||
resetUserPwd(row.userId, value, row.deptId).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功,新密码是:" + value)
|
||||
})
|
||||
}).catch(() => { })
|
||||
|
|
|
@ -4,6 +4,9 @@ import createVitePlugins from './vite/plugins'
|
|||
|
||||
const baseUrl = 'http://43.143.229.145:9002/prod-api' // 后端接口
|
||||
const analysisUrl = 'http://43.143.229.145:9002/ppt-analysis-api'
|
||||
// 生产环境
|
||||
// const baseUrl = 'http://8.140.172.21:9002/prod-api' // 后端接口
|
||||
// const analysisUrl = 'http://8.140.172.21:9002/ppt-analysis-api'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({ mode, command }) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user