|
@@ -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
|
})
|