Commit 2e0c1219 authored by 黄奎's avatar 黄奎

交通修改

parent b496b755
......@@ -10,8 +10,9 @@
<span v-for="(subTraffic,subTrafficIndex) in trafficObj.SubTraffic">
<span v-if="subTrafficIndex==0">
<el-form-item :rules="trifficTripRules.StartCityId">
<el-select :disabled="isOpenGroup" class="w120" :placeholder="$t('pub.pleaseSel')" filterable v-model="subTraffic.StartCityId"
@visible-change="GetDepartList1($event)" @change="changeGetDepartList(subTraffic.StartCityId)">
<el-select :disabled="isOpenGroup" class="w120" :placeholder="$t('pub.pleaseSel')" filterable remote v-model="subTraffic.StartCityId"
reserve-keyword :remote-method="GetDepartList1"
@change="changeGetDepartList(subTraffic.StartCityId)">
<el-option :label="$t('pub.unlimitedSel')" :value="DefaultSelectValue"></el-option>
<el-option v-for="item in DepartList1" :label="item.Name" :value="item.ID" :key="item.ID+10000"></el-option>
</el-select>
......@@ -33,8 +34,9 @@
</span>
<span>
<el-form-item :rules="trifficTripRules.ArrivalCityId">
<el-select :disabled="isOpenGroup" class="w120" :placeholder="$t('pub.pleaseSel')" filterable v-model="subTraffic.ArrivalCityId"
@visible-change="GetArrivalList1($event)" @change="changeArrivalCity(subTraffic.ArrivalCityId)">
<el-select :disabled="isOpenGroup" class="w120" :placeholder="$t('pub.pleaseSel')" filterable remote v-model="subTraffic.ArrivalCityId"
reserve-keyword :remote-method="GetArrivalList1"
@change="changeArrivalCity(subTraffic.ArrivalCityId)">
<el-option :label="$t('pub.unlimitedSel')" :value="DefaultSelectValue"></el-option>
<el-option v-for="item in ArriveList1" :label="item.Name" :value="item.ID" :key="item.ID+1000"></el-option>
</el-select>
......@@ -214,15 +216,39 @@
},
methods: {
//出发城市1
GetDepartList1(event) {
if (event) {
this.DepartList1 = this.AllCityList;
GetDepartList1(query) {
this.DepartList1 = [];
if (query != "") {
this.apipost(
"dict_get_Destination_GetListService", {
Name: query
},
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.DepartList1 = res.data.data;
}
},
err => {}
);
}
},
//到达城市
GetArrivalList1(event) {
if (event) {
this.ArriveList1 = this.AllCityList;
//到达城市
GetArrivalList1(query) {
this.ArriveList1 = [];
if (query != "") {
this.apipost(
"dict_get_Destination_GetListService", {
Name: query
},
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.ArriveList1 = res.data.data;
}
},
err => {}
);
}
},
//到达城市改变
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment