dingxin 6 лет назад
Родитель
Сommit
620c194634

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingTreeServiceImpl.java Просмотреть файл

@@ -517,7 +517,7 @@ public class BuildingTreeServiceImpl implements BuildingTreeServiceI {
517 517
 							tpRoomNoMapper.delete(tpRoomNoQueryWrapper);
518 518
 						}
519 519
 				}
520
-			}
520
+			  }
521 521
 			}
522 522
 			//删除所有楼层
523 523
 			tpLevelMapper.delete(tpLevel);

+ 15
- 4
VUECODE/smart-property-manage/src/views/building/buildingdata/index.vue Просмотреть файл

@@ -106,9 +106,6 @@ export default {
106 106
         return
107 107
         }   
108 108
           this.$router.go(0)
109
-           
110
-          //  this.suo()
111
-
112 109
       }).catch(() => {
113 110
         console.log('error addNode')
114 111
       })
@@ -125,9 +122,23 @@ export default {
125 122
       console.log('当前节点',data.id)
126 123
       console.log('当前名称',data.name)
127 124
       console.log('当前类型',data.type)
125
+      // if(data.type=='phase'){
126
+      //   his.$message({
127
+      //       type: 'info',
128
+      //       message: '不可删除根节点'
129
+      //     }); 
130
+      //     return
131
+      // }
128 132
       this.$store.dispatch('DeleteNode', this.treeQuery).then((res) => {
133
+        if(res.code=='1'){
134
+          this.$message({
135
+          showClose: true,
136
+          message: res.message,
137
+          type: 'warning'
138
+        }) 
139
+        return 
140
+        }
129 141
          location.reload()
130
-        // this.liste=[]    
131 142
       }).catch(() => {
132 143
         console.log('error addNode')
133 144
       })