408249787 %!s(int64=2) %!d(string=hai) anos
pai
achega
b14ad9ff50
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/views/sb/info/modules/BaseFormMeasure.vue

+ 8 - 0
src/views/sb/info/modules/BaseFormMeasure.vue

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