Commit 10097d544b2f4de4a89b9e075289b181864c5a35

Authored by youxiw2000
2 parents ce7907ac c1ea9776

Merge branch 'dev' of http://61.169.120.202:8888/youxiw20000/trash into dev

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"
@@ -630,14 +630,15 @@ export default { @@ -630,14 +630,15 @@ export default {
630 getStreets(regionName) { 630 getStreets(regionName) {
631 this.streets = []; 631 this.streets = [];
632 this.form.dropPointNo = null; 632 this.form.dropPointNo = null;
633 - this.form.street = null; 633 + // this.form.street = null;
634 const region = this.areas.find(region => region.code === regionName); 634 const region = this.areas.find(region => region.code === regionName);
635 this.streets = region.items; 635 this.streets = region.items;
636 }, 636 },
637 getCommunitys(regionName){ 637 getCommunitys(regionName){
  638 + console.log(regionName)
638 this.communitys = []; 639 this.communitys = [];
639 this.form.dropPointNo = null; 640 this.form.dropPointNo = null;
640 - this.form.community = null; 641 + // this.form.community = null;
641 const region = this.streets.find(region => region.code === regionName); 642 const region = this.streets.find(region => region.code === regionName);
642 this.communitys = region.items; 643 this.communitys = region.items;
643 }, 644 },
@@ -716,8 +717,10 @@ export default { @@ -716,8 +717,10 @@ export default {
716 this.dropTime = false; 717 this.dropTime = false;
717 getDropPointInfo(id).then(response => { 718 getDropPointInfo(id).then(response => {
718 let dropTime = response.data.dropTime.split("~"); 719 let dropTime = response.data.dropTime.split("~");
719 - console.log(dropTime)  
720 this.form = response.data; 720 this.form = response.data;
  721 + console.log(this.form)
  722 + this.getStreets(this.form.district)
  723 + this.getCommunitys(this.form.street)
721 this.form.dropTime = dropTime[0]; 724 this.form.dropTime = dropTime[0];
722 this.endTime = dropTime[1]; 725 this.endTime = dropTime[1];
723 this.open = true; 726 this.open = true;