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 {
name: "AppGridMemberJp",
label: "网格管理员",
label: "网格管理员(防返贫)",
props: {
instance: Function,

View File

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