Commit fdd3fe7384b7579eaebcdcbbb216d71330438d88
1 parent
f26863ff
1
Showing
2 changed files
with
26 additions
and
0 deletions
trash-ui/src/api/dict.js
| ... | ... | @@ -9,3 +9,14 @@ export function constructionsitesList(data) { |
| 9 | 9 | |
| 10 | 10 | return req; |
| 11 | 11 | } |
| 12 | + | |
| 13 | +export function getDict(param) { | |
| 14 | + const req = requestRemote({ | |
| 15 | + url: '/api/gpsservice/cs/dataDict', | |
| 16 | + method: 'get', | |
| 17 | + param: param | |
| 18 | + }); | |
| 19 | + | |
| 20 | + return req; | |
| 21 | +} | |
| 22 | + | ... | ... |
trash-ui/src/views/business/threestep/index.vue
| ... | ... | @@ -485,6 +485,11 @@ |
| 485 | 485 | getToken |
| 486 | 486 | } from "@/utils/auth"; |
| 487 | 487 | |
| 488 | + import { | |
| 489 | + constructionsitesList, | |
| 490 | + getDict | |
| 491 | + } from "@/api/dict"; | |
| 492 | + | |
| 488 | 493 | export default { |
| 489 | 494 | name: "Threestep", |
| 490 | 495 | data() { |
| ... | ... | @@ -604,6 +609,16 @@ |
| 604 | 609 | }; |
| 605 | 610 | }, |
| 606 | 611 | created() { |
| 612 | + | |
| 613 | + let data = { | |
| 614 | + page:1, | |
| 615 | + size:9999 | |
| 616 | + } | |
| 617 | + | |
| 618 | + constructionsitesList(data).then(response=>{ | |
| 619 | + console.log(response); | |
| 620 | + }); | |
| 621 | + | |
| 607 | 622 | this.getList(); |
| 608 | 623 | }, |
| 609 | 624 | methods: { | ... | ... |