-
+
@@ -168,7 +169,6 @@
style="width: 100px;margin-left: 20px;"
>
1) return
this.ruleConditionGroupList.splice(index, 0, {
- rowLogic: '2', ruleConditionList: [{ atomicIndexId: '', indexSource: '', rowLogic: '', relationalSymbol: '', operator: '', value: '', operandUnitList: [] }]
+ rowLogic: '2', ruleConditionList: [{ atomicIndexId: '', indexSource: '', rowLogic: '', relationalSymbol: '', operator: '', value: '', operandUnitList: [] }]
})
},
// 删除条件组
handleDelGroup(item) {
+ if (this.ruleConditionGroupList.length === 1) {
+ this.$baseMessage.error('至少保留一条数据!')
+ return
+ }
this.ruleConditionGroupList.splice(this.ruleConditionGroupList.indexOf(item), 1)
},
// 删除单个原子指标
@@ -461,7 +464,7 @@ export default {
return {
groupLogic: this.groupLogic,
ruleConditionGroupList: this.ruleConditionGroupList
- }
+ }
} else {
this.$baseMessage.error('请选择原子指标和关系符号')
}
diff --git a/src/views/ruleEngine/indexRule/components/EditRule.vue b/src/views/ruleEngine/indexRule/components/EditRule.vue
index c7adfc1..8b00904 100644
--- a/src/views/ruleEngine/indexRule/components/EditRule.vue
+++ b/src/views/ruleEngine/indexRule/components/EditRule.vue
@@ -141,7 +141,7 @@ export default {
return {
drawerOption: {
show: false,
- width: '45%',
+ width: '1000px',
title: '指标配置'
},
// 当前激活的步骤