|
@ -3,6 +3,15 @@ |
|
|
<div class="mod-rent__rentDeath} resi-container"> |
|
|
<div class="mod-rent__rentDeath} resi-container"> |
|
|
<el-card ref="searchCard" class="search-card"> |
|
|
<el-card ref="searchCard" class="search-card"> |
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> |
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> |
|
|
|
|
|
<el-form-item prop="mySelectOrg" label="所属党组织"> |
|
|
|
|
|
<el-cascader |
|
|
|
|
|
v-model="mySelectOrg" |
|
|
|
|
|
:options="orgList" |
|
|
|
|
|
placeholder="请选择党组织" |
|
|
|
|
|
:props="{ checkStrictly: true, label: 'partyOrgName', value: 'id', children: 'children' }" |
|
|
|
|
|
@change="handleChangeOrg" |
|
|
|
|
|
clearable /> |
|
|
|
|
|
</el-form-item> |
|
|
<el-form-item label="姓名" |
|
|
<el-form-item label="姓名" |
|
|
prop="name"> |
|
|
prop="name"> |
|
|
<el-input v-model="dataForm.name" |
|
|
<el-input v-model="dataForm.name" |
|
@ -121,7 +130,8 @@ |
|
|
idCard: '', |
|
|
idCard: '', |
|
|
mobile: '', |
|
|
mobile: '', |
|
|
year: '', |
|
|
year: '', |
|
|
month: '' |
|
|
month: '', |
|
|
|
|
|
orgId: '' |
|
|
}, |
|
|
}, |
|
|
monthArr: [ |
|
|
monthArr: [ |
|
|
{ dictValue: '01', dictName: '一月' }, |
|
|
{ dictValue: '01', dictName: '一月' }, |
|
@ -136,18 +146,24 @@ |
|
|
{ dictValue: '10', dictName: '十月' }, |
|
|
{ dictValue: '10', dictName: '十月' }, |
|
|
{ dictValue: '11', dictName: '十一月' }, |
|
|
{ dictValue: '11', dictName: '十一月' }, |
|
|
{ dictValue: '12', dictName: '十二月' } |
|
|
{ dictValue: '12', dictName: '十二月' } |
|
|
] |
|
|
], |
|
|
|
|
|
mySelectOrg: '', |
|
|
|
|
|
orgList: [], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components: { |
|
|
components: { |
|
|
AddOrUpdate |
|
|
AddOrUpdate |
|
|
}, |
|
|
}, |
|
|
|
|
|
created() { |
|
|
|
|
|
this.getOrgList() |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
resetForm(formName) { |
|
|
resetForm(formName) { |
|
|
for(const n in this.dataForm) { |
|
|
for(const n in this.dataForm) { |
|
|
this.dataForm[n] = '' |
|
|
this.dataForm[n] = '' |
|
|
} |
|
|
} |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
|
|
|
this.mySelectOrg = '' |
|
|
}, |
|
|
}, |
|
|
yearChangeHandler(){ |
|
|
yearChangeHandler(){ |
|
|
if(this.dataForm.year === '' || this.dataForm.year === null){ |
|
|
if(this.dataForm.year === '' || this.dataForm.year === null){ |
|
@ -164,6 +180,23 @@ |
|
|
this.currentPage = val |
|
|
this.currentPage = val |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 获取党组织列表 |
|
|
|
|
|
getOrgList() { |
|
|
|
|
|
return this.$http.get('/resi/partymember/icPartyOrg/getTreelist', {params: {agencyId: localStorage.getItem('agencyId')}}).then(({data: res}) => { |
|
|
|
|
|
if (res.code !== 0) { |
|
|
|
|
|
return this.$message.error(res.msg) |
|
|
|
|
|
} |
|
|
|
|
|
this.orgList = res.data |
|
|
|
|
|
}).catch(() => {}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 党组织选中事件 |
|
|
|
|
|
handleChangeOrg(e) { |
|
|
|
|
|
if (this.mySelectOrg.length > 0 && this.mySelectOrg) { |
|
|
|
|
|
this.dataForm.orgId = this.mySelectOrg[this.mySelectOrg.length - 1] |
|
|
|
|
|
} else { |
|
|
|
|
|
this.dataForm.orgId = '' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|