清除多余代码

This commit is contained in:
yanran200730
2022-03-18 15:05:40 +08:00
parent e67e0fbb82
commit b9159b8e15
12 changed files with 143 additions and 150 deletions

View File

@@ -72,13 +72,10 @@
},
id: '',
regPhone,
areaList: []
}
},
created () {
this.getAreaList()
if (this.params && this.params.areaId && !this.params.id) {
this.form.areaId = this.params.areaId
this.form.areaName = this.params.areaName
@@ -99,19 +96,6 @@
})
},
getAreaList() {
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
if (res.code == 0) {
this.areaList = res.data.map(item => {
item.dictName = item.name
item.dictValue = item.id
return item
})
}
})
},
onClose () {
this.form.explain = ''
},

View File

@@ -120,7 +120,6 @@ export default {
label: 'name'
},
currIndex: -1,
areaList: [],
total: 10,
colConfigs: [
{prop: 'name', label: '名称', align: 'left'},
@@ -153,7 +152,6 @@ export default {
this.search.areaId = this.user.info.areaId
this.areaName = this.user.info.areaName
this.getTree()
this.getAreaList()
this.getList()
this.$nextTick(() => {
@@ -232,14 +230,6 @@ export default {
}
},
getAreaList() {
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
if (res.code == 0) {
this.areaList = res.data
}
})
},
remove(id) {
this.$confirm('确定删除该数据?').then(() => {
this.instance.post(`/app/appconvenientaddressbook/delete?ids=${id}`).then(res => {