|
@@ -244,10 +244,18 @@ export default {
|
|
item.sbPositionNo = ''
|
|
item.sbPositionNo = ''
|
|
},
|
|
},
|
|
handleSbSelect (positionId, i) {
|
|
handleSbSelect (positionId, i) {
|
|
|
|
+ if (positionId === '' || positionId === null) {
|
|
|
|
+ this.$message.warning('请选择设备位置!')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.sbParentOPt = i
|
|
this.sbParentOPt = i
|
|
this.$refs.sbInfoSelectModal.base({}, { isChild: this.DictCache.VALUE.SB_IS_CHILD.IS_PARENT, positionId })
|
|
this.$refs.sbInfoSelectModal.base({}, { isChild: this.DictCache.VALUE.SB_IS_CHILD.IS_PARENT, positionId })
|
|
},
|
|
},
|
|
handleSbNoSelect (sbId, i) {
|
|
handleSbNoSelect (sbId, i) {
|
|
|
|
+ if (sbId === '' || sbId === null) {
|
|
|
|
+ this.$message.warning('请选择父设备!')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.sbParentOPt = i
|
|
this.sbParentOPt = i
|
|
this.$refs.sbPositionNoModal.base({ sbId })
|
|
this.$refs.sbPositionNoModal.base({ sbId })
|
|
},
|
|
},
|