|
@@ -302,6 +302,8 @@
|
|
safeIdList:[],
|
|
safeIdList:[],
|
|
//过滤柜锁
|
|
//过滤柜锁
|
|
filterCabinetLock:[],
|
|
filterCabinetLock:[],
|
|
|
|
+ //存储编辑的时候返回的智能锁
|
|
|
|
+ editLockList:[],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
@@ -319,6 +321,7 @@
|
|
initialize(){
|
|
initialize(){
|
|
let self=this;
|
|
let self=this;
|
|
if(this.propsData.cabinetId){
|
|
if(this.propsData.cabinetId){
|
|
|
|
+
|
|
let obj = JSON.parse(JSON.stringify(this.propsData))
|
|
let obj = JSON.parse(JSON.stringify(this.propsData))
|
|
let newData = {
|
|
let newData = {
|
|
cabinetId:obj.cabinetId,
|
|
cabinetId:obj.cabinetId,
|
|
@@ -345,6 +348,7 @@
|
|
if(item.cabinetLockVoList){
|
|
if(item.cabinetLockVoList){
|
|
item.cabinetLockVoList.forEach((bigItem)=>{
|
|
item.cabinetLockVoList.forEach((bigItem)=>{
|
|
minObj.cabinetLockList.push(bigItem.lockId)
|
|
minObj.cabinetLockList.push(bigItem.lockId)
|
|
|
|
+ this.editLockList.push(bigItem.lockId)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
if(item.cabinetAdminVoList){
|
|
if(item.cabinetAdminVoList){
|
|
@@ -598,6 +602,18 @@
|
|
list.push({lockName:item.deviceName,lockId:item.id,lockNum:item.deviceNo})
|
|
list.push({lockName:item.deviceName,lockId:item.id,lockNum:item.deviceNo})
|
|
})
|
|
})
|
|
this.$set(this, 'lockOptions', list)
|
|
this.$set(this, 'lockOptions', list)
|
|
|
|
+
|
|
|
|
+ if (this.newData.cabinetId){
|
|
|
|
+ let editLockListArr = Array.from(new Set(this.editLockList));
|
|
|
|
+ this.lockOptions.forEach(v => {
|
|
|
|
+ v.disabled = false
|
|
|
|
+ editLockListArr.forEach(item=>{
|
|
|
|
+ if (item ==v.lockId){
|
|
|
|
+ v.disabled = true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//智能锁选中触发
|
|
//智能锁选中触发
|