Commit 8ddc5520 authored by zhengke's avatar zhengke

修改

parent d3fc23d2
......@@ -410,6 +410,14 @@
<div class="TC_Content TravelControlList">
<div class="query-box">
<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>
<span>
<em>{{$t('active.ad_xlmc')}}</em>
......@@ -617,7 +625,7 @@
</template>
</tbody>
<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>
</table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="queryMsg.currentPage"
......@@ -650,7 +658,7 @@
queryMsg: {
pageIndex: 1,
pageSize: 5,
LineId: 14,
LineId: 0,
LineteamId: 0,
TCNUM: "",
StartGroupDate: "",
......@@ -755,23 +763,58 @@
getLineList() {
this.apipost("line_post_GetList", {}, res => {
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() {
this.queryMsg.LineteamId = 0;
//获取系列列表
getLineTeamList(lineId, isDefault) {
//查询线路名
if (isDefault) {
this.queryMsg.LineteamId = 0;
}
let msg = {
lineID: this.queryMsg.LineId,
lineID: lineId,
isTOOP: 1
};
var that = this;
//获取当前选中的对象
let obj = {};
obj = that.queryCommonData.LineList.find(item => {
return item.LineID === lineId;
});
this.apipost("team_post_GetList", msg, res => {
if (res.data.resultCode == 1) {
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() {
this.loading = true;
......@@ -812,8 +855,9 @@
},
},
mounted() {
this.getLineList();
this.getCompanyList();
this.getLineTeamList();
this.getLineTeamList(0,true);
},
created() {
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