Commit 636dcb10 authored by 黄奎's avatar 黄奎

页面修改

parent 226529e1
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<span> <span>
<em>{{$t('system.table_ssLine')}}</em> <em>{{$t('system.table_ssLine')}}</em>
<el-select class='w150' v-model="queryMsg.LineId" filterable :placeholder="$t('pub.pleaseSel')" <el-select class='w150' v-model="queryMsg.LineId" filterable :placeholder="$t('pub.pleaseSel')"
@change="getLineTeamList()"> @change="getLinePlaceList()">
<el-option :label="$t('pub.unlimitedSel')" :value='queryCommonData.SelectDefaultValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='queryCommonData.SelectDefaultValue'></el-option>
<el-option v-for="item in queryCommonData.LineList" :label='item.LineName' :value='item.LineID' <el-option v-for="item in queryCommonData.LineList" :label='item.LineName' :value='item.LineID'
:key='item.LineID'> :key='item.LineID'>
...@@ -19,6 +19,15 @@ ...@@ -19,6 +19,15 @@
</el-select> </el-select>
</span> </span>
</li> </li>
<li>
<span>
<em>{{$t('Operation.Op_Country')}}/{{$t('system.query_dest')}}</em>
<el-select class="w150" v-model="queryMsg.PlaceID" filterable :placeholder="$t('pub.pleaseSel')" @change="getLineTeamList()">
<el-option :label="$t('pub.unlimitedSel')" :value="queryCommonData.SelectDefaultValue"></el-option>
<el-option v-for="item in queryCommonData.PlaceList" :label="item.PlaceName" :value="item.PlaceID" :key="item.LtID"></el-option>
</el-select>
</span>
</li>
<li> <li>
<span> <span>
<em>{{$t('active.ad_xlmc')}}</em> <em>{{$t('active.ad_xlmc')}}</em>
...@@ -149,6 +158,8 @@ ...@@ -149,6 +158,8 @@
queryCommonData: { queryCommonData: {
//线路列表 //线路列表
LineList: [], LineList: [],
//目的地
PlaceList: [],
//系列列表 //系列列表
LineTeamList: [], LineTeamList: [],
//下拉框默认值 //下拉框默认值
...@@ -166,6 +177,7 @@ ...@@ -166,6 +177,7 @@
pageSize: 10, pageSize: 10,
LineId: 0, LineId: 0,
LineteamId: 0, LineteamId: 0,
PlaceID:0,
CreateBy: 0, CreateBy: 0,
TeamType: 0, TeamType: 0,
TCNUMS: "", TCNUMS: "",
...@@ -239,29 +251,50 @@ ...@@ -239,29 +251,50 @@
); );
}); });
}, },
//获取线路列表 //获取线路列表
getLineList() { getLineList() {
this.apipost("line_post_GetList", { this.apipost(
"LineDirection": 2 "line_post_GetList",
}, res => { {
if (res.data.resultCode == 1) { LineDirection: 2
this.queryCommonData.LineList = res.data.data; },
} res => {
}); if (res.data.resultCode == 1) {
}, this.queryCommonData.LineList = res.data.data;
//获取系列列表 this.queryCommonData.PlaceList = [];
getLineTeamList() { this.queryCommonData.LineTeamList = [];
this.queryMsg.LineteamId = 0; }
let msg = { }
lineID: this.queryMsg.LineId, );
isTOOP: 1 },
}; //获取目的地列表
this.apipost("team_post_GetList", msg, res => { getLinePlaceList() {
if (res.data.resultCode == 1) { this.queryMsg.PlaceID = 0;
this.queryCommonData.LineTeamList = res.data.data; this.queryMsg.LineteamId = 0;
} let msg = {
}); lineID: this.queryMsg.LineId
}, };
this.apipost("team_post_GetLinePlace", msg, res => {
if (res.data.resultCode == 1) {
this.queryCommonData.PlaceList = res.data.data;
this.queryCommonData.LineTeamList = [];
}
});
},
//获取系列列表
getLineTeamList() {
this.queryMsg.LineteamId = 0;
let msg = {
lineID: this.queryMsg.LineId,
placeID: this.queryMsg.PlaceID,
isTOOP: 1
};
this.apipost("team_post_GetList", msg, res => {
if (res.data.resultCode == 1) {
this.queryCommonData.LineTeamList = res.data.data;
}
});
},
//新获取列表数据 //新获取列表数据
getControlList() { getControlList() {
var msg = JSON.parse(JSON.stringify(this.queryMsg)); var msg = JSON.parse(JSON.stringify(this.queryMsg));
......
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