Compare commits

...

3 Commits

Author SHA1 Message Date
阿斌
38b290ab8e
Pre Merge pull request !41 from 阿斌/N/A 2025-11-11 14:03:43 +00:00
lin
c1254b5b09 调整停止按钮参数方式 2025-11-11 22:03:28 +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 15 additions and 4 deletions

View File

@ -11,7 +11,7 @@ const actions = {
})
})
},
stop({ commit }, [deviceId, channelId]) {
stop({ commit }, { deviceId, channelId }) {
return new Promise((resolve, reject) => {
stop(deviceId, channelId).then(response => {
const { data } = response

View File

@ -422,7 +422,10 @@ export default {
})
},
stopDevicePush: function(itemData) {
this.$store.dispatch('play/stop', [this.deviceId, itemData.deviceId]).then(data => {
this.$store.dispatch('play/stop', {
deviceId: this.deviceId,
channelId: itemData.deviceId
}).then(data => {
this.initData()
}).catch((error) => {
if (error.response.status === 402) { //

View File

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