BUG 29286

This commit is contained in:
aixianling
2022-04-28 09:41:21 +08:00
parent 731389d4a2
commit 7bc5f87471
2 changed files with 385 additions and 382 deletions

View File

@@ -29,7 +29,7 @@
export default { export default {
name: "AppGridMemberJp", name: "AppGridMemberJp",
label: "网格管理员", label: "网格管理员(防返贫)",
props: { props: {
instance: Function, instance: Function,

View File

@@ -8,7 +8,8 @@
<template #left> <template #left>
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="isShow = true">添加</el-button> <el-button size="small" type="primary" icon="iconfont iconAdd" @click="isShow = true">添加</el-button>
<el-button size="small" :disabled="!ids.length" icon="iconfont iconDelete" @click="removeAll">批量删除</el-button> <el-button size="small" :disabled="!ids.length" icon="iconfont iconDelete" @click="removeAll">批量删除</el-button>
<el-select size="small" style="width: 200px;" v-model="search.girdId" placeholder="所属网格" clearable @change="getListInit()"> <el-select size="small" style="width: 200px;" v-model="search.girdId" placeholder="所属网格" clearable
@change="getListInit()">
<el-option <el-option
v-for="(item,i) in girdList" v-for="(item,i) in girdList"
:key="i" :key="i"
@@ -54,7 +55,8 @@
@close="closeDialog" @close="closeDialog"
title="添加户主" title="添加户主"
@onConfirm="onConfirm"> @onConfirm="onConfirm">
<ai-area-select clearable always-show :instance="instance" v-model="areaId" :disabled-level="disabledLevel" @change="search.current = 1, getUserList()"></ai-area-select> <ai-area-select clearable always-show :instance="instance" v-model="areaId" :disabled-level="disabledLevel"
@change="search.current = 1, getUserList()"></ai-area-select>
<span style="margin-top:16px;"><span style="color:#f46;margin-right:4px;">*</span>网格</span> <span style="margin-top:16px;"><span style="color:#f46;margin-right:4px;">*</span>网格</span>
<el-select size="small" style="width: 280px;margin-top:16px;" v-model="girdId" placeholder="请选择网格" clearable> <el-select size="small" style="width: 280px;margin-top:16px;" v-model="girdId" placeholder="请选择网格" clearable>
<el-option <el-option
@@ -120,8 +122,9 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex' import {mapState} from 'vuex'
export default {
export default {
name: 'Family', name: 'Family',
props: { props: {
@@ -139,22 +142,20 @@
girdId: '' girdId: ''
}, },
isLoading: false, isLoading: false,
form: { form: {},
},
userList: [], userList: [],
name: '', name: '',
chooseUser: [], chooseUser: [],
isShow: false, isShow: false,
total: 10, total: 10,
colConfigs: [ colConfigs: [
{ type: 'selection', label: '' }, {type: 'selection', label: ''},
{ prop: 'name', label: '户主姓名', align: 'left', width: '200px' }, {prop: 'name', label: '户主姓名', align: 'left', width: '200px'},
{ prop: 'idNumber', label: '身份证号', align: 'center' }, {prop: 'idNumber', label: '身份证号', align: 'center'},
{ prop: 'phone', label: '联系方式', align: 'center' }, {prop: 'phone', label: '联系方式', align: 'center'},
{ prop: 'girdName', label: '所属网格', align: 'center' }, {prop: 'girdName', label: '所属网格', align: 'center'},
{ prop: 'createTime', label: '添加时间', align: 'center' }, {prop: 'createTime', label: '添加时间', align: 'center'},
{ slot: 'options', label: '操作', align: 'center' } {slot: 'options', label: '操作', align: 'center'}
], ],
tableData: [], tableData: [],
areaId: '', areaId: '',
@@ -191,7 +192,7 @@
this.search.current = 1 this.search.current = 1
this.getList() this.getList()
}, },
getList () { getList() {
this.instance.post(`/app/appgirdmemberpoverty/listByGirdMemberByWeb`, null, { this.instance.post(`/app/appgirdmemberpoverty/listByGirdMemberByWeb`, null, {
params: { params: {
...this.search, ...this.search,
@@ -212,15 +213,15 @@
this.remove(this.ids.join(',')) this.remove(this.ids.join(','))
}, },
handleSelectionChange(e) { handleSelectionChange(e) {
this.ids = e.map(v => v.gmrId) this.ids = e.map(v => v.gmpId)
}, },
clearAll () { clearAll() {
this.chooseUser = [] this.chooseUser = []
}, },
onConfirm () { onConfirm() {
if(!this.girdId) { if (!this.girdId) {
return this.$message.error('请选择网格') return this.$message.error('请选择网格')
} }
@@ -256,11 +257,11 @@
this.getUserList() this.getUserList()
}, },
del (e) { del(e) {
this.chooseUser.splice(this.chooseUser.indexOf(e), 1) this.chooseUser.splice(this.chooseUser.indexOf(e), 1)
}, },
getUserList () { getUserList() {
this.isLoading = true this.isLoading = true
this.instance.post(`/app/apppreventionreturntopoverty/list`, null, { this.instance.post(`/app/apppreventionreturntopoverty/list`, null, {
params: { params: {
@@ -279,7 +280,7 @@
}) })
}, },
onBack () { onBack() {
this.$emit('change', { this.$emit('change', {
type: 'list' type: 'list'
}) })
@@ -296,11 +297,11 @@
}) })
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.Family { .Family {
.AiWechatSelecter-container { .AiWechatSelecter-container {
display: flex; display: flex;
height: 380px; height: 380px;
@@ -308,7 +309,7 @@
::v-deep { ::v-deep {
.el-icon-circle-close { .el-icon-circle-close {
display: inline-block!important; display: inline-block !important;
} }
} }
@@ -327,6 +328,7 @@
margin-bottom: 0; margin-bottom: 0;
} }
} }
img { img {
width: 27px; width: 27px;
height: 27px; height: 27px;
@@ -410,7 +412,7 @@
padding: 8px 0; padding: 8px 0;
::v-deep .el-scrollbar__wrap { ::v-deep .el-scrollbar__wrap {
margin-bottom: 0!important; margin-bottom: 0 !important;
overflow-x: hidden; overflow-x: hidden;
} }
@@ -436,6 +438,7 @@
.tags-wrapper { .tags-wrapper {
padding: 0 8px; padding: 0 8px;
} }
.el-tag { .el-tag {
margin: 0 8px 8px 0px; margin: 0 8px 8px 0px;
color: #222222; color: #222222;
@@ -494,5 +497,5 @@
} }
} }
} }
} }
</style> </style>