+
@@ -297,10 +303,14 @@
-

+
@@ -358,8 +368,7 @@ export default {
],
houseItemList: [],//房屋信息第二列
staticItemList: [],//统计信息第二列
- resiRuleList: [],
- resiRuleList1: [
+ resiRuleList: [
{
ruleDesc: '',//规则描述文字,例如:基础信息性别等于女
nextLogicalRel: '',//与上一条的关系;and、or
@@ -378,12 +387,10 @@ export default {
queryTypeName: '',
colValLabel: '',
nextLogicalRelName: '',
-
}
],
- houseRuleList: [],
- houseTitleName: '房屋信息',
- houseRuleList1: [
+
+ houseRuleList: [
{
ruleDesc: '',
nextLogicalRel: '',//与上一条的关系;and、or
@@ -402,9 +409,10 @@ export default {
nextLogicalRelName: '',
}
],
+ houseTitleName: '房屋信息',
+
statTitleName: '统计信息',
- statRuleList: [],
- statRuleList1: [
+ statRuleList: [
{
ruleDesc: '',
nextLogicalRel: '',//与上一条的关系;and、or
@@ -421,9 +429,9 @@ export default {
queryTypeName: '',
colValLabel: '',
nextLogicalRelName: '',
-
}
],
+
okflag: false,
showPersonList: false,
@@ -513,10 +521,10 @@ export default {
},
- getRule (valPerson, valHouse, valStatic) {
+ getRule () {
this.okflag = false
- let messageObj = this.validateRule(valPerson, valHouse, valStatic)
+ let messageObj = this.validateRule(this.personChecked, this.houseChecked, this.staticChecked)
// console.log('resiRuleList', this.resiRuleList)
// console.log('houseRuleList', this.houseRuleList)
@@ -548,6 +556,7 @@ export default {
let message = ''
if (valPerson) {
+
this.resiRuleList.forEach((item, index) => {
if (index === this.resiRuleList.length - 1) {
@@ -574,6 +583,8 @@ export default {
}
});
+
+
}
if (valHouse) {
@@ -636,7 +647,7 @@ export default {
return false
}
- this.getRule(this.personChecked, this.houseChecked, this.staticChecked)
+ this.getRule()
if (!this.okflag) {
return false
}
@@ -930,6 +941,18 @@ export default {
},
addPerson () {
+
+ // let array = this.resiRuleList[this.resiRuleList.length - 1]
+
+ // if (array.itemGroupId === '' ||
+ // array.itemId === '' ||
+ // array.queryType === '' ||
+ // array.colKey === '' ||
+ // array.colVal === '') {
+ // this.$message.info('请将上一条填写完整')
+ // return false
+ // }
+
let obj = {
ruleDesc: '',//规则描述文字,例如:基础信息性别等于女
nextLogicalRel: '',//与上一条的关系;and、or
@@ -958,6 +981,16 @@ export default {
},
addHouse () {
+ // let array = this.houseRuleList[this.houseRuleList.length - 1]
+
+ // if (array.itemGroupId === '' ||
+ // array.itemId === '' ||
+ // array.queryType === '' ||
+ // array.colKey === '' ||
+ // array.colVal === '') {
+ // this.$message.info('请将上一条填写完整')
+ // return false
+ // }
let obj = {
ruleDesc: '',
nextLogicalRel: '',//与上一条的关系;and、or
@@ -984,6 +1017,16 @@ export default {
},
addStatic () {
+ // let array = this.statRuleList[this.statRuleList.length - 1]
+
+ // if (array.itemGroupId === '' ||
+ // array.itemId === '' ||
+ // array.queryType === '' ||
+ // array.colKey === '' ||
+ // array.colVal === '') {
+ // this.$message.info('请将上一条填写完整')
+ // return false
+ // }
let obj = {
ruleDesc: '',
nextLogicalRel: '',//与上一条的关系;and、or