Commit c1ea9776b451a904ffb23df4012803a225f1bafd
1 parent
e7af6460
修改时,字典翻译
Showing
1 changed file
with
7 additions
and
4 deletions
trash-ui/src/views/unit/dropPointInfo/index.vue
| 1 | <template> | 1 | <template> |
| 2 | <div class="app-container"> | 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 | <el-form-item label="投放点名称" prop="dropPointName"> | 4 | <el-form-item label="投放点名称" prop="dropPointName"> |
| 5 | <el-input | 5 | <el-input |
| 6 | v-model="queryParams.dropPointName" | 6 | v-model="queryParams.dropPointName" |
| @@ -626,14 +626,15 @@ export default { | @@ -626,14 +626,15 @@ export default { | ||
| 626 | getStreets(regionName) { | 626 | getStreets(regionName) { |
| 627 | this.streets = []; | 627 | this.streets = []; |
| 628 | this.form.dropPointNo = null; | 628 | this.form.dropPointNo = null; |
| 629 | - this.form.street = null; | 629 | + // this.form.street = null; |
| 630 | const region = this.areas.find(region => region.code === regionName); | 630 | const region = this.areas.find(region => region.code === regionName); |
| 631 | this.streets = region.items; | 631 | this.streets = region.items; |
| 632 | }, | 632 | }, |
| 633 | getCommunitys(regionName){ | 633 | getCommunitys(regionName){ |
| 634 | + console.log(regionName) | ||
| 634 | this.communitys = []; | 635 | this.communitys = []; |
| 635 | this.form.dropPointNo = null; | 636 | this.form.dropPointNo = null; |
| 636 | - this.form.community = null; | 637 | + // this.form.community = null; |
| 637 | const region = this.streets.find(region => region.code === regionName); | 638 | const region = this.streets.find(region => region.code === regionName); |
| 638 | this.communitys = region.items; | 639 | this.communitys = region.items; |
| 639 | }, | 640 | }, |
| @@ -712,8 +713,10 @@ export default { | @@ -712,8 +713,10 @@ export default { | ||
| 712 | this.dropTime = false; | 713 | this.dropTime = false; |
| 713 | getDropPointInfo(id).then(response => { | 714 | getDropPointInfo(id).then(response => { |
| 714 | let dropTime = response.data.dropTime.split("~"); | 715 | let dropTime = response.data.dropTime.split("~"); |
| 715 | - console.log(dropTime) | ||
| 716 | this.form = response.data; | 716 | this.form = response.data; |
| 717 | + console.log(this.form) | ||
| 718 | + this.getStreets(this.form.district) | ||
| 719 | + this.getCommunitys(this.form.street) | ||
| 717 | this.form.dropTime = dropTime[0]; | 720 | this.form.dropTime = dropTime[0]; |
| 718 | this.endTime = dropTime[1]; | 721 | this.endTime = dropTime[1]; |
| 719 | this.open = true; | 722 | this.open = true; |