无等级网格版合并

This commit is contained in:
aixianling
2022-06-13 09:39:19 +08:00
parent 0736ea98d0
commit 2a4d9b2b1c
67 changed files with 1490 additions and 16970 deletions

View File

@@ -83,7 +83,6 @@ export default {
props: {
instance: Function,
dict: Object,
params: Object
},
data() {
@@ -94,9 +93,7 @@ export default {
name: '',
girdId: ''
},
isLoading: false,
form: {},
userList: [],
name: '',
chooseUser: [],
isShow: false,
@@ -129,13 +126,12 @@ export default {
this.dict.load('epidemicDangerousAreaLevel').then(() => {
this.getGirdList()
this.getList()
this.getUserList()
})
},
methods: {
getGirdList() {
this.instance.post(`/app/appgirdmemberinfo/queryMyGirdListByLevel2?girdMemberId=${this.params.id}`).then(res => {
this.instance.post(`/app/appgirdmemberinfo/queryMyGirdListByLevel2?girdMemberId=${this.$route.query.id}`).then(res => {
if (res.code == 0) {
this.girdList = res.data
}
@@ -149,7 +145,7 @@ export default {
this.instance.post(`/app/appgirdmemberpoverty/listByGirdMemberByWeb`, null, {
params: {
...this.search,
girdMemberId: this.params.id,
girdMemberId: this.$route.query.id,
}
}).then(res => {
if (res.code == 0) {
@@ -168,11 +164,6 @@ export default {
handleSelectionChange(e) {
this.ids = e.map(v => v.gmpId)
},
clearAll() {
this.chooseUser = []
},
onConfirm() {
if (!this.girdId) {
return this.$message.error('请选择网格')
@@ -184,7 +175,7 @@ export default {
const povertyList = this.chooseUser.map(v => {
return {
girdMemberId: this.params.id,
girdMemberId: this.$route.query.id,
name: v.split('~')[0],
girdId: this.girdId,
povertyId: v.split('~')[1]
@@ -207,38 +198,12 @@ export default {
this.girdId = ''
this.name = ''
this.areaId = this.user.info.areaId
this.getUserList()
},
del(e) {
this.chooseUser.splice(this.chooseUser.indexOf(e), 1)
},
getUserList() {
this.isLoading = true
this.instance.post(`/app/apppreventionreturntopoverty/list`, null, {
params: {
current: 1,
size: 200,
con: this.name,
isHousehold: 1,
areaId: this.areaId
}
}).then(res => {
if (res.code == 0) {
this.userList = res.data.records
}
this.isLoading = false
})
},
onBack() {
this.$emit('change', {
type: 'list'
})
},
remove(ids) {
this.$confirm('确定删除该数据?').then(() => {
this.instance.post(`/app/appgirdmemberpoverty/delete`, null, {