Commit 8ddc5520 authored by zhengke's avatar zhengke

修改

parent d3fc23d2
...@@ -410,6 +410,14 @@ ...@@ -410,6 +410,14 @@
<div class="TC_Content TravelControlList"> <div class="TC_Content TravelControlList">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li>
<em>线路</em>
<el-select v-model="queryMsg.LineId" class="w378" :placeholder="$t('pub.pleaseSel')"
@change="getLineTeamList(queryMsg.LineId,true)" filterable>
<el-option v-for="item in queryCommonData.LineList" :label="item.LineName" :value="item.LineID" :key="item.LineID">
</el-option>
</el-select>
</li>
<li> <li>
<span> <span>
<em>{{$t('active.ad_xlmc')}}</em> <em>{{$t('active.ad_xlmc')}}</em>
...@@ -617,7 +625,7 @@ ...@@ -617,7 +625,7 @@
</template> </template>
</tbody> </tbody>
<tr v-show="queryMsg.noData"> <tr v-show="queryMsg.noData">
<td colspan="6">{{$t('system.content_noData')}}</td> <td colspan="6" style="text-align:center;height:40px;">{{$t('system.content_noData')}}</td>
</tr> </tr>
</table> </table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="queryMsg.currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="queryMsg.currentPage"
...@@ -650,7 +658,7 @@ ...@@ -650,7 +658,7 @@
queryMsg: { queryMsg: {
pageIndex: 1, pageIndex: 1,
pageSize: 5, pageSize: 5,
LineId: 14, LineId: 0,
LineteamId: 0, LineteamId: 0,
TCNUM: "", TCNUM: "",
StartGroupDate: "", StartGroupDate: "",
...@@ -755,23 +763,58 @@ ...@@ -755,23 +763,58 @@
getLineList() { getLineList() {
this.apipost("line_post_GetList", {}, res => { this.apipost("line_post_GetList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.queryCommonData.LineList = res.data.data; let lineArr = res.data.data;
this.queryCommonData.LineList=[];
lineArr.forEach(x=>{
if(x.LineID==14||x.LineID==90){
this.queryCommonData.LineList.push(x);
}
})
let obj = {
LineName:'不限',
LineID:0
}
this.queryCommonData.LineList.unshift(obj);
} }
}); });
}, },
//获取系列列表 //获取系列列表
getLineTeamList() { getLineTeamList(lineId, isDefault) {
//查询线路名
if (isDefault) {
this.queryMsg.LineteamId = 0; this.queryMsg.LineteamId = 0;
}
let msg = { let msg = {
lineID: this.queryMsg.LineId, lineID: lineId,
isTOOP: 1 isTOOP: 1
}; };
var that = this;
//获取当前选中的对象
let obj = {};
obj = that.queryCommonData.LineList.find(item => {
return item.LineID === lineId;
});
this.apipost("team_post_GetList", msg, res => { this.apipost("team_post_GetList", msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.queryCommonData.LineTeamList = res.data.data; this.queryCommonData.LineTeamList = res.data.data;
} }
}); });
}, },
// //获取系列列表
// getLineTeamList() {
// this.queryMsg.LineteamId = 0;
// let msg = {
// lineID: this.queryMsg.LineId,
// isTOOP: 1
// };
// this.apipost("team_post_GetList", msg, res => {
// if (res.data.resultCode == 1) {
// this.queryCommonData.LineTeamList = res.data.data;
// }
// });
// },
//新获取列表数据 //新获取列表数据
getControlList() { getControlList() {
this.loading = true; this.loading = true;
...@@ -812,8 +855,9 @@ ...@@ -812,8 +855,9 @@
}, },
}, },
mounted() { mounted() {
this.getLineList();
this.getCompanyList(); this.getCompanyList();
this.getLineTeamList(); this.getLineTeamList(0,true);
}, },
created() { created() {
var myDate = new Date(); var myDate = new Date();
......
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