dingxin 6 年之前
父節點
當前提交
620c194634

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingTreeServiceImpl.java 查看文件

517
 							tpRoomNoMapper.delete(tpRoomNoQueryWrapper);
517
 							tpRoomNoMapper.delete(tpRoomNoQueryWrapper);
518
 						}
518
 						}
519
 				}
519
 				}
520
-			}
520
+			  }
521
 			}
521
 			}
522
 			//删除所有楼层
522
 			//删除所有楼层
523
 			tpLevelMapper.delete(tpLevel);
523
 			tpLevelMapper.delete(tpLevel);

+ 15
- 4
VUECODE/smart-property-manage/src/views/building/buildingdata/index.vue 查看文件

106
         return
106
         return
107
         }   
107
         }   
108
           this.$router.go(0)
108
           this.$router.go(0)
109
-           
110
-          //  this.suo()
111
-
112
       }).catch(() => {
109
       }).catch(() => {
113
         console.log('error addNode')
110
         console.log('error addNode')
114
       })
111
       })
125
       console.log('当前节点',data.id)
122
       console.log('当前节点',data.id)
126
       console.log('当前名称',data.name)
123
       console.log('当前名称',data.name)
127
       console.log('当前类型',data.type)
124
       console.log('当前类型',data.type)
125
+      // if(data.type=='phase'){
126
+      //   his.$message({
127
+      //       type: 'info',
128
+      //       message: '不可删除根节点'
129
+      //     }); 
130
+      //     return
131
+      // }
128
       this.$store.dispatch('DeleteNode', this.treeQuery).then((res) => {
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
          location.reload()
141
          location.reload()
130
-        // this.liste=[]    
131
       }).catch(() => {
142
       }).catch(() => {
132
         console.log('error addNode')
143
         console.log('error addNode')
133
       })
144
       })