|
|
@ -1,12 +1,20 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="dialog-h-content scroll-h"> |
|
|
|
<div v-if="pageLoading" class="resi-container"> |
|
|
|
<el-card ref="searchCard" class="search-card"> |
|
|
|
<div v-if="pageLoading" |
|
|
|
class="resi-container"> |
|
|
|
<el-card ref="searchCard" |
|
|
|
class="search-card"> |
|
|
|
<div class=""> |
|
|
|
<el-form ref="searchForm" :inline="true" :model="searchForm" size="small" label-width="100px" class="demo-form-inline"> |
|
|
|
<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-form-item label="所属党组织" |
|
|
|
prop="partyOrgId"> |
|
|
|
<!-- <el-select v-model="searchForm.partyOrgId" filterable placeholder="请选择" clearable> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsG" |
|
|
@ -15,32 +23,50 @@ |
|
|
|
:value="item.value"> |
|
|
|
</el-option> --> |
|
|
|
<!-- </el-select> --> |
|
|
|
<el-cascader |
|
|
|
v-model="partyOrgRange" |
|
|
|
:options="optionsG" |
|
|
|
:props="partyProps" |
|
|
|
clearable |
|
|
|
@change="handlePartyChange"></el-cascader> |
|
|
|
<el-cascader v-model="partyOrgRange" |
|
|
|
: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> |
|
|
|
<el-form-item label="姓名" |
|
|
|
prop="name"> |
|
|
|
<el-input v-model="searchForm.name" |
|
|
|
placeholder="请输入" |
|
|
|
class="input-width" |
|
|
|
clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="手机号" prop="mobile"> |
|
|
|
<el-input v-model="searchForm.mobile" placeholder="请输入" class="input-width" clearable></el-input> |
|
|
|
<el-form-item label="手机号" |
|
|
|
prop="mobile"> |
|
|
|
<el-input v-model="searchForm.mobile" |
|
|
|
placeholder="请输入" |
|
|
|
class="input-width" |
|
|
|
clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="身份证" prop="idCard"> |
|
|
|
<el-input v-model="searchForm.idCard" placeholder="请输入" class="input-width" clearable></el-input> |
|
|
|
<el-form-item label="身份证" |
|
|
|
prop="idCard"> |
|
|
|
<el-input v-model="searchForm.idCard" |
|
|
|
placeholder="请输入" |
|
|
|
class="input-width" |
|
|
|
clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="地址" prop="address"> |
|
|
|
<el-input v-model="searchForm.address" placeholder="请输入" class="input-width" clearable></el-input> |
|
|
|
<el-form-item label="地址" |
|
|
|
prop="address"> |
|
|
|
<el-input v-model="searchForm.address" |
|
|
|
placeholder="请输入" |
|
|
|
class="input-width" |
|
|
|
clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="职务" prop="partyZw"> |
|
|
|
<el-select v-model="searchForm.partyZw" filterable placeholder="请选择" clearable> |
|
|
|
<el-option |
|
|
|
v-for="item in zwList" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
<el-form-item label="职务" |
|
|
|
prop="partyZw"> |
|
|
|
<el-select v-model="searchForm.partyZw" |
|
|
|
filterable |
|
|
|
placeholder="请选择" |
|
|
|
clearable> |
|
|
|
<el-option v-for="item in zwList" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
@ -55,22 +81,32 @@ |
|
|
|
<!-- <el-form-item label="流动党员证号" prop="ldzh"> |
|
|
|
<el-input v-model="searchForm.ldzh" placeholder="请输入" class="input-width" clearable></el-input> |
|
|
|
</el-form-item> --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-form-item label="是否缴费" prop="isPay"> |
|
|
|
<el-select v-model="searchForm.isPay" filterable placeholder="请选择" clearable> |
|
|
|
<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 label="是" value="1" /> |
|
|
|
<el-option label="否" value="0" /> |
|
|
|
<el-form-item label="党员中心户" |
|
|
|
prop="isDyzxh"> |
|
|
|
<el-select v-model="searchForm.isDyzxh" |
|
|
|
filterable |
|
|
|
placeholder="请选择" |
|
|
|
clearable> |
|
|
|
<el-option label="是" |
|
|
|
value="1" /> |
|
|
|
<el-option label="否" |
|
|
|
value="0" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="diy-button--search" size="small" @click="handleSearch">查询</el-button> |
|
|
|
<el-button class="diy-button--reset" size="small" @click="resetForm('searchForm')">重置</el-button> |
|
|
|
<el-button class="diy-button--search" |
|
|
|
size="small" |
|
|
|
@click="handleSearch">查询</el-button> |
|
|
|
<el-button class="diy-button--reset" |
|
|
|
size="small" |
|
|
|
@click="resetForm('searchForm')">重置</el-button> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
<!-- <el-form-item label="免学习" prop="isMxx"> |
|
|
@ -110,152 +146,123 @@ |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
<el-card class="resi-card-table"> |
|
|
|
<el-table |
|
|
|
:data="tableData" |
|
|
|
row-key="id" |
|
|
|
v-loading="tableLoading" |
|
|
|
border |
|
|
|
:height="tableHeight" |
|
|
|
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" |
|
|
|
style="width: 100%" |
|
|
|
class="resi-table" |
|
|
|
> |
|
|
|
<el-table-column label="序号" type="index" align="center" width="50"> |
|
|
|
<el-table :data="tableData" |
|
|
|
row-key="id" |
|
|
|
v-loading="tableLoading" |
|
|
|
border |
|
|
|
:height="tableHeight" |
|
|
|
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" |
|
|
|
style="width: 100%" |
|
|
|
class="resi-table"> |
|
|
|
<el-table-column label="序号" |
|
|
|
type="index" |
|
|
|
align="center" |
|
|
|
width="50"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="name" |
|
|
|
label="姓名" |
|
|
|
align="center" |
|
|
|
width="100" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="idCard" |
|
|
|
label="身份证号" |
|
|
|
align="center" |
|
|
|
min-width="180" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="mobile" |
|
|
|
label="手机号" |
|
|
|
align="center" |
|
|
|
min-width="160" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="rdsj" |
|
|
|
label="入党时间" |
|
|
|
align="center" |
|
|
|
min-width="160" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="sszb" |
|
|
|
label="所属党组织" |
|
|
|
align="center" |
|
|
|
min-width="160" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="ldzh" |
|
|
|
label="流动党员证号" |
|
|
|
align="center" |
|
|
|
min-width="160" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="partyZw" |
|
|
|
label="职务" |
|
|
|
align="center" |
|
|
|
width="100" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="address" |
|
|
|
label="地址" |
|
|
|
align="center" |
|
|
|
show-overflow-tooltip |
|
|
|
min-width="180" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="isPay" |
|
|
|
label="是否缴费" |
|
|
|
align="center" |
|
|
|
width="100" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="payDate" |
|
|
|
label="最近一次缴费时间" |
|
|
|
align="center" |
|
|
|
min-width="160" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="culture" |
|
|
|
label="文化程度" |
|
|
|
align="center" |
|
|
|
width="100" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="point" |
|
|
|
label="量化积分" |
|
|
|
align="center" |
|
|
|
width="100" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="activityPoint" |
|
|
|
label="活跃积分" |
|
|
|
align="center" |
|
|
|
width="100" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="volunteerCategory" |
|
|
|
label="志愿者类别" |
|
|
|
align="center" |
|
|
|
width="100" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="remark" |
|
|
|
label="备注" |
|
|
|
align="center" |
|
|
|
min-width="180" |
|
|
|
/> |
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
<el-table-column prop="name" |
|
|
|
label="姓名" |
|
|
|
align="center" |
|
|
|
width="100" /> |
|
|
|
<el-table-column prop="idCard" |
|
|
|
label="身份证号" |
|
|
|
align="center" |
|
|
|
min-width="180" /> |
|
|
|
<el-table-column prop="mobile" |
|
|
|
label="手机号" |
|
|
|
align="center" |
|
|
|
min-width="160" /> |
|
|
|
<el-table-column prop="rdsj" |
|
|
|
label="入党时间" |
|
|
|
align="center" |
|
|
|
min-width="160" /> |
|
|
|
<el-table-column prop="sszb" |
|
|
|
label="所属党组织" |
|
|
|
align="center" |
|
|
|
min-width="160" /> |
|
|
|
<el-table-column prop="ldzh" |
|
|
|
label="流动党员证号" |
|
|
|
align="center" |
|
|
|
min-width="160" /> |
|
|
|
<el-table-column prop="partyZw" |
|
|
|
label="职务" |
|
|
|
align="center" |
|
|
|
width="100" /> |
|
|
|
<el-table-column prop="address" |
|
|
|
label="地址" |
|
|
|
align="center" |
|
|
|
show-overflow-tooltip |
|
|
|
min-width="180" /> |
|
|
|
<el-table-column prop="isPay" |
|
|
|
label="是否缴费" |
|
|
|
align="center" |
|
|
|
width="100" /> |
|
|
|
<el-table-column prop="payDate" |
|
|
|
label="最近一次缴费时间" |
|
|
|
align="center" |
|
|
|
min-width="160" /> |
|
|
|
<el-table-column prop="culture" |
|
|
|
label="文化程度" |
|
|
|
align="center" |
|
|
|
width="100" /> |
|
|
|
<el-table-column prop="point" |
|
|
|
label="量化积分" |
|
|
|
align="center" |
|
|
|
width="100" /> |
|
|
|
<el-table-column prop="activityPoint" |
|
|
|
label="活跃积分" |
|
|
|
align="center" |
|
|
|
width="100" /> |
|
|
|
<el-table-column prop="volunteerCategory" |
|
|
|
label="志愿者类别" |
|
|
|
align="center" |
|
|
|
width="100" /> |
|
|
|
<el-table-column prop="remark" |
|
|
|
label="备注" |
|
|
|
align="center" |
|
|
|
min-width="180" /> |
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
<div class="div-content">{{ handleFilterSpan(scope.row, item) }}</div> |
|
|
|
</template> --> |
|
|
|
<!-- </el-table-column> --> |
|
|
|
<el-table-column fixed="right" label="操作" align="center" width="200"> |
|
|
|
<el-table-column fixed="right" |
|
|
|
label="操作" |
|
|
|
align="center" |
|
|
|
width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button |
|
|
|
@click="handleLook(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="btn-color-look" |
|
|
|
>查看</el-button |
|
|
|
> |
|
|
|
<el-button @click="handleLook(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="btn-color-look">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<div> |
|
|
|
<el-pagination |
|
|
|
@size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
:current-page.sync="currentPage" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="pageSize" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total" |
|
|
|
> |
|
|
|
<el-pagination @size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
:current-page.sync="currentPage" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="pageSize" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total"> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
<el-dialog |
|
|
|
title="党员信息" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
width="60%" |
|
|
|
top="5vh" |
|
|
|
class="dialog-h" |
|
|
|
append-to-body |
|
|
|
:close-on-click-modal="false" |
|
|
|
:before-close="handlerCancle" |
|
|
|
> |
|
|
|
<crate-form v-if="dialogVisible" :info="detailInfo" :partyList="optionsG" |
|
|
|
:disabled="disabled" |
|
|
|
@saveBase="handleSearch" @cancle="handlerCancle" /> |
|
|
|
<el-dialog title="党员信息" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
width="60%" |
|
|
|
top="5vh" |
|
|
|
class="dialog-h" |
|
|
|
append-to-body |
|
|
|
:close-on-click-modal="false" |
|
|
|
:before-close="handlerCancle"> |
|
|
|
|
|
|
|
<crate-form v-if="dialogVisible" |
|
|
|
:info="detailInfo" |
|
|
|
:partyList="optionsG" |
|
|
|
:disabled="disabled" |
|
|
|
@saveBase="handleSearch" |
|
|
|
@cancle="handlerCancle" /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
</div> |
|
|
@ -302,7 +309,7 @@ export default { |
|
|
|
{ |
|
|
|
label: '是', |
|
|
|
value: 1 |
|
|
|
},{ |
|
|
|
}, { |
|
|
|
label: '否', |
|
|
|
value: 2 |
|
|
|
} |
|
|
@ -380,7 +387,7 @@ export default { |
|
|
|
partyProps: { |
|
|
|
label: 'partyOrgName', |
|
|
|
value: 'id', |
|
|
|
checkStrictly: true |
|
|
|
checkStrictly: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -388,7 +395,7 @@ export default { |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapGetters(['clientHeight', 'iframeHeight']), |
|
|
|
tableHeight() { |
|
|
|
tableHeight () { |
|
|
|
const h = this.clientHeight - this.searchH - 490 + this.iframeHeigh |
|
|
|
const _h = this.clientHeight - 490 - this.searchH |
|
|
|
return this.$store.state.inIframe ? h : _h |
|
|
@ -416,21 +423,21 @@ export default { |
|
|
|
this.$emit('lookMemberCancle') |
|
|
|
}, |
|
|
|
|
|
|
|
handleSizeChange(val) { |
|
|
|
handleSizeChange (val) { |
|
|
|
console.log(`每页 ${val} 条`) |
|
|
|
this.pageSize = val |
|
|
|
this.getTableData() |
|
|
|
}, |
|
|
|
handleCurrentChange(val) { |
|
|
|
handleCurrentChange (val) { |
|
|
|
console.log(`当前页: ${val}`) |
|
|
|
this.currentPage = val |
|
|
|
this.getTableData() |
|
|
|
}, |
|
|
|
handlePartyChange(val) { |
|
|
|
handlePartyChange (val) { |
|
|
|
console.log('val------pp', val) |
|
|
|
this.searchForm.partyOrgId = val[val.length - 1] |
|
|
|
}, |
|
|
|
handleFilterSpan(row, item) { |
|
|
|
handleFilterSpan (row, item) { |
|
|
|
let _val = '' |
|
|
|
if (item.options && item.options.length > 0) { |
|
|
|
item.options.forEach((n) => { |
|
|
@ -459,7 +466,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
handleProgress(event, file, fileList) { |
|
|
|
handleProgress (event, file, fileList) { |
|
|
|
console.log('percentage', event, file.percentage) |
|
|
|
this.uploading = true |
|
|
|
this.unloadPencent = Number(file.percentage.toFixed(0)) |
|
|
@ -489,12 +496,12 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
handleSearch(val) { |
|
|
|
handleSearch (val) { |
|
|
|
console.log('searchhh--', val) |
|
|
|
this.currentPage = 1 |
|
|
|
this.getTableData() |
|
|
|
}, |
|
|
|
resetForm(formName) { |
|
|
|
resetForm (formName) { |
|
|
|
this.timeRangePay = [] |
|
|
|
this.timeRange = [] |
|
|
|
this.searchForm.payStatrDate = '' |
|
|
@ -507,18 +514,18 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handlerCancle() { |
|
|
|
handlerCancle () { |
|
|
|
this.detailInfo = {} |
|
|
|
this.disabled = false |
|
|
|
this.dialogVisible = false |
|
|
|
}, |
|
|
|
async handleLook(row) { |
|
|
|
async handleLook (row) { |
|
|
|
this.disabled = true |
|
|
|
await this.getDetail(row.id) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
async getDetail(id) { |
|
|
|
|
|
|
|
async getDetail (id) { |
|
|
|
let params = { |
|
|
|
id, |
|
|
|
} |
|
|
@ -537,16 +544,16 @@ export default { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
async getGridList(type, agencyId) { |
|
|
|
async getGridList (type, agencyId) { |
|
|
|
// addorupdate query |
|
|
|
await this.$http |
|
|
|
.get('/resi/partymember/icPartyOrg/getSearchTreelist', { params: {agencyId: agencyId} }) |
|
|
|
.get('/resi/partymember/icPartyOrg/getSearchTreelist', { params: { agencyId: agencyId } }) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|
console.log('获取查询详情成功', res.data) |
|
|
|
|
|
|
|
|
|
|
|
this.optionsG = this.deepArrTOnull(res.data) |
|
|
|
} |
|
|
|
}) |
|
|
@ -554,17 +561,17 @@ export default { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
deepArrTOnull(arr) { |
|
|
|
deepArrTOnull (arr) { |
|
|
|
let a = [] |
|
|
|
a = arr.map(item => { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
children: (item.children.length > 0 && this.deepArrTOnull(item.children) )|| null |
|
|
|
children: (item.children.length > 0 && this.deepArrTOnull(item.children)) || null |
|
|
|
} |
|
|
|
}) |
|
|
|
return a |
|
|
|
}, |
|
|
|
async getCateList(type) { |
|
|
|
async getCateList (type) { |
|
|
|
const params = { |
|
|
|
customerId: this.customerId, |
|
|
|
type |
|
|
@ -577,7 +584,7 @@ export default { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|
console.log('获取查询详情成功', res.data) |
|
|
|
|
|
|
|
|
|
|
|
if (type === 'query') this.optionsC = res.data |
|
|
|
else this.optionsEditC = res.data |
|
|
|
} |
|
|
@ -586,7 +593,7 @@ export default { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
async getTableData() { |
|
|
|
async getTableData () { |
|
|
|
this.tableLoading = true |
|
|
|
let params = { |
|
|
|
...this.searchForm, |
|
|
@ -616,10 +623,10 @@ export default { |
|
|
|
@import "@/assets/scss/modules/visual/communityManage.scss"; |
|
|
|
</style> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.div_btn{ |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
.div_btn { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|