|
|
@ -5,14 +5,20 @@ |
|
|
|
<el-form ref="searchForm" :inline="true" :model="searchForm" size="small" label-width="100px" class="demo-form-inline"> |
|
|
|
<div> |
|
|
|
<el-form-item label="所属党组织" prop="partyOrgId"> |
|
|
|
<el-select v-model="searchForm.partyOrgId" filterable placeholder="请选择" clearable> |
|
|
|
<!-- <el-select v-model="searchForm.partyOrgId" filterable placeholder="请选择" clearable> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsG" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-option> --> |
|
|
|
</el-select> |
|
|
|
<el-cascader |
|
|
|
v-model="searchForm.partyOrgId" |
|
|
|
:options="optionsG" |
|
|
|
:props="partyProps" |
|
|
|
clearable |
|
|
|
@change="handlePartyChange"></el-cascader> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="姓名" prop="name"> |
|
|
|
<el-input v-model="searchForm.name" placeholder="请输入" class="input-width" clearable></el-input> |
|
|
@ -30,12 +36,8 @@ |
|
|
|
<div> |
|
|
|
<el-form-item label="流动党员" prop="isLd"> |
|
|
|
<el-select v-model="searchForm.isLd" filterable placeholder="请选择" clearable> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsC" |
|
|
|
:key="item.categoryId" |
|
|
|
:label="item.categoryName" |
|
|
|
:value="item.categoryId"> |
|
|
|
</el-option> |
|
|
|
<el-option label="是" value="1" /> |
|
|
|
<el-option label="否" value="0" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="流动党员证号" prop="ldzh"> |
|
|
@ -44,42 +46,30 @@ |
|
|
|
<el-form-item label="职务" prop="partyZw"> |
|
|
|
<el-select v-model="searchForm.partyZw" filterable placeholder="请选择" clearable> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsC" |
|
|
|
:key="item.categoryId" |
|
|
|
:label="item.categoryName" |
|
|
|
:value="item.categoryId"> |
|
|
|
v-for="item in zwList" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="是否缴费" prop="isPay"> |
|
|
|
<el-select v-model="searchForm.isPay" filterable placeholder="请选择" clearable> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsC" |
|
|
|
:key="item.categoryId" |
|
|
|
:label="item.categoryName" |
|
|
|
:value="item.categoryId"> |
|
|
|
</el-option> |
|
|
|
<el-option label="是" value="1" /> |
|
|
|
<el-option label="否" value="0" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="党员中心户" prop="isDyzxh"> |
|
|
|
<el-select v-model="searchForm.isDyzxh" filterable placeholder="请选择" clearable> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsC" |
|
|
|
:key="item.categoryId" |
|
|
|
:label="item.categoryName" |
|
|
|
:value="item.categoryId"> |
|
|
|
</el-option> |
|
|
|
<el-option label="是" value="1" /> |
|
|
|
<el-option label="否" value="0" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
<el-form-item label="免学习" prop="isMxx"> |
|
|
|
<el-select v-model="searchForm.isMxx" filterable placeholder="请选择" clearable> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsC" |
|
|
|
:key="item.categoryId" |
|
|
|
:label="item.categoryName" |
|
|
|
:value="item.categoryId"> |
|
|
|
</el-option> |
|
|
|
<el-option label="是" value="1" /> |
|
|
|
<el-option label="否" value="0" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="最近一次缴费时间" |
|
|
@ -304,7 +294,7 @@ |
|
|
|
:close-on-click-modal="false" |
|
|
|
:before-close="handlerCancle" |
|
|
|
> |
|
|
|
<crate-form /> |
|
|
|
<crate-form :partyList="optionsG" /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
</div> |
|
|
@ -353,6 +343,24 @@ export default { |
|
|
|
value: 2 |
|
|
|
} |
|
|
|
], |
|
|
|
zwList: [ |
|
|
|
{ |
|
|
|
label: '普通党员', |
|
|
|
value: '0' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '支部书记', |
|
|
|
value: '1' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '支部委员', |
|
|
|
value: '2' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '党委委员', |
|
|
|
value: '3' |
|
|
|
}, |
|
|
|
], |
|
|
|
demandOptions: [], |
|
|
|
tableHeader: [ |
|
|
|
{ |
|
|
@ -401,6 +409,10 @@ export default { |
|
|
|
rdsjEndDate: '', |
|
|
|
payStatrDate: '', |
|
|
|
payEndDate: '' |
|
|
|
}, |
|
|
|
partyProps: { |
|
|
|
label: 'partyOrgName', |
|
|
|
value: 'partyOrgCode' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -422,7 +434,7 @@ export default { |
|
|
|
// this.getCateList('addorupdate') |
|
|
|
// }, 200) |
|
|
|
this.getTableData() |
|
|
|
// this.getGridList('query') |
|
|
|
this.getGridList('query') |
|
|
|
// this.getGridList('addorupdate') |
|
|
|
// this.getCateList('query') |
|
|
|
// this.getCateList('addorupdate') |
|
|
@ -450,6 +462,9 @@ export default { |
|
|
|
this.currentPage = val |
|
|
|
this.getTableData() |
|
|
|
}, |
|
|
|
handlePartyChange(val) { |
|
|
|
console.log('val------pp', val) |
|
|
|
}, |
|
|
|
handleFilterSpan(row, item) { |
|
|
|
let _val = '' |
|
|
|
if (item.options && item.options.length > 0) { |
|
|
@ -772,21 +787,30 @@ export default { |
|
|
|
console.log('user---ppp', user) |
|
|
|
// addorupdate query |
|
|
|
await this.$http |
|
|
|
.post('/gov/org/customergrid/gridoption', { agencyId: agencyId || user.agencyId, purpose: type }) |
|
|
|
.get('/resi/partymember/icPartyOrg/getTreelist', { agencyId: agencyId || user.agencyId, }) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|
console.log('获取查询详情成功', res.data) |
|
|
|
|
|
|
|
if (type === 'query') this.optionsG = res.data |
|
|
|
else this.optionsEditG = res.data |
|
|
|
this.optionsG = this.deepArrTOnull(res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
deepArrTOnull(arr) { |
|
|
|
let a = [] |
|
|
|
a = arr.map(item => { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
children: (item.children.length > 0 && this.deepArrTOnull(item.children) )|| null |
|
|
|
} |
|
|
|
}) |
|
|
|
return a |
|
|
|
}, |
|
|
|
async getCateList(type) { |
|
|
|
const { user } = await this.$store.state |
|
|
|
console.log('user---ppp', user) |
|
|
|