|
|
@ -107,10 +107,9 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
<el-button icon="el-icon-remove-outline" |
|
|
|
circle |
|
|
|
@click="delPerson(personIndex)" |
|
|
|
type="danger"></el-button> |
|
|
|
<img class="img_del" |
|
|
|
src="@/assets/img/icon-del.png" |
|
|
|
@click="delPerson(personIndex)"> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
@ -198,10 +197,13 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
<el-button icon="el-icon-remove-outline" |
|
|
|
<img class="img_del" |
|
|
|
src="@/assets/img/icon-del.png" |
|
|
|
@click="delHouse(houseIndex)"> |
|
|
|
<!-- <el-button icon="el-icon-remove-outline" |
|
|
|
circle |
|
|
|
@click="delHouse(houseIndex)" |
|
|
|
type="danger"></el-button> |
|
|
|
type="danger"></el-button> --> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
@ -288,10 +290,9 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
<el-button icon="el-icon-remove-outline" |
|
|
|
circle |
|
|
|
@click="delStatic(staticIndex)" |
|
|
|
type="danger"></el-button> |
|
|
|
<img class="img_del" |
|
|
|
src="@/assets/img/icon-del.png" |
|
|
|
@click="delStatic(staticIndex)"> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -502,10 +503,10 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
getRule () { |
|
|
|
getRule (valPerson, valHouse, valStatic) { |
|
|
|
this.okflag = false |
|
|
|
|
|
|
|
let messageObj = this.validateRule() |
|
|
|
let messageObj = this.validateRule(valPerson, valHouse, valStatic) |
|
|
|
|
|
|
|
// console.log('resiRuleList', this.resiRuleList) |
|
|
|
// console.log('houseRuleList', this.houseRuleList) |
|
|
@ -533,87 +534,99 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
validateRule () { |
|
|
|
validateRule (valPerson, valHouse, valStatic) { |
|
|
|
|
|
|
|
let message = '' |
|
|
|
|
|
|
|
this.resiRuleList.forEach((item, index) => { |
|
|
|
|
|
|
|
if (index === this.resiRuleList.length - 1) { |
|
|
|
if (item.itemGroupId === '' || |
|
|
|
item.itemId === '' || |
|
|
|
item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
message = '人员信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (item.nextLogicalRel === '' || |
|
|
|
item.itemGroupId === '' || |
|
|
|
item.itemId === '' || |
|
|
|
item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
message = '人员信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
if (valPerson) { |
|
|
|
this.resiRuleList.forEach((item, index) => { |
|
|
|
|
|
|
|
if (index === this.resiRuleList.length - 1) { |
|
|
|
if (item.itemGroupId === '' || |
|
|
|
item.itemId === '' || |
|
|
|
item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
message = '人员信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (item.nextLogicalRel === '' || |
|
|
|
item.itemGroupId === '' || |
|
|
|
item.itemId === '' || |
|
|
|
item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
message = '人员信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.houseRuleList.forEach((item, index) => { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
if (index === this.houseRuleList.length - 1) { |
|
|
|
if (valHouse) { |
|
|
|
|
|
|
|
if (item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
message = '房屋信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (item.nextLogicalRel === '' || |
|
|
|
item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
this.houseRuleList.forEach((item, index) => { |
|
|
|
|
|
|
|
message = '房屋信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
if (index === this.houseRuleList.length - 1) { |
|
|
|
|
|
|
|
this.statRuleList.forEach((item, index) => { |
|
|
|
if (index === this.statRuleList.length - 1) { |
|
|
|
if (item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
if (item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
message = '统计信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
message = '房屋信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (item.nextLogicalRel === '' || |
|
|
|
item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
message = '房屋信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (item.nextLogicalRel === '' || |
|
|
|
item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
message = '统计信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
if (valStatic) { |
|
|
|
this.statRuleList.forEach((item, index) => { |
|
|
|
if (index === this.statRuleList.length - 1) { |
|
|
|
if (item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
message = '统计信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (item.nextLogicalRel === '' || |
|
|
|
item.queryType === '' || |
|
|
|
item.colKey === '' || |
|
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
message = '统计信息不完整,请填写完整!' |
|
|
|
return message |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return message |
|
|
|
}, |
|
|
|
|
|
|
|
handlePreview () { |
|
|
|
this.getRule() |
|
|
|
if (!this.personChecked && !this.houseChecked && !this.staticChecked) { |
|
|
|
this.$message.info('请勾选要预览的规则') |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
this.getRule(this.personChecked, this.houseChecked, this.staticChecked) |
|
|
|
if (!this.okflag) { |
|
|
|
return false |
|
|
|
} |
|
|
@ -1148,4 +1161,11 @@ export default { |
|
|
|
/deep/.el-checkbox:last-of-type { |
|
|
|
margin-right: 10px; |
|
|
|
} |
|
|
|
|
|
|
|
.img_del { |
|
|
|
width: 25px; |
|
|
|
height: 25px; |
|
|
|
margin-top: 6px; |
|
|
|
cursor: pointer; |
|
|
|
} |
|
|
|
</style> |
|
|
|