Commit 10097d544b2f4de4a89b9e075289b181864c5a35
Merge branch 'dev' of http://61.169.120.202:8888/youxiw20000/trash into dev
Showing
1 changed file
with
7 additions
and
4 deletions
trash-ui/src/views/unit/dropPointInfo/index.vue
| 1 | 1 | <template> |
| 2 | 2 | <div class="app-container"> |
| 3 | - <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="108px"> | |
| 3 | + <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="148px"> | |
| 4 | 4 | <el-form-item label="投放点名称" prop="dropPointName"> |
| 5 | 5 | <el-input |
| 6 | 6 | v-model="queryParams.dropPointName" |
| ... | ... | @@ -630,14 +630,15 @@ export default { |
| 630 | 630 | getStreets(regionName) { |
| 631 | 631 | this.streets = []; |
| 632 | 632 | this.form.dropPointNo = null; |
| 633 | - this.form.street = null; | |
| 633 | + // this.form.street = null; | |
| 634 | 634 | const region = this.areas.find(region => region.code === regionName); |
| 635 | 635 | this.streets = region.items; |
| 636 | 636 | }, |
| 637 | 637 | getCommunitys(regionName){ |
| 638 | + console.log(regionName) | |
| 638 | 639 | this.communitys = []; |
| 639 | 640 | this.form.dropPointNo = null; |
| 640 | - this.form.community = null; | |
| 641 | + // this.form.community = null; | |
| 641 | 642 | const region = this.streets.find(region => region.code === regionName); |
| 642 | 643 | this.communitys = region.items; |
| 643 | 644 | }, |
| ... | ... | @@ -716,8 +717,10 @@ export default { |
| 716 | 717 | this.dropTime = false; |
| 717 | 718 | getDropPointInfo(id).then(response => { |
| 718 | 719 | let dropTime = response.data.dropTime.split("~"); |
| 719 | - console.log(dropTime) | |
| 720 | 720 | this.form = response.data; |
| 721 | + console.log(this.form) | |
| 722 | + this.getStreets(this.form.district) | |
| 723 | + this.getCommunitys(this.form.street) | |
| 721 | 724 | this.form.dropTime = dropTime[0]; |
| 722 | 725 | this.endTime = dropTime[1]; |
| 723 | 726 | this.open = true; | ... | ... |