网格基础设置调整

This commit is contained in:
aixianling
2022-06-01 09:57:15 +08:00
parent e71d1fcf12
commit 49aa0a6276
5 changed files with 85 additions and 200 deletions

View File

@@ -50,7 +50,7 @@
</ai-table>
<ai-dialog
:visible.sync="dialog"
width="890px"
width="1100px"
@close="closeDialog"
title="添加户主"
@onConfirm="onConfirm">
@@ -94,8 +94,6 @@ export default {
},
isLoading: false,
form: {},
userList: [],
name: '',
chooseUser: [],
dialog: false,
total: 10,
@@ -127,7 +125,6 @@ export default {
this.dict.load('epidemicDangerousAreaLevel').then(() => {
this.getGirdList()
this.getList()
this.getUserList()
})
},
@@ -167,11 +164,6 @@ export default {
handleSelectionChange(e) {
this.ids = e.map(v => v.gmrId)
},
clearAll() {
this.chooseUser = []
},
onConfirm() {
if (!this.girdId) {
return this.$message.error('请选择网格')
@@ -196,42 +188,18 @@ export default {
this.current = 1
this.getList()
this.$message.success('添加成功')
this.closeDialog()
this.dialog = false
}
})
},
closeDialog() {
this.dialog = false
this.chooseUser = []
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/appresident/list`, null, {
params: {
current: 1,
size: 200,
con: this.name,
householdName: 1,
areaId: this.areaId,
}
}).then(res => {
if (res.code == 0) {
this.userList = res.data.records
}
this.isLoading = false
})
},
onBack() {
this.$emit('change', {
type: 'list'