设备管理-密码修改

This commit is contained in:
cwchen 2024-09-20 13:56:46 +08:00
parent 5a512ab42b
commit 2a7929bfb3
4 changed files with 56 additions and 7 deletions

View File

@ -151,6 +151,7 @@ export default {
components: {ProjectSelect, Pagination,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -212,7 +213,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -267,6 +268,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
this.temp = Object.assign({}, row)
getDevDataById({ id: row.id }).then((res) => {
this.temp = Object.assign({}, res.data)
@ -277,7 +284,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -289,6 +296,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {

View File

@ -156,6 +156,7 @@ export default {
components: { DeviceTypeSelect, Pagination,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -217,7 +218,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -272,6 +273,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
this.temp = Object.assign({}, row)
// getCarItemDetail({ id: row.id }).then((res) => {
// this.temp = Object.assign({}, res.data)
@ -282,7 +289,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -294,6 +301,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {

View File

@ -141,6 +141,7 @@ export default {
components: { Pagination, SidebandChildTable, ProjectSelect, DeviceSelect, GtSelect, SidebandTypeSelect,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -210,6 +211,23 @@ export default {
this.componentDialog.width = width
this.componentDialog.openFalg = openFalg
},
verifiersPwd(data) {
verifyPwd(data).then((response) => {
this.$message({
showClose: true,
message: response.msg,
type: 'success',
duration: 500
})
//
this.componentDialog.openFalg = false;
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.isOpenEditDialog();
})
},
getList() {
this.listLoading = true
getSidebandList(this.listQuery).then((response) => {
@ -250,6 +268,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
getSidebandItemDetail({ id: row.id }).then((res) => {
this.temp = Object.assign({}, res.data)
})
@ -259,7 +283,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -271,6 +295,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
})

View File

@ -152,6 +152,7 @@ export default {
components: { SidebandDetailTable, SidebandSelect, AreaSelect, DeviceStatusSelect, DeviceSelect, Pagination,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -231,7 +232,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -280,6 +281,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
getSidebandChildItemDetail({ id: row.deviceId }).then((res) => {
this.temp = Object.assign({}, res.data)
if (this.temp.bdId) {
@ -294,7 +301,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -307,6 +314,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.dialogFormVisible = false
this.getList()
}).finally(() => {