清除多余代码
This commit is contained in:
		| @@ -106,13 +106,11 @@ | ||||
|           id: '' | ||||
|         }, | ||||
|         id: '', | ||||
|         tagsList: [], | ||||
|         areaList: [] | ||||
|         tagsList: [] | ||||
|       } | ||||
|     }, | ||||
|  | ||||
|     created () { | ||||
|       this.getAreaList() | ||||
|       this.getTags() | ||||
|  | ||||
|       if (this.params && this.params.departmentId && !this.params.id) { | ||||
| @@ -169,19 +167,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 = '' | ||||
|       }, | ||||
|   | ||||
| @@ -55,14 +55,11 @@ | ||||
|           codeUrl: [], | ||||
|           type: '', | ||||
|         }, | ||||
|         id: '', | ||||
|         areaList: [] | ||||
|         id: '' | ||||
|       } | ||||
|     }, | ||||
|  | ||||
|     created () { | ||||
|       this.getAreaList() | ||||
|  | ||||
|       if (this.params && this.params.areaId && !this.params.id) { | ||||
|         this.form.areaId = this.params.areaId | ||||
|         this.form.areaName = this.params.areaName | ||||
| @@ -86,19 +83,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 = '' | ||||
|       }, | ||||
|   | ||||
| @@ -106,7 +106,6 @@ | ||||
|           label: 'name' | ||||
|         }, | ||||
|         currIndex: -1, | ||||
|         areaList: [], | ||||
|         total: 10, | ||||
|         colConfigs: [ | ||||
|           {prop: 'codeName', label: '名称', align: 'left'}, | ||||
| @@ -141,7 +140,6 @@ | ||||
|       this.search.areaId = this.user.info.areaId | ||||
|       this.areaName = this.user.info.areaName | ||||
|       this.getTree() | ||||
|       this.getAreaList() | ||||
|       this.getList() | ||||
|  | ||||
|       this.$nextTick(() => { | ||||
| @@ -211,14 +209,6 @@ | ||||
|         } | ||||
|       }, | ||||
|  | ||||
|       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/appeveryvillagecode/delete?ids=${id}`).then(res => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user