|
@@ -129,7 +129,9 @@
|
|
|
v-for="item in lockOptions"
|
|
|
:key="item.lockId"
|
|
|
:label="item.lockName"
|
|
|
- :value="item.lockId">
|
|
|
+ :value="item.lockId"
|
|
|
+ :disabled="item.disabled"
|
|
|
+ >
|
|
|
{{item.lockName}}-{{item.lockNum}}
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -143,7 +145,9 @@
|
|
|
v-for="item in keyCabinetOptions"
|
|
|
:key="item.lockId"
|
|
|
:label="item.lockName"
|
|
|
- :value="item.lockId">
|
|
|
+ :value="item.lockId"
|
|
|
+ :disabled="item.disabled"
|
|
|
+ >
|
|
|
{{item.lockName}}-{{item.lockNum}}
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -581,19 +585,15 @@
|
|
|
//智能锁选中触发
|
|
|
lockChange(index,val){
|
|
|
let self = this;
|
|
|
- let list=[];
|
|
|
- val.forEach((item)=>{
|
|
|
- self.lockOptions.forEach((minItem)=>{
|
|
|
- if(item == minItem.lockId){
|
|
|
- list.push({
|
|
|
- lockName:minItem.lockName,
|
|
|
- lockId:minItem.lockId,
|
|
|
- lockNum:minItem.lockNum
|
|
|
- })
|
|
|
+ this.lockOptions.forEach(v => {
|
|
|
+ v.disabled = false
|
|
|
+ console.log(self.newData.cabinetDoorModelList[index])
|
|
|
+ val.forEach(item=>{
|
|
|
+ if (item ==v.lockId){
|
|
|
+ v.disabled = true
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
- this.$set(this.newData.cabinetDoorModelList[index],'cabinetLockListArr',list);
|
|
|
},
|
|
|
//钥匙柜选中触发
|
|
|
cabinetLockChange(index,val){
|