You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
319 lines
11 KiB
319 lines
11 KiB
<template>
|
|
<el-card shadow="never"
|
|
class="aui-card--fill">
|
|
<div class="mod-epdc__user}">
|
|
<el-form :inline="true"
|
|
:model="dataForm"
|
|
@keyup.enter.native="getDataList()">
|
|
<el-form-item label="所属机构">
|
|
<el-cascader v-model="deptIdList"
|
|
:options="options"
|
|
:props="{ checkStrictly: true }"
|
|
clearable>
|
|
</el-cascader>
|
|
</el-form-item>
|
|
<el-form-item label="街道"
|
|
v-if="false">
|
|
<el-select v-model="dataForm.streetId"
|
|
clearable
|
|
placeholder="请选择"
|
|
@change="getCommunityList">
|
|
<el-option v-for="(item,index) in streetOptions"
|
|
:key="index"
|
|
:label="item.name"
|
|
:value="item.id"></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="社区"
|
|
v-if="false">
|
|
<el-select v-model="dataForm.communityId"
|
|
clearable
|
|
placeholder="请选择"
|
|
@change="getGridList">
|
|
<el-option v-for="(item,index) in communityOptions"
|
|
:key="index"
|
|
:label="item.name"
|
|
:value="item.id"></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="网格"
|
|
v-if="false">
|
|
<el-select v-model="dataForm.gridId"
|
|
clearable
|
|
placeholder="请选择">
|
|
<el-option v-for="(item,index) in gridOptions"
|
|
:key="index"
|
|
:label="item.name"
|
|
:value="item.id"></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="姓名">
|
|
<el-input v-model="dataForm.realName"
|
|
placeholder="请输入"
|
|
clearable></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="手机号">
|
|
<el-input v-model="dataForm.mobile"
|
|
placeholder="请输入"
|
|
clearable></el-input>
|
|
</el-form-item>
|
|
<!-- <div class="block"> -->
|
|
<span class="demonstration">注册时间</span>
|
|
<el-date-picker @change='setRegistTime'
|
|
v-model="time"
|
|
value-format="yyyy-MM-dd"
|
|
type="daterange"
|
|
range-separator="至"
|
|
start-placeholder="开始日期"
|
|
end-placeholder="结束日期"></el-date-picker>
|
|
<el-form-item>
|
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-button v-if="$hasPermission('epdc:user:export')"
|
|
type="primary"
|
|
@click="exportHandle()">{{ $t('export') }}</el-button>
|
|
</el-form-item>
|
|
<!-- </div> -->
|
|
</el-form>
|
|
<el-table v-loading="dataListLoading"
|
|
:data="dataList"
|
|
border
|
|
@selection-change="dataListSelectionChangeHandle"
|
|
style="width: 100%;">
|
|
<el-table-column label="序号"
|
|
width="50px"><template slot-scope="scope">{{scope.$index+1}}</template></el-table-column>
|
|
<el-table-column prop="realName"
|
|
label="姓名"
|
|
header-align="center"
|
|
align="center"></el-table-column>
|
|
<el-table-column prop="mobile"
|
|
label="手机号"
|
|
width="110"
|
|
header-align="center"
|
|
align="center"></el-table-column>
|
|
<el-table-column prop="identityNo"
|
|
label="身份证号"
|
|
width="180"
|
|
header-align="center"
|
|
align="center"></el-table-column>
|
|
<el-table-column prop="allDeptNames"
|
|
label="认证网格"
|
|
min-width="200"
|
|
show-overflow-tooltip
|
|
header-align="center"
|
|
align="left"></el-table-column>
|
|
<el-table-column prop="address"
|
|
label="居住地址"
|
|
min-width="180"
|
|
show-overflow-tooltip
|
|
header-align="center"
|
|
align="left"></el-table-column>
|
|
<el-table-column prop="updatedTime"
|
|
label="提交时间"
|
|
width="160"
|
|
header-align="center"
|
|
align="center"></el-table-column>
|
|
<el-table-column :label="$t('handle')"
|
|
fixed="right"
|
|
header-align="center"
|
|
align="center"
|
|
width="150">
|
|
<template slot-scope="scope">
|
|
<el-button type="text"
|
|
size="small"
|
|
@click="partyReview(scope.row.id)">手动审核</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<el-pagination :current-page="page"
|
|
:page-sizes="[10, 20, 50, 100]"
|
|
:page-size="limit"
|
|
:total="total"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
@size-change="pageSizeChangeHandle"
|
|
@current-change="pageCurrentChangeHandle"></el-pagination>
|
|
<!-- 党员认证 -->
|
|
<party-review v-if="partyReviewVisible"
|
|
@firstDialogCallBack="firstDialogCallBack"
|
|
ref="partyReview"
|
|
@refreshDataList="getDataList"></party-review>
|
|
</div>
|
|
</el-card>
|
|
</template>
|
|
|
|
<script>
|
|
import mixinViewModule from '@/mixins/view-module'
|
|
import PartyReview from './party-review'
|
|
export default {
|
|
mixins: [mixinViewModule],
|
|
data () {
|
|
return {
|
|
mixinViewModuleOptions: {
|
|
getDataListURL: 'app-user/user/waitPartyPage',
|
|
getDataListIsPage: true,
|
|
deleteURL: '/app-use/user',
|
|
deleteIsBatch: true,
|
|
exportURL: '/app-user/user/exportWaitParty'
|
|
},
|
|
dataForm: {
|
|
id: '',
|
|
streetId: '',
|
|
communityId: '',
|
|
gridId: '',
|
|
realName: '',
|
|
mobile: '',
|
|
identityNo: '',
|
|
startTime: '',
|
|
endTime: '',
|
|
partyFlag: '0', // 是否是党员(0-否,1-是)
|
|
state: '1'
|
|
},
|
|
deptIdList: [],
|
|
options: [],
|
|
partyReviewVisible: false,
|
|
streetOptions: [],
|
|
communityOptions: [],
|
|
gridOptions: [],
|
|
time: '',
|
|
tabFlag: '1', // 对应原来的待审核用户
|
|
state: '未认证用户',
|
|
partyFlagOptions: [{ id: '1', name: '是' }, { id: '0', name: '否' }]
|
|
}
|
|
},
|
|
created () {
|
|
this.$http
|
|
.get(`/sys/user/deptOptions/getByLoginUser`)
|
|
.then(({ data: res }) => {
|
|
if (res.code !== 0) {
|
|
return this.$message.error(res.msg)
|
|
}
|
|
this.options = res.data.options
|
|
})
|
|
.catch(() => { })
|
|
},
|
|
watch: {
|
|
'deptIdList': function (val) {
|
|
if (val.length === 0) {
|
|
this.dataForm.streetId = ''
|
|
this.dataForm.communityId = ''
|
|
this.dataForm.gridId = ''
|
|
}
|
|
if (val.length === 1) {
|
|
this.dataForm.streetId = this.deptIdList[0]
|
|
this.dataForm.communityId = ''
|
|
this.dataForm.gridId = ''
|
|
}
|
|
if (val.length === 2) {
|
|
this.dataForm.streetId = this.deptIdList[0]
|
|
this.dataForm.communityId = this.deptIdList[1]
|
|
this.dataForm.gridId = ''
|
|
}
|
|
if (val.length === 3) {
|
|
this.dataForm.streetId = this.deptIdList[0]
|
|
this.dataForm.communityId = this.deptIdList[1]
|
|
this.dataForm.gridId = this.deptIdList[2]
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
getStreetList () {
|
|
this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => {
|
|
if (res.code !== 0) {
|
|
return this.$message.error(res.msg)
|
|
}
|
|
this.streetOptions = res.data
|
|
}).catch(() => { })
|
|
},
|
|
getCommunityList () {
|
|
this.communityOptions = this.gridOptions = []
|
|
this.dataForm.communityId = this.dataForm.gridId = null
|
|
if (this.dataForm.streetId) {
|
|
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => {
|
|
if (res.code !== 0) {
|
|
return this.$message.error(res.msg)
|
|
}
|
|
this.communityOptions = res.data
|
|
}).catch(() => { })
|
|
}
|
|
},
|
|
getGridList () {
|
|
this.gridOptions = []
|
|
this.dataForm.gridId = null
|
|
if (this.dataForm.communityId) {
|
|
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => {
|
|
if (res.code !== 0) {
|
|
return this.$message.error(res.msg)
|
|
}
|
|
this.gridOptions = res.data
|
|
}).catch(() => { })
|
|
}
|
|
},
|
|
setRegistTime () {
|
|
this.dataForm.startTime = this.time[0]
|
|
this.dataForm.endTime = this.time[1]
|
|
},
|
|
formatState: function (row, column) {
|
|
let state = row.state
|
|
if (state === '1') {
|
|
return '待审核'
|
|
} else if (state === '2') {
|
|
return '审核不通过'
|
|
} else if (state === '3') {
|
|
return '审核通过'
|
|
} else if (state === '0') {
|
|
return '已注册'
|
|
}
|
|
},
|
|
formatPartyFlag: function (row, column) {
|
|
return row.partyFlag === '1' ? '是' : row.state === '0' ? '未知' : '否'
|
|
},
|
|
// 获取数据列表
|
|
getDataList () {
|
|
if (this.time === null) {
|
|
this.dataForm.startTime = ''
|
|
this.dataForm.endTime = ''
|
|
}
|
|
this.dataListLoading = true
|
|
this.$http.get(
|
|
this.mixinViewModuleOptions.getDataListURL,
|
|
{
|
|
params: {
|
|
order: this.order,
|
|
orderField: this.orderField,
|
|
page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null,
|
|
limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null,
|
|
...this.dataForm
|
|
}
|
|
}
|
|
).then(({ data: res }) => {
|
|
this.dataListLoading = false
|
|
if (res.code !== 0) {
|
|
this.dataList = []
|
|
this.total = 0
|
|
return this.$message.error(res.msg)
|
|
}
|
|
this.dataList = this.mixinViewModuleOptions.getDataListIsPage ? res.data.list : res.data
|
|
this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0
|
|
}).catch(() => {
|
|
this.dataListLoading = false
|
|
})
|
|
},
|
|
partyReview (userId) {
|
|
this.partyReviewVisible = true
|
|
this.$nextTick(() => {
|
|
this.$refs.partyReview.dataForm.id = userId
|
|
this.$refs.partyReview.init()
|
|
})
|
|
},
|
|
firstDialogCallBack (value) {
|
|
if (value) {
|
|
this.getDataList()
|
|
}
|
|
}
|
|
},
|
|
components: {
|
|
PartyReview
|
|
}
|
|
}
|
|
</script>
|
|
|