Commit c1ea9776b451a904ffb23df4012803a225f1bafd

Authored by 2c2c2c
1 parent e7af6460

修改时,字典翻译

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