|
@@ -20,6 +20,7 @@
|
|
|
:inx="i"
|
|
|
:parInx="inx"
|
|
|
:isLast="isLast&&data.groupVO.length===1"
|
|
|
+ @setRules="setRules"
|
|
|
@addGroup="addGroup"
|
|
|
@delGroup="delGroup"></DiagBaseGroup>
|
|
|
<div class="group-oper">
|
|
@@ -56,6 +57,9 @@
|
|
|
this.getTypeList();
|
|
|
},
|
|
|
methods:{
|
|
|
+ setRules(){
|
|
|
+ this.$emit('setRules');
|
|
|
+ },
|
|
|
getTypeList(){
|
|
|
const typeListData = JSON.parse(localStorage.getItem("zskDiagList"));
|
|
|
this.typeObj=util.formatObj(typeListData,'ruleType');
|
|
@@ -94,6 +98,7 @@
|
|
|
}]
|
|
|
};
|
|
|
this.data.groupVO.push(temp);
|
|
|
+ this.$emit('setRules');
|
|
|
},
|
|
|
delGroup(){
|
|
|
this.data.groupVO.splice(this.inx,1);
|