|
@@ -100,8 +100,12 @@
|
|
|
this.data.groupVO.push(temp);
|
|
|
this.$emit('setRules');
|
|
|
},
|
|
|
- delGroup(){
|
|
|
- this.data.groupVO.splice(this.inx,1);
|
|
|
+ delGroup(i){
|
|
|
+ if(i===0&&this.data.groupVO.length===1){
|
|
|
+ this.$emit("delDiag",this.inx);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.data.groupVO.splice(i,1);
|
|
|
}
|
|
|
},
|
|
|
components:{
|