Commit dbf598be03d23f07773e62a4535b6c93d3bd9b14
1 parent
ccc65532
1.那个区域列表只要 长望浏宁+内五区的数据,其他区的要筛除掉
2.这个字体需要调小一点,做两行
Showing
1 changed file
with
22 additions
and
4 deletions
trash-ui/src/views/unit/dropPointInfo/index.vue
| ... | ... | @@ -93,7 +93,13 @@ |
| 93 | 93 | }}</span> |
| 94 | 94 | </template> |
| 95 | 95 | </el-table-column> |
| 96 | - <el-table-column label="社区" align="center" prop="community"/> | |
| 96 | + <el-table-column label="社区" align="center" prop="community"> | |
| 97 | + <template slot-scope="scope"> | |
| 98 | + <span>{{ | |
| 99 | + communitysInfo(scope.row.community) | |
| 100 | + }}</span> | |
| 101 | + </template> | |
| 102 | + </el-table-column> | |
| 97 | 103 | <el-table-column label="小区" align="center" prop="plot"/> |
| 98 | 104 | <el-table-column label="详细地址" align="center" prop="address"/> |
| 99 | 105 | <el-table-column label="投放点形式" align="center" prop="type"/> |
| ... | ... | @@ -448,19 +454,31 @@ export default { |
| 448 | 454 | dict(code){ |
| 449 | 455 | for(let key in this.areas){ |
| 450 | 456 | if(this.areas[key].code === code){ |
| 457 | + // this.streets = this.areas[key].items; | |
| 451 | 458 | return this.areas[key].name; |
| 452 | 459 | } |
| 453 | 460 | } |
| 454 | 461 | }, |
| 455 | 462 | dictInfo(code){ |
| 456 | 463 | for(let key in this.areas){ |
| 457 | - for(let keyInfo in this.areas[key].streets){ | |
| 458 | - if(this.areas[key].streets[keyInfo].code === code){ | |
| 459 | - return this.areas[key].streets[keyInfo].name; | |
| 464 | + for(let key1 in this.areas[key].items){ | |
| 465 | + if(this.areas[key].items[key1].code === code){ | |
| 466 | + return this.areas[key].items[key1].name; | |
| 460 | 467 | } |
| 461 | 468 | } |
| 462 | 469 | } |
| 463 | 470 | }, |
| 471 | + communitysInfo(code){ | |
| 472 | + for(let key in this.areas){ | |
| 473 | + for(let key1 in this.areas[key].items){ | |
| 474 | + for (let key2 in this.areas[key].items[key1].items){ | |
| 475 | + if (this.areas[key].items[key1].items[key2].code === code){ | |
| 476 | + return this.areas[key].items[key1].items[key2].name; | |
| 477 | + } | |
| 478 | + } | |
| 479 | + } | |
| 480 | + } | |
| 481 | + }, | |
| 464 | 482 | clearCoordinatePoint(){ |
| 465 | 483 | this.center = null; |
| 466 | 484 | this.form.coordinatePoint = null; | ... | ... |