408249787 2 éve
szülő
commit
b14ad9ff50
1 módosított fájl, 8 hozzáadás és 0 törlés
  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 })
     },