作者 xudada

运输工具通用查询

... ... @@ -170,6 +170,7 @@
},
handleCurrentChange(val) {
this.currentPage=val;
this.submitForm();
},
//获取航线列表
submitForm(){
... ...
... ... @@ -44,7 +44,7 @@
</el-col>
<el-col :span="24" style="margin-bottom: 20px">
<el-col :span="24">
<div class="grid-content content">长期飞行计划<el-button type="primary" size="mini" @click="dialogTableVisible = true" style="margin-left:25px">长期飞行计划查询</el-button></div>
<div class="grid-content content">长期飞行计划<el-button type="primary" size="mini" @click="selectLongplan()" style="margin-left:25px">长期飞行计划查询</el-button></div>
</el-col>
</el-col>
<el-col :span="8">
... ... @@ -118,6 +118,7 @@
<el-table
:data="tableData"
border
v-loading="tableloading"
style="width: 100%;margin-bottom: 10px">
<el-table-column
fixed="left"
... ... @@ -156,9 +157,9 @@
@current-change="handleCurrentChange"
:current-page="currentPage4"
:page-sizes="[10, 20, 30, 40]"
:page-size="100"
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="100">
:total="total">
</el-pagination>
</el-dialog>
</el-row>
... ... @@ -200,7 +201,7 @@
<script>
const fecha = require('fecha');
import {addRoute} from '../../api/transport'
import {addRoute,selectLongTimePlan} from '../../api/transport'
import loginUserInfo from '../../api/base'
export default {
data(){
... ... @@ -227,6 +228,9 @@
updateBy:loginUserInfo.username,
isDelete:undefined,
},
longtimeplan:{
createBy:loginUserInfo.username
},
rules: {
departurePort: [
//{ min: 3, max: 3, message: '长度在3个字符', trigger: 'blur'},
... ... @@ -260,21 +264,30 @@
{required: true, message: '请选择时间', trigger: 'blur'}
]
},
tableData: [{
std: '161146',
sta: '161146',
effStartdate: '20160502',
effEnddate: '20160503'
}],
tableData: [],
//长期飞行计划弹框
dialogTableVisible:false,
//系统提示框
centerDialogVisible:false,
currentPage4:4,
currentPage4:1,
pageSize:10,
total:0,
msg:undefined,
tableloading:false
}
},
methods:{
//查询长期飞行计划列表
selectLongplan(){
this.dialogTableVisible=true;
this.tableloading=true;
selectLongTimePlan(this.longtimeplan).then(res=>{
let response=res.data.data;
this.tableData=response.list;
this.tableloading=false;
this.total=response.total;
});
},
//新增航线方法(保存按钮)
submitForm(formName) {
//重新定义范围域
... ... @@ -301,10 +314,11 @@
},
//分页方法
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pageSize=val;
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.currentPage=val;
this.selectLongtimeplan();
},
//长期飞行计划选择功能
handleEdit(index,row){
... ...
... ... @@ -264,7 +264,7 @@
getPermList() {
let para = {
pageNum: 1,
pageSize: 500
pageSize: 700
};
NProgress.start();
permList(para).then((res) => {
... ...