|
|
@ -11,12 +11,17 @@ |
|
|
<span @click="clickTab('static')" |
|
|
<span @click="clickTab('static')" |
|
|
:class="['tab-title',{'tab-title-sel':staticSel}]">统计信息</span> |
|
|
:class="['tab-title',{'tab-title-sel':staticSel}]">统计信息</span> |
|
|
|
|
|
|
|
|
<el-button class="diy-button--search" |
|
|
<el-button v-if="formType!=='detail'" |
|
|
|
|
|
class="diy-button--search" |
|
|
@click="handlePreview" |
|
|
@click="handlePreview" |
|
|
|
|
|
plain |
|
|
|
|
|
:disabled="formType!=='detail' " |
|
|
size="mini">预览</el-button> |
|
|
size="mini">预览</el-button> |
|
|
|
|
|
|
|
|
<el-button class="diy-button--add" |
|
|
<el-button v-if="formType!=='detail'" |
|
|
|
|
|
class="diy-button--add" |
|
|
@click="addRule" |
|
|
@click="addRule" |
|
|
|
|
|
plain |
|
|
size="mini">增加</el-button> |
|
|
size="mini">增加</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
@ -27,8 +32,7 @@ |
|
|
<el-select class="item_width_1" |
|
|
<el-select class="item_width_1" |
|
|
v-model="personItem.itemGroupId" |
|
|
v-model="personItem.itemGroupId" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in groupList" |
|
|
<el-option v-for="item in groupList" |
|
|
@click.native="handleSelGroup(personIndex,item)" |
|
|
@click.native="handleSelGroup(personIndex,item)" |
|
|
:key="item.id" |
|
|
:key="item.id" |
|
|
@ -39,8 +43,7 @@ |
|
|
<el-select class="item_width_1" |
|
|
<el-select class="item_width_1" |
|
|
v-model="personItem.itemId" |
|
|
v-model="personItem.itemId" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in personItem.itemList" |
|
|
<el-option v-for="item in personItem.itemList" |
|
|
@click.native="handleSelGroupItem(personIndex,item)" |
|
|
@click.native="handleSelGroupItem(personIndex,item)" |
|
|
:key="item.itemId" |
|
|
:key="item.itemId" |
|
|
@ -51,9 +54,9 @@ |
|
|
<el-select class="item_width_1" |
|
|
<el-select class="item_width_1" |
|
|
v-model="personItem.queryType" |
|
|
v-model="personItem.queryType" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in queryList" |
|
|
<el-option v-for="item in queryList" |
|
|
|
|
|
@click.native="handleSelPersonQuery(personIndex,item)" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value"> |
|
|
:value="item.value"> |
|
|
@ -65,9 +68,9 @@ |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
v-model="personItem.colVal" |
|
|
v-model="personItem.colVal" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in personItem.colOption" |
|
|
<el-option v-for="item in personItem.colOption" |
|
|
|
|
|
@click.native="handleSelPersonValue(personIndex,item)" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value"> |
|
|
:value="item.value"> |
|
|
@ -83,9 +86,9 @@ |
|
|
<el-date-picker v-else-if="personItem.colType==='datepicker'||personItem.colType==='date'" |
|
|
<el-date-picker v-else-if="personItem.colType==='datepicker'||personItem.colType==='date'" |
|
|
v-model="personItem.colVal" |
|
|
v-model="personItem.colVal" |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
type="date" |
|
|
type="datetime" |
|
|
value-format="yyyy-MM-dd" |
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
value="yyyy-MM-dd" |
|
|
value="yyyy-MM-dd HH:mm:ss" |
|
|
placeholder="开始时间"> |
|
|
placeholder="开始时间"> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
<el-input v-else |
|
|
<el-input v-else |
|
|
@ -100,19 +103,19 @@ |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
v-model="personItem.nextLogicalRel" |
|
|
v-model="personItem.nextLogicalRel" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in logicalList" |
|
|
<el-option v-for="item in logicalList" |
|
|
|
|
|
@click.native="handleSelPersonLogical(personIndex,item)" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value"> |
|
|
:value="item.value"> |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
|
|
|
|
|
|
<el-button icon="el-icon-remove-outline" |
|
|
<img v-if="formType!=='detail'" |
|
|
circle |
|
|
class="img_del" |
|
|
@click="delPerson(personIndex)" |
|
|
src="@/assets/img/icon-del.png" |
|
|
type="danger"></el-button> |
|
|
@click="delPerson(personIndex)"> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
@ -126,13 +129,12 @@ |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="请输入" |
|
|
placeholder="请输入" |
|
|
:disabled="true" |
|
|
:disabled="true" |
|
|
v-model="houseItem.titleName"> |
|
|
v-model="houseTitleName"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
<el-select class="item_width_1" |
|
|
<el-select class="item_width_1" |
|
|
v-model="houseItem.colKey" |
|
|
v-model="houseItem.colKey" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in houseItemList" |
|
|
<el-option v-for="item in houseItemList" |
|
|
@click.native="handleSelHouseItem(houseIndex,item)" |
|
|
@click.native="handleSelHouseItem(houseIndex,item)" |
|
|
:key="item.colKey" |
|
|
:key="item.colKey" |
|
|
@ -143,9 +145,9 @@ |
|
|
<el-select class="item_width_1" |
|
|
<el-select class="item_width_1" |
|
|
v-model="houseItem.queryType" |
|
|
v-model="houseItem.queryType" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in queryList" |
|
|
<el-option v-for="item in queryList" |
|
|
|
|
|
@click.native="handleSelHouseQuery(houseIndex,item)" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value"> |
|
|
:value="item.value"> |
|
|
@ -157,9 +159,9 @@ |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
v-model="houseItem.colVal" |
|
|
v-model="houseItem.colVal" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in houseItem.colOption" |
|
|
<el-option v-for="item in houseItem.colOption" |
|
|
|
|
|
@click.native="handleSelHouseValue(houseIndex,item)" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value"> |
|
|
:value="item.value"> |
|
|
@ -174,10 +176,10 @@ |
|
|
<el-date-picker v-else-if="houseItem.colType==='datepicker'||houseItem.colType==='date'" |
|
|
<el-date-picker v-else-if="houseItem.colType==='datepicker'||houseItem.colType==='date'" |
|
|
v-model="houseItem.colVal" |
|
|
v-model="houseItem.colVal" |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
type="date" |
|
|
type="datetime" |
|
|
size="mini" |
|
|
size="mini" |
|
|
value-format="yyyy-MM-dd" |
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
value="yyyy-MM-dd" |
|
|
value="yyyy-MM-dd HH:mm:ss" |
|
|
placeholder="开始时间"> |
|
|
placeholder="开始时间"> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
<el-input v-else |
|
|
<el-input v-else |
|
|
@ -192,19 +194,23 @@ |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
v-model="houseItem.nextLogicalRel" |
|
|
v-model="houseItem.nextLogicalRel" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in logicalList" |
|
|
<el-option v-for="item in logicalList" |
|
|
|
|
|
@click.native="handleSelHouseLogical(houseIndex,item)" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value"> |
|
|
:value="item.value"> |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
|
|
|
|
|
|
<el-button icon="el-icon-remove-outline" |
|
|
<img v-if="formType!=='detail'" |
|
|
|
|
|
class="img_del" |
|
|
|
|
|
src="@/assets/img/icon-del.png" |
|
|
|
|
|
@click="delHouse(houseIndex)"> |
|
|
|
|
|
<!-- <el-button icon="el-icon-remove-outline" |
|
|
circle |
|
|
circle |
|
|
@click="delHouse(houseIndex)" |
|
|
@click="delHouse(houseIndex)" |
|
|
type="danger"></el-button> |
|
|
type="danger"></el-button> --> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
@ -218,13 +224,12 @@ |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="请输入" |
|
|
placeholder="请输入" |
|
|
:disabled="true" |
|
|
:disabled="true" |
|
|
v-model="staticItem.titleName"> |
|
|
v-model="statTitleName"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
<el-select class="item_width_1" |
|
|
<el-select class="item_width_1" |
|
|
v-model="staticItem.colKey" |
|
|
v-model="staticItem.colKey" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in staticItemList" |
|
|
<el-option v-for="item in staticItemList" |
|
|
@click.native="handleSelStaticItem(staticIndex,item)" |
|
|
@click.native="handleSelStaticItem(staticIndex,item)" |
|
|
:key="item.colKey" |
|
|
:key="item.colKey" |
|
|
@ -235,9 +240,9 @@ |
|
|
<el-select class="item_width_1" |
|
|
<el-select class="item_width_1" |
|
|
v-model="staticItem.queryType" |
|
|
v-model="staticItem.queryType" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in queryList" |
|
|
<el-option v-for="item in queryList" |
|
|
|
|
|
@click.native="handleSelStaticQuery(staticIndex,item)" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value"> |
|
|
:value="item.value"> |
|
|
@ -249,9 +254,9 @@ |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
v-model="staticItem.colVal" |
|
|
v-model="staticItem.colVal" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in staticItem.colOption" |
|
|
<el-option v-for="item in staticItem.colOption" |
|
|
|
|
|
@click.native="handleSelStaticValue(staticIndex,item)" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value"> |
|
|
:value="item.value"> |
|
|
@ -266,9 +271,9 @@ |
|
|
<el-date-picker v-else-if="staticItem.colType==='datepicker'||staticItem.colType==='date'" |
|
|
<el-date-picker v-else-if="staticItem.colType==='datepicker'||staticItem.colType==='date'" |
|
|
v-model="staticItem.colVal" |
|
|
v-model="staticItem.colVal" |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
type="date" |
|
|
type="datetime" |
|
|
value-format="yyyy-MM-dd" |
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
value="yyyy-MM-dd" |
|
|
value="yyyy-MM-dd HH:mm:ss" |
|
|
placeholder="开始时间"> |
|
|
placeholder="开始时间"> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
<el-input v-else |
|
|
<el-input v-else |
|
|
@ -283,19 +288,19 @@ |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
v-model="staticItem.nextLogicalRel" |
|
|
v-model="staticItem.nextLogicalRel" |
|
|
size="mini" |
|
|
size="mini" |
|
|
placeholder="全部" |
|
|
placeholder="全部"> |
|
|
clearable> |
|
|
|
|
|
<el-option v-for="item in logicalList" |
|
|
<el-option v-for="item in logicalList" |
|
|
|
|
|
@click.native="handleSelStaticLogical(houseIndex,item)" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value"> |
|
|
:value="item.value"> |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
|
|
|
|
|
|
<el-button icon="el-icon-remove-outline" |
|
|
<img v-if="formType!=='detail'" |
|
|
circle |
|
|
class="img_del" |
|
|
@click="delStatic(staticIndex)" |
|
|
src="@/assets/img/icon-del.png" |
|
|
type="danger"></el-button> |
|
|
@click="delStatic(staticIndex)"> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -368,10 +373,16 @@ export default { |
|
|
itemList: [], |
|
|
itemList: [], |
|
|
colType: '',//详细参数的组件类型 |
|
|
colType: '',//详细参数的组件类型 |
|
|
colOption: [], |
|
|
colOption: [], |
|
|
|
|
|
itemGroupName: '', |
|
|
|
|
|
itemLabel: '', |
|
|
|
|
|
queryTypeName: '', |
|
|
|
|
|
colValLabel: '', |
|
|
|
|
|
nextLogicalRelName: '', |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
houseRuleList: [], |
|
|
houseRuleList: [], |
|
|
|
|
|
houseTitleName: '房屋信息', |
|
|
houseRuleList1: [ |
|
|
houseRuleList1: [ |
|
|
{ |
|
|
{ |
|
|
ruleDesc: '', |
|
|
ruleDesc: '', |
|
|
@ -384,8 +395,14 @@ export default { |
|
|
titleName: '房屋信息', |
|
|
titleName: '房屋信息', |
|
|
colType: '',//详细参数的组件类型 |
|
|
colType: '',//详细参数的组件类型 |
|
|
colOption: [], |
|
|
colOption: [], |
|
|
|
|
|
itemGroupName: '房屋信息', |
|
|
|
|
|
itemLabel: '', |
|
|
|
|
|
queryTypeName: '', |
|
|
|
|
|
colValLabel: '', |
|
|
|
|
|
nextLogicalRelName: '', |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
|
|
|
statTitleName: '统计信息', |
|
|
statRuleList: [], |
|
|
statRuleList: [], |
|
|
statRuleList1: [ |
|
|
statRuleList1: [ |
|
|
{ |
|
|
{ |
|
|
@ -399,13 +416,18 @@ export default { |
|
|
titleName: '统计信息', |
|
|
titleName: '统计信息', |
|
|
colType: '',//详细参数的组件类型 |
|
|
colType: '',//详细参数的组件类型 |
|
|
colOption: [], |
|
|
colOption: [], |
|
|
|
|
|
itemGroupName: '统计信息', |
|
|
|
|
|
itemLabel: '', |
|
|
|
|
|
queryTypeName: '', |
|
|
|
|
|
colValLabel: '', |
|
|
|
|
|
nextLogicalRelName: '', |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
okflag: false, |
|
|
okflag: false, |
|
|
|
|
|
|
|
|
showPersonList: false, |
|
|
showPersonList: false, |
|
|
ruleList: [] |
|
|
ruleList: {} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -414,34 +436,52 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
components: { personListItem }, |
|
|
components: { personListItem }, |
|
|
async mounted () { |
|
|
async created () { |
|
|
this.loadPersonGroup() |
|
|
// this.startLoading() |
|
|
this.loadHouseItem() |
|
|
await this.loadPersonGroup() |
|
|
this.loadStaticItem() |
|
|
await this.loadHouseItem() |
|
|
this.loadDicOption() |
|
|
await this.loadStaticItem() |
|
|
|
|
|
await this.loadDicOption() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
async setRule (resiRuleList, houseRuleList, statRuleList) { |
|
|
async setRule (resiRuleList, houseRuleList, statRuleList) { |
|
|
|
|
|
// this.startLoading() |
|
|
|
|
|
if (this.groupList.length == 0 || this.houseItemList.length === 0 || this.staticItemList.length === 0) { |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.setRule(resiRuleList, houseRuleList, statRuleList); |
|
|
|
|
|
}, 500); |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
this.resiRuleList = resiRuleList |
|
|
this.resiRuleList = resiRuleList |
|
|
|
|
|
if (this.resiRuleList && this.resiRuleList.length > 0) { |
|
|
|
|
|
for (let i = 0; i < this.resiRuleList.length; i++) { |
|
|
this.resiRuleList.forEach((element, index) => { |
|
|
let element = this.resiRuleList[i] |
|
|
|
|
|
|
|
|
let selGroup = this.groupList.filter((item) => |
|
|
let selGroup = this.groupList.filter((item) => |
|
|
element.itemGroupId === item.id |
|
|
element.itemGroupId === item.id |
|
|
); |
|
|
); |
|
|
|
|
|
console.log(selGroup) |
|
|
|
|
|
|
|
|
if (selGroup.length > 0) { |
|
|
if (selGroup.length > 0) { |
|
|
this.handleSelGroup(index, selGroup[0], true) |
|
|
await this.handleSelGroup(i, selGroup[0], true) |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let selItem = element.itemList.filter((item) => |
|
|
|
|
|
element.itemId === item.itemId); |
|
|
|
|
|
if (selItem.length > 0) { |
|
|
|
|
|
await this.handleSelGroupItem(i, selItem[0], true) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.houseRuleList = houseRuleList |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.houseRuleList = houseRuleList |
|
|
|
|
|
if (this.houseRuleList && this.houseRuleList.length > 0) { |
|
|
this.houseRuleList.forEach((element, index) => { |
|
|
this.houseRuleList.forEach((element, index) => { |
|
|
|
|
|
|
|
|
let selHouseItem = this.houseItemList.filter((item) => |
|
|
let selHouseItem = this.houseItemList.filter((item) => |
|
|
@ -453,9 +493,9 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
this.statRuleList = statRuleList |
|
|
this.statRuleList = statRuleList |
|
|
|
|
|
if (this.statRuleList && this.statRuleList.length > 0) { |
|
|
this.statRuleList.forEach((element, index) => { |
|
|
this.statRuleList.forEach((element, index) => { |
|
|
|
|
|
|
|
|
let selStaticItem = this.staticItemList.filter((item) => |
|
|
let selStaticItem = this.staticItemList.filter((item) => |
|
|
@ -467,16 +507,20 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// this.endLoading() |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getRule () { |
|
|
getRule (valPerson, valHouse, valStatic) { |
|
|
this.okflag = false |
|
|
this.okflag = false |
|
|
let messageObj = this.validateRule() |
|
|
|
|
|
|
|
|
|
|
|
console.log('resiRuleList', this.resiRuleList) |
|
|
let messageObj = this.validateRule(valPerson, valHouse, valStatic) |
|
|
console.log('houseRuleList', this.houseRuleList) |
|
|
|
|
|
console.log('statRuleList', this.statRuleList) |
|
|
// console.log('resiRuleList', this.resiRuleList) |
|
|
|
|
|
// console.log('houseRuleList', this.houseRuleList) |
|
|
|
|
|
// console.log('statRuleList', this.statRuleList) |
|
|
|
|
|
|
|
|
if (messageObj) { |
|
|
if (messageObj) { |
|
|
this.$message.error(messageObj) |
|
|
this.$message.error(messageObj) |
|
|
@ -500,16 +544,14 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
validateRule () { |
|
|
validateRule (valPerson, valHouse, valStatic) { |
|
|
|
|
|
|
|
|
let message = '' |
|
|
let message = '' |
|
|
|
|
|
if (valPerson) { |
|
|
this.resiRuleList.forEach((item, index) => { |
|
|
this.resiRuleList.forEach((item, index) => { |
|
|
|
|
|
|
|
|
if (index === this.resiRuleList.length - 1) { |
|
|
if (index === this.resiRuleList.length - 1) { |
|
|
if ( |
|
|
if (item.itemGroupId === '' || |
|
|
item.ruleDesc === '' || |
|
|
|
|
|
item.itemGroupId === '' || |
|
|
|
|
|
item.itemId === '' || |
|
|
item.itemId === '' || |
|
|
item.queryType === '' || |
|
|
item.queryType === '' || |
|
|
item.colKey === '' || |
|
|
item.colKey === '' || |
|
|
@ -520,7 +562,6 @@ export default { |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
if (item.nextLogicalRel === '' || |
|
|
if (item.nextLogicalRel === '' || |
|
|
item.ruleDesc === '' || |
|
|
|
|
|
item.itemGroupId === '' || |
|
|
item.itemGroupId === '' || |
|
|
item.itemId === '' || |
|
|
item.itemId === '' || |
|
|
item.queryType === '' || |
|
|
item.queryType === '' || |
|
|
@ -533,15 +574,16 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (valHouse) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.houseRuleList.forEach((item, index) => { |
|
|
this.houseRuleList.forEach((item, index) => { |
|
|
|
|
|
|
|
|
if (index === this.houseRuleList.length - 1) { |
|
|
if (index === this.houseRuleList.length - 1) { |
|
|
|
|
|
|
|
|
if ( |
|
|
if (item.queryType === '' || |
|
|
|
|
|
|
|
|
item.ruleDesc === '' || |
|
|
|
|
|
item.queryType === '' || |
|
|
|
|
|
item.colKey === '' || |
|
|
item.colKey === '' || |
|
|
item.colVal === '') { |
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
|
@ -550,7 +592,6 @@ export default { |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
if (item.nextLogicalRel === '' || |
|
|
if (item.nextLogicalRel === '' || |
|
|
item.ruleDesc === '' || |
|
|
|
|
|
item.queryType === '' || |
|
|
item.queryType === '' || |
|
|
item.colKey === '' || |
|
|
item.colKey === '' || |
|
|
item.colVal === '') { |
|
|
item.colVal === '') { |
|
|
@ -560,13 +601,12 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (valStatic) { |
|
|
this.statRuleList.forEach((item, index) => { |
|
|
this.statRuleList.forEach((item, index) => { |
|
|
if (index === this.statRuleList.length - 1) { |
|
|
if (index === this.statRuleList.length - 1) { |
|
|
if ( |
|
|
if (item.queryType === '' || |
|
|
|
|
|
|
|
|
item.ruleDesc === '' || |
|
|
|
|
|
item.queryType === '' || |
|
|
|
|
|
item.colKey === '' || |
|
|
item.colKey === '' || |
|
|
item.colVal === '') { |
|
|
item.colVal === '') { |
|
|
|
|
|
|
|
|
@ -574,9 +614,7 @@ export default { |
|
|
return message |
|
|
return message |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
if ( |
|
|
if (item.nextLogicalRel === '' || |
|
|
item.nextLogicalRel === '' || |
|
|
|
|
|
item.ruleDesc === '' || |
|
|
|
|
|
item.queryType === '' || |
|
|
item.queryType === '' || |
|
|
item.colKey === '' || |
|
|
item.colKey === '' || |
|
|
item.colVal === '') { |
|
|
item.colVal === '') { |
|
|
@ -586,126 +624,50 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return message |
|
|
return message |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handlePreview () { |
|
|
handlePreview () { |
|
|
this.ruleList = {} |
|
|
if (!this.personChecked && !this.houseChecked && !this.staticChecked) { |
|
|
this.ruleList = { |
|
|
this.$message.info('请勾选要预览的规则') |
|
|
resiRuleList: this.resiRuleList, |
|
|
return false |
|
|
houseRuleList: this.houseRuleList, |
|
|
|
|
|
statRuleList: this.statRuleList, |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.showPersonList = true |
|
|
this.getRule(this.personChecked, this.houseChecked, this.staticChecked) |
|
|
}, |
|
|
if (!this.okflag) { |
|
|
|
|
|
return false |
|
|
handleClose () { |
|
|
|
|
|
this.showPersonList = false |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
clickTab (type) { |
|
|
|
|
|
if (type === 'person') { |
|
|
|
|
|
this.personSel = true |
|
|
|
|
|
this.houseSel = false |
|
|
|
|
|
this.staticSel = false |
|
|
|
|
|
} |
|
|
|
|
|
if (type === 'house') { |
|
|
|
|
|
this.personSel = false |
|
|
|
|
|
this.houseSel = true |
|
|
|
|
|
this.staticSel = false |
|
|
|
|
|
} |
|
|
|
|
|
if (type === 'static') { |
|
|
|
|
|
this.personSel = false |
|
|
|
|
|
this.houseSel = false |
|
|
|
|
|
this.staticSel = true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
addRule () { |
|
|
|
|
|
if (this.personSel) { |
|
|
|
|
|
this.addPerson() |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
this.ruleList = {} |
|
|
if (this.houseSel) { |
|
|
this.ruleList = { |
|
|
this.addHouse() |
|
|
resiRuleList: [], |
|
|
|
|
|
houseRuleList: [], |
|
|
|
|
|
statRuleList: [], |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.staticSel) { |
|
|
if (this.personChecked) { |
|
|
this.addStatic() |
|
|
this.ruleList.resiRuleList = this.resiRuleList |
|
|
} |
|
|
} |
|
|
}, |
|
|
if (this.houseChecked) { |
|
|
|
|
|
this.ruleList.houseRuleList = this.houseRuleList |
|
|
addPerson () { |
|
|
|
|
|
let obj = { |
|
|
|
|
|
ruleDesc: '',//规则描述文字,例如:基础信息性别等于女 |
|
|
|
|
|
nextLogicalRel: 'and',//与上一条的关系;and、or |
|
|
|
|
|
itemGroupId: '', |
|
|
|
|
|
itemId: '', |
|
|
|
|
|
queryType: '', |
|
|
|
|
|
colTable: '', |
|
|
|
|
|
colKey: '', |
|
|
|
|
|
colVal: '', |
|
|
|
|
|
|
|
|
|
|
|
itemList: [], |
|
|
|
|
|
colType: '',//详细参数的组件类型 |
|
|
|
|
|
colOption: [], |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
if (this.staticChecked) { |
|
|
this.resiRuleList.push(obj) |
|
|
this.ruleList.statRuleList = this.statRuleList |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
delPerson (index) { |
|
|
|
|
|
this.resiRuleList.splice(index, 1); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
addHouse () { |
|
|
|
|
|
let obj = { |
|
|
|
|
|
ruleDesc: '房屋信息', |
|
|
|
|
|
nextLogicalRel: 'and',//与上一条的关系;and、or |
|
|
|
|
|
queryType: '', |
|
|
|
|
|
colTable: '', |
|
|
|
|
|
colKey: '', |
|
|
|
|
|
colVal: '', |
|
|
|
|
|
|
|
|
|
|
|
titleName: '房屋信息', |
|
|
|
|
|
colType: '',//详细参数的组件类型 |
|
|
|
|
|
colOption: [], |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.houseRuleList.push(obj) |
|
|
this.showPersonList = true |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
delHouse (index) { |
|
|
|
|
|
this.houseRuleList.splice(index, 1); |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
addStatic () { |
|
|
handleClose () { |
|
|
let obj = { |
|
|
this.showPersonList = false |
|
|
ruleDesc: '统计信息', |
|
|
|
|
|
nextLogicalRel: 'and',//与上一条的关系;and、or |
|
|
|
|
|
queryType: '', |
|
|
|
|
|
colTable: '', |
|
|
|
|
|
colKey: '', |
|
|
|
|
|
colVal: '', |
|
|
|
|
|
|
|
|
|
|
|
titleName: '统计信息', |
|
|
|
|
|
colType: '',//详细参数的组件类型 |
|
|
|
|
|
colOption: [], |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.statRuleList.push(obj) |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
delStatic (index) { |
|
|
|
|
|
this.statRuleList.splice(index, 1); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//选择人员信息第一列下拉框 |
|
|
//选择人员信息第一列下拉框 |
|
|
async handleSelGroup (personIndex, item, isEdit) { |
|
|
async handleSelGroup (personIndex, item, isSet) { |
|
|
const url = '/oper/customize/icformitem/getItemListV2' |
|
|
const url = '/oper/customize/icformitem/getItemListV2' |
|
|
// const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/isServiceProject/service/serviceScopeTree' |
|
|
// const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/isServiceProject/service/serviceScopeTree' |
|
|
let params = { |
|
|
let params = { |
|
|
@ -717,34 +679,41 @@ export default { |
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
|
|
|
|
|
|
let oneData = this.resiRuleList[personIndex] |
|
|
let oneData = this.resiRuleList[personIndex] |
|
|
oneData.ruleDesc = item.label |
|
|
oneData.itemGroupName = item.label |
|
|
oneData.itemList = data |
|
|
oneData.itemList = data |
|
|
oneData.colTable = item.tableName |
|
|
oneData.colTable = item.tableName |
|
|
this.$set(this.resiRuleList, personIndex, oneData) |
|
|
|
|
|
|
|
|
|
|
|
if (isEdit) { |
|
|
if (!isSet) {//如果是详情,赋值,不需要置空 |
|
|
let selItem = oneData.itemList.filter((item) => |
|
|
oneData.nextLogicalRel = '' |
|
|
oneData.itemId === item.itemId); |
|
|
oneData.itemId = '' |
|
|
if (selItem.length > 0) { |
|
|
oneData.queryType = '' |
|
|
this.handleSelGroupItem(personIndex, selItem[0]) |
|
|
oneData.colKey = '' |
|
|
} |
|
|
oneData.colVal = '' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.resiRuleList, personIndex, oneData) |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(msg) |
|
|
this.$message.error(msg) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//选择人员信息第二列下拉框 |
|
|
//选择人员信息第二列下拉框 |
|
|
async handleSelGroupItem (personIndex, item) { |
|
|
async handleSelGroupItem (personIndex, item, isSet) { |
|
|
|
|
|
|
|
|
let oneData = this.resiRuleList[personIndex] |
|
|
let oneData = this.resiRuleList[personIndex] |
|
|
|
|
|
|
|
|
oneData.colKey = item.columnName |
|
|
oneData.colKey = item.columnName |
|
|
oneData.colType = item.itemType |
|
|
oneData.colType = item.itemType |
|
|
|
|
|
oneData.itemLabel = item.label |
|
|
|
|
|
|
|
|
oneData.ruleDesc = oneData.ruleDesc + item.label |
|
|
if (!isSet) {//如果是详情,赋值,不需要置空 |
|
|
|
|
|
oneData.nextLogicalRel = '' |
|
|
|
|
|
oneData.queryType = '' |
|
|
|
|
|
oneData.colVal = '' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (item.optionSourceType === 'remote') { |
|
|
if (item.optionSourceType === 'remote') { |
|
|
const url = item.optionSourceValue |
|
|
const url = item.optionSourceValue |
|
|
@ -767,14 +736,49 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//选择人员信息第三列 |
|
|
|
|
|
handleSelPersonQuery (personIndex, item) { |
|
|
|
|
|
let oneData = this.resiRuleList[personIndex] |
|
|
|
|
|
oneData.queryTypeName = item.label |
|
|
|
|
|
|
|
|
|
|
|
oneData.nextLogicalRel = '' |
|
|
|
|
|
oneData.colVal = '' |
|
|
|
|
|
oneData.colValLabel = '' |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.resiRuleList, personIndex, oneData) |
|
|
|
|
|
}, |
|
|
|
|
|
//选择人员信息第四列 |
|
|
|
|
|
handleSelPersonValue (personIndex, item) { |
|
|
|
|
|
let oneData = this.resiRuleList[personIndex] |
|
|
|
|
|
|
|
|
|
|
|
oneData.colValLabel = item.label |
|
|
|
|
|
oneData.nextLogicalRel = '' |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.resiRuleList, personIndex, oneData) |
|
|
|
|
|
}, |
|
|
|
|
|
//选择人员信息第五列 |
|
|
|
|
|
handleSelPersonLogical (personIndex, item) { |
|
|
|
|
|
let oneData = this.resiRuleList[personIndex] |
|
|
|
|
|
|
|
|
|
|
|
oneData.nextLogicalRelName = item.label |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.resiRuleList, personIndex, oneData) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//选择房屋信息第二列下拉框 |
|
|
//选择房屋信息第二列下拉框 |
|
|
async handleSelHouseItem (houseIndex, item) { |
|
|
async handleSelHouseItem (houseIndex, item, isSet) { |
|
|
|
|
|
|
|
|
let oneData = this.houseRuleList[houseIndex] |
|
|
let oneData = this.houseRuleList[houseIndex] |
|
|
|
|
|
|
|
|
oneData.colTable = item.tableName |
|
|
oneData.colTable = item.tableName |
|
|
oneData.colType = item.itemType |
|
|
oneData.colType = item.itemType |
|
|
oneData.ruleDesc = oneData.ruleDesc + item.label |
|
|
oneData.itemLabel = item.label |
|
|
|
|
|
|
|
|
|
|
|
if (!isSet) {//如果是详情,赋值,不需要置空 |
|
|
|
|
|
oneData.nextLogicalRel = '' |
|
|
|
|
|
oneData.queryType = '' |
|
|
|
|
|
oneData.colVal = '' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (item.optionSourceType === 'remote') { |
|
|
if (item.optionSourceType === 'remote') { |
|
|
const url = item.optionSourceUrl |
|
|
const url = item.optionSourceUrl |
|
|
@ -796,18 +800,50 @@ export default { |
|
|
oneData.colOption = [] |
|
|
oneData.colOption = [] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.houseRuleList, houseIndex, oneData) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//选择房屋第三列 |
|
|
|
|
|
handleSelHouseQuery (houseIndex, item) { |
|
|
|
|
|
let oneData = this.houseRuleList[houseIndex] |
|
|
|
|
|
oneData.queryTypeName = item.label |
|
|
|
|
|
|
|
|
|
|
|
oneData.nextLogicalRel = '' |
|
|
|
|
|
oneData.colVal = '' |
|
|
|
|
|
oneData.colValLabel = '' |
|
|
|
|
|
|
|
|
this.$set(this.houseRuleList, houseIndex, oneData) |
|
|
this.$set(this.houseRuleList, houseIndex, oneData) |
|
|
|
|
|
}, |
|
|
|
|
|
//选择房屋第四列 |
|
|
|
|
|
handleSelHouseValue (houseIndex, item) { |
|
|
|
|
|
let oneData = this.houseRuleList[houseIndex] |
|
|
|
|
|
oneData.colValLabel = item.label |
|
|
|
|
|
oneData.nextLogicalRel = '' |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.houseRuleList, houseIndex, oneData) |
|
|
|
|
|
}, |
|
|
|
|
|
//选择房屋第五列 |
|
|
|
|
|
handleSelHouseLogical (houseIndex, item) { |
|
|
|
|
|
let oneData = this.houseRuleList[houseIndex] |
|
|
|
|
|
oneData.nextLogicalRelName = item.label |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.houseRuleList, houseIndex, oneData) |
|
|
}, |
|
|
}, |
|
|
//选择统计信息第二列下拉框 |
|
|
//选择统计信息第二列下拉框 |
|
|
async handleSelStaticItem (staticIndex, item) { |
|
|
async handleSelStaticItem (staticIndex, item, isSet) { |
|
|
|
|
|
|
|
|
let oneData = this.statRuleList[staticIndex] |
|
|
let oneData = this.statRuleList[staticIndex] |
|
|
|
|
|
|
|
|
oneData.colTable = item.tableName |
|
|
oneData.colTable = item.tableName |
|
|
oneData.colType = item.itemType |
|
|
oneData.colType = item.itemType |
|
|
oneData.ruleDesc = oneData.ruleDesc + item.label |
|
|
oneData.itemLabel = item.label |
|
|
|
|
|
|
|
|
|
|
|
if (!isSet) {//如果是详情,赋值,不需要置空 |
|
|
|
|
|
oneData.nextLogicalRel = '' |
|
|
|
|
|
oneData.queryType = '' |
|
|
|
|
|
oneData.colVal = '' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (item.optionSourceType === 'remote') { |
|
|
if (item.optionSourceType === 'remote') { |
|
|
const url = item.optionSourceUrl |
|
|
const url = item.optionSourceUrl |
|
|
@ -834,6 +870,145 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//选择统计信息第三列 |
|
|
|
|
|
handleSelStaticQuery (staticIndex, item) { |
|
|
|
|
|
let oneData = this.statRuleList[staticIndex] |
|
|
|
|
|
oneData.queryTypeName = item.label |
|
|
|
|
|
|
|
|
|
|
|
oneData.nextLogicalRel = '' |
|
|
|
|
|
oneData.colVal = '' |
|
|
|
|
|
oneData.colValLabel = '' |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.statRuleList, staticIndex, oneData) |
|
|
|
|
|
}, |
|
|
|
|
|
//选择统计信息第四列 |
|
|
|
|
|
handleSelStaticValue (staticIndex, item) { |
|
|
|
|
|
let oneData = this.statRuleList[staticIndex] |
|
|
|
|
|
oneData.colValLabel = item.label |
|
|
|
|
|
oneData.nextLogicalRel = '' |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.statRuleList, staticIndex, oneData) |
|
|
|
|
|
}, |
|
|
|
|
|
//选择统计信息第五列 |
|
|
|
|
|
handleSelStaticLogical (staticIndex, item) { |
|
|
|
|
|
let oneData = this.statRuleList[staticIndex] |
|
|
|
|
|
oneData.nextLogicalRelName = item.label |
|
|
|
|
|
|
|
|
|
|
|
this.$set(this.statRuleList, staticIndex, oneData) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
clickTab (type) { |
|
|
|
|
|
if (type === 'person') { |
|
|
|
|
|
this.personSel = true |
|
|
|
|
|
this.houseSel = false |
|
|
|
|
|
this.staticSel = false |
|
|
|
|
|
} |
|
|
|
|
|
if (type === 'house') { |
|
|
|
|
|
this.personSel = false |
|
|
|
|
|
this.houseSel = true |
|
|
|
|
|
this.staticSel = false |
|
|
|
|
|
} |
|
|
|
|
|
if (type === 'static') { |
|
|
|
|
|
this.personSel = false |
|
|
|
|
|
this.houseSel = false |
|
|
|
|
|
this.staticSel = true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
addRule () { |
|
|
|
|
|
if (this.personSel) { |
|
|
|
|
|
this.addPerson() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.houseSel) { |
|
|
|
|
|
this.addHouse() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.staticSel) { |
|
|
|
|
|
this.addStatic() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
addPerson () { |
|
|
|
|
|
let obj = { |
|
|
|
|
|
ruleDesc: '',//规则描述文字,例如:基础信息性别等于女 |
|
|
|
|
|
nextLogicalRel: 'and',//与上一条的关系;and、or |
|
|
|
|
|
itemGroupId: '', |
|
|
|
|
|
itemId: '', |
|
|
|
|
|
queryType: '', |
|
|
|
|
|
colTable: '', |
|
|
|
|
|
colKey: '', |
|
|
|
|
|
colVal: '', |
|
|
|
|
|
|
|
|
|
|
|
itemList: [], |
|
|
|
|
|
colType: '',//详细参数的组件类型 |
|
|
|
|
|
colOption: [], |
|
|
|
|
|
itemGroupName: '', |
|
|
|
|
|
itemLabel: '', |
|
|
|
|
|
queryTypeName: '', |
|
|
|
|
|
colValLabel: '', |
|
|
|
|
|
nextLogicalRelName: '', |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.resiRuleList.push(obj) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
delPerson (index) { |
|
|
|
|
|
this.resiRuleList.splice(index, 1); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
addHouse () { |
|
|
|
|
|
let obj = { |
|
|
|
|
|
ruleDesc: '', |
|
|
|
|
|
nextLogicalRel: 'and',//与上一条的关系;and、or |
|
|
|
|
|
queryType: '', |
|
|
|
|
|
colTable: '', |
|
|
|
|
|
colKey: '', |
|
|
|
|
|
colVal: '', |
|
|
|
|
|
|
|
|
|
|
|
titleName: '房屋信息', |
|
|
|
|
|
colType: '',//详细参数的组件类型 |
|
|
|
|
|
colOption: [], |
|
|
|
|
|
itemGroupName: '房屋信息', |
|
|
|
|
|
itemLabel: '', |
|
|
|
|
|
queryTypeName: '', |
|
|
|
|
|
colValLabel: '', |
|
|
|
|
|
nextLogicalRelName: '', |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.houseRuleList.push(obj) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
delHouse (index) { |
|
|
|
|
|
this.houseRuleList.splice(index, 1); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
addStatic () { |
|
|
|
|
|
let obj = { |
|
|
|
|
|
ruleDesc: '', |
|
|
|
|
|
nextLogicalRel: 'and',//与上一条的关系;and、or |
|
|
|
|
|
queryType: '', |
|
|
|
|
|
colTable: '', |
|
|
|
|
|
colKey: '', |
|
|
|
|
|
colVal: '', |
|
|
|
|
|
|
|
|
|
|
|
titleName: '统计信息', |
|
|
|
|
|
colType: '',//详细参数的组件类型 |
|
|
|
|
|
colOption: [], |
|
|
|
|
|
itemGroupName: '统计信息', |
|
|
|
|
|
itemLabel: '', |
|
|
|
|
|
queryTypeName: '', |
|
|
|
|
|
colValLabel: '', |
|
|
|
|
|
nextLogicalRelName: '', |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.statRuleList.push(obj) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
delStatic (index) { |
|
|
|
|
|
this.statRuleList.splice(index, 1); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 获取人员信息---第一列 |
|
|
// 获取人员信息---第一列 |
|
|
async loadPersonGroup () { |
|
|
async loadPersonGroup () { |
|
|
const url = '/oper/customize/icformitemgroup/list' |
|
|
const url = '/oper/customize/icformitemgroup/list' |
|
|
@ -962,6 +1137,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
props: { |
|
|
props: { |
|
|
|
|
|
|
|
|
|
|
|
formType: { |
|
|
|
|
|
type: String, |
|
|
|
|
|
required: 'true' |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -996,4 +1175,11 @@ export default { |
|
|
/deep/.el-checkbox:last-of-type { |
|
|
/deep/.el-checkbox:last-of-type { |
|
|
margin-right: 10px; |
|
|
margin-right: 10px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.img_del { |
|
|
|
|
|
width: 25px; |
|
|
|
|
|
height: 25px; |
|
|
|
|
|
margin-top: 6px; |
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|