Compare commits

...

3 Commits

Author SHA1 Message Date
阿斌
8556419fcb
Pre Merge pull request !41 from 阿斌/N/A 2026-06-24 01:58:20 +00:00
lin
cf5bcb6349 修复预置位列表展示和设备列表表格操作列宽度 2026-06-24 09:58:04 +08:00
阿斌
34d1dbb399
修复两次密码不一致时,任然可以修改密码,且成功提交,密码用*代替
还有以下一处需要修改web\src\layout\components\dialog\changePassword.vue

Signed-off-by: 阿斌 <38912748@qq.com>
2025-08-23 15:03:02 +00:00
3 changed files with 12 additions and 3 deletions

View File

@ -21,6 +21,7 @@
border border
stripe stripe
max-height="100%" max-height="100%"
height="100%"
style="flex: 1" style="flex: 1"
> >
<el-table-column prop="presetId" label="序号" align="center" /> <el-table-column prop="presetId" label="序号" align="center" />

View File

@ -132,7 +132,7 @@
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" min-width="240" fixed="right"> <el-table-column label="操作" min-width="260" fixed="right">
<template v-slot:default="scope"> <template v-slot:default="scope">
<el-button <el-button
type="text" type="text"

View File

@ -13,10 +13,10 @@
<div id="shared" style="margin-right: 20px;"> <div id="shared" style="margin-right: 20px;">
<el-form ref="passwordForm" :rules="rules" status-icon label-width="80px"> <el-form ref="passwordForm" :rules="rules" status-icon label-width="80px">
<el-form-item label="新密码" prop="newPassword"> <el-form-item label="新密码" prop="newPassword">
<el-input v-model="newPassword" autocomplete="off" /> <el-input v-model="newPassword" autocomplete="off" type="password" />
</el-form-item> </el-form-item>
<el-form-item label="确认密码" prop="confirmPassword"> <el-form-item label="确认密码" prop="confirmPassword">
<el-input v-model="confirmPassword" autocomplete="off" /> <el-input v-model="confirmPassword" autocomplete="off" type="password" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -88,6 +88,14 @@ export default {
} }
}, },
onSubmit: function() { onSubmit: function() {
if (this.newPassword !== this.confirmPassword) {
this.$message({
showClose: true,
message: '两次输入密码不一致!',
type: 'error'
})
return
}
this.$store.dispatch('user/changePasswordForAdmin', { this.$store.dispatch('user/changePasswordForAdmin', {
password: this.newPassword, password: this.newPassword,
userId: this.form.id userId: this.form.id