Browse Source

版本3.8.0 2023-12-29 ljd

1、增加了判断租户info字段的类型判断,防止后续获取数据时类型错误导致获取不到数据
master
xiaohei 1 year ago
parent
commit
bae8db1e69
1 changed files with 8 additions and 7 deletions
  1. +8
    -7
      src/views/userManagement.vue

+ 8
- 7
src/views/userManagement.vue View File

@ -3742,8 +3742,6 @@ export default {
putCarfidzg(resultArr, row) { putCarfidzg(resultArr, row) {
console.log(row) console.log(row)
var data = {}; var data = {};
var userTelephone = JSON.parse(row.content).userTelephone;
var userPassword = JSON.parse(row.content).userPassword;
var startTime = new Date(this.value2[0]).getTime() / 1000 var startTime = new Date(this.value2[0]).getTime() / 1000
var endTime = new Date(this.value2[1]).getTime() / 1000 var endTime = new Date(this.value2[1]).getTime() / 1000
var passwordStartTime = new Date(this.value2[0]).getTime() / 1000 var passwordStartTime = new Date(this.value2[0]).getTime() / 1000
@ -3754,6 +3752,8 @@ export default {
}else if(typeof (this.drawerRow.info) == 'string'){ }else if(typeof (this.drawerRow.info) == 'string'){
info = JSON.parse(this.drawerRow.info) info = JSON.parse(this.drawerRow.info)
} }
var userTelephone = info.userTelephone;
var userPassword = info.userPassword;
// var passwordStartTime = JSON.stringify(row.startTime) // var passwordStartTime = JSON.stringify(row.startTime)
// var passwordEndTime = JSON.stringify(row.endTime) // var passwordEndTime = JSON.stringify(row.endTime)
// var sort=this.getTypeSort(this.roomtable1,row.type) // var sort=this.getTypeSort(this.roomtable1,row.type)
@ -3764,7 +3764,8 @@ export default {
if (passwordEndTime.length == 13) { if (passwordEndTime.length == 13) {
passwordEndTime = endTime / 1000 passwordEndTime = endTime / 1000
} }
console.log(info,'[[[')
// return
if (row.type == 11) { if (row.type == 11) {
// if(pzname==''){ // if(pzname==''){
// pzname=''+sort // pzname=''+sort
@ -3960,9 +3961,9 @@ export default {
// } // }
str = { str = {
imei: resultArr.imei, imei: resultArr.imei,
userTelephone: userTelephone,
userTelephone: info.userTelephone,
cardId: row.cardId, cardId: row.cardId,
userPassword: userPassword,
userPassword: info.userPassword,
password: JSON.parse(row.content).password, password: JSON.parse(row.content).password,
operateMode: 7, operateMode: 7,
order: 6207, order: 6207,
@ -3979,8 +3980,8 @@ export default {
imei: resultArr.imei, imei: resultArr.imei,
order: 6207, order: 6207,
passwordCount: 255, passwordCount: 255,
lockerUserId: userPassword,
keyId: userPassword,
lockerUserId: info.userPassword,
keyId: info.userPassword,
startTime: passwordStartTime, startTime: passwordStartTime,
endTime: passwordEndTime, endTime: passwordEndTime,
action: 1, action: 1,


Loading…
Cancel
Save