|
@@ -89,7 +89,7 @@ export default {
|
|
|
...treaty({ getTreatyList: 'query' }),
|
|
|
...project({ getItemList: 'query' }),
|
|
|
...route({ getRouteList: 'query' }),
|
|
|
- ...route({ getModeList: 'query' }),
|
|
|
+ ...mode({ getModeList: 'query' }),
|
|
|
async getTreaty(client) {
|
|
|
const res = await this.getTreatyList({ client });
|
|
|
if (this.$checkRes(res)) {
|
|
@@ -102,20 +102,20 @@ export default {
|
|
|
},
|
|
|
async getItem(treaty) {
|
|
|
const res = await this.getItemList({ treaty });
|
|
|
- // if (this.$checkRes(res)) {
|
|
|
- // const { data } = res;
|
|
|
- // this.$set(this, `itemList`, data);
|
|
|
- // }
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ const { data } = res;
|
|
|
+ this.$set(this, `itemList`, data);
|
|
|
+ }
|
|
|
},
|
|
|
async getRoute(item) {
|
|
|
- const res = await this.getItemList({ item });
|
|
|
+ const res = await this.getRouteList({ item });
|
|
|
if (this.$checkRes(res)) {
|
|
|
const { data } = res;
|
|
|
this.$set(this, `routeList`, data);
|
|
|
}
|
|
|
},
|
|
|
async getMode(route) {
|
|
|
- const res = await this.getItemList({ route });
|
|
|
+ const res = await this.getModeList({ route });
|
|
|
if (this.$checkRes(res)) {
|
|
|
const { data } = res;
|
|
|
this.$set(this, `modeList`, data);
|