|
|
@ -17,11 +17,11 @@ |
|
|
|
plain |
|
|
|
size="mini">预览</el-button> |
|
|
|
|
|
|
|
<el-button v-if="formType!=='detail'" |
|
|
|
<!-- <el-button v-if="formType!=='detail'" |
|
|
|
class="diy-button--add" |
|
|
|
@click="addRule" |
|
|
|
plain |
|
|
|
size="mini">增加</el-button> |
|
|
|
size="mini">增加</el-button> --> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="personSel" |
|
|
@ -112,16 +112,21 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
<img v-if="formType!=='detail'" |
|
|
|
<img v-if="formType!=='detail' && personIndex<resiRuleList.length-1" |
|
|
|
class="img_del" |
|
|
|
src="@/assets/img/icon-del.png" |
|
|
|
@click="delPerson(personIndex)"> |
|
|
|
<img v-if="formType!=='detail' && personIndex==resiRuleList.length-1" |
|
|
|
class="img_del" |
|
|
|
src="@/assets/img/icon-add.png" |
|
|
|
@click="addPerson(personIndex)"> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="houseSel"> |
|
|
|
<div v-if="houseSel" |
|
|
|
style="margin-top:10px"> |
|
|
|
<div v-for="(houseItem,houseIndex) in houseRuleList" |
|
|
|
:key="houseIndex" |
|
|
|
class="row-item"> |
|
|
@ -203,20 +208,21 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
<img v-if="formType!=='detail'" |
|
|
|
<img v-if="formType!=='detail' && houseIndex<houseRuleList.length-1" |
|
|
|
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> --> |
|
|
|
<img v-if="formType!=='detail' && houseIndex==houseRuleList.length-1" |
|
|
|
class="img_del" |
|
|
|
src="@/assets/img/icon-add.png" |
|
|
|
@click="addHouse(houseIndex)"> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="staticSel"> |
|
|
|
<div v-if="staticSel" |
|
|
|
style="margin-top:10px"> |
|
|
|
<div v-for="(staticItem,staticIndex) in statRuleList" |
|
|
|
:key="staticIndex" |
|
|
|
class="row-item"> |
|
|
@ -297,10 +303,14 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
<img v-if="formType!=='detail'" |
|
|
|
<img v-if="formType!=='detail' && staticIndex<statRuleList.length-1" |
|
|
|
class="img_del" |
|
|
|
src="@/assets/img/icon-del.png" |
|
|
|
@click="delStatic(staticIndex)"> |
|
|
|
<img v-if="formType!=='detail' && staticIndex==statRuleList.length-1" |
|
|
|
class="img_del" |
|
|
|
src="@/assets/img/icon-add.png" |
|
|
|
@click="addStatic(staticIndex)"> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -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 |
|
|
|