|
@@ -3,7 +3,7 @@
|
|
<SubConditions v-for="(rules,i) in data"
|
|
<SubConditions v-for="(rules,i) in data"
|
|
ref="group"
|
|
ref="group"
|
|
:groupData="rules"
|
|
:groupData="rules"
|
|
- :isLast="rules.length===1"
|
|
|
|
|
|
+ :isLast="data.length===1"
|
|
:ind="i"
|
|
:ind="i"
|
|
:showAdd="data.length<maxNum"
|
|
:showAdd="data.length<maxNum"
|
|
:baseTypes="baseTypes"
|
|
:baseTypes="baseTypes"
|
|
@@ -14,7 +14,7 @@
|
|
@delRule="delRule"></SubConditions>
|
|
@delRule="delRule"></SubConditions>
|
|
<div class="group-oper">
|
|
<div class="group-oper">
|
|
<el-button size="small" @click="addGroup">+新增分组</el-button>
|
|
<el-button size="small" @click="addGroup">+新增分组</el-button>
|
|
- <el-button :class="isLast?'disable':''" size="small" type="danger" plain @click="delGroup">-删除分组</el-button>
|
|
|
|
|
|
+ <el-button :class="isLast?'disable':''" :disabled="isLast" size="small" type="danger" plain @click="delGroup">-删除分组</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -102,4 +102,7 @@
|
|
border-top: 4px solid #F5F5F5;
|
|
border-top: 4px solid #F5F5F5;
|
|
background: #fff;
|
|
background: #fff;
|
|
}
|
|
}
|
|
|
|
+ .el-button--danger.is-plain{
|
|
|
|
+ background: none;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|