|
@@ -44,7 +44,7 @@ |
|
@@ -44,7 +44,7 @@ |
44
|
</el-col>
|
44
|
</el-col>
|
45
|
<el-col :span="24" style="margin-bottom: 20px">
|
45
|
<el-col :span="24" style="margin-bottom: 20px">
|
46
|
<el-col :span="24">
|
46
|
<el-col :span="24">
|
47
|
- <div class="grid-content content">长期飞行计划<el-button type="primary" size="mini" @click="dialogTableVisible = true" style="margin-left:25px">长期飞行计划查询</el-button></div>
|
47
|
+ <div class="grid-content content">长期飞行计划<el-button type="primary" size="mini" @click="selectLongplan()" style="margin-left:25px">长期飞行计划查询</el-button></div>
|
48
|
</el-col>
|
48
|
</el-col>
|
49
|
</el-col>
|
49
|
</el-col>
|
50
|
<el-col :span="8">
|
50
|
<el-col :span="8">
|
|
@@ -118,6 +118,7 @@ |
|
@@ -118,6 +118,7 @@ |
118
|
<el-table
|
118
|
<el-table
|
119
|
:data="tableData"
|
119
|
:data="tableData"
|
120
|
border
|
120
|
border
|
|
|
121
|
+ v-loading="tableloading"
|
121
|
style="width: 100%;margin-bottom: 10px">
|
122
|
style="width: 100%;margin-bottom: 10px">
|
122
|
<el-table-column
|
123
|
<el-table-column
|
123
|
fixed="left"
|
124
|
fixed="left"
|
|
@@ -156,9 +157,9 @@ |
|
@@ -156,9 +157,9 @@ |
156
|
@current-change="handleCurrentChange"
|
157
|
@current-change="handleCurrentChange"
|
157
|
:current-page="currentPage4"
|
158
|
:current-page="currentPage4"
|
158
|
:page-sizes="[10, 20, 30, 40]"
|
159
|
:page-sizes="[10, 20, 30, 40]"
|
159
|
- :page-size="100"
|
160
|
+ :page-size="pageSize"
|
160
|
layout="total, sizes, prev, pager, next, jumper"
|
161
|
layout="total, sizes, prev, pager, next, jumper"
|
161
|
- :total="100">
|
162
|
+ :total="total">
|
162
|
</el-pagination>
|
163
|
</el-pagination>
|
163
|
</el-dialog>
|
164
|
</el-dialog>
|
164
|
</el-row>
|
165
|
</el-row>
|
|
@@ -200,7 +201,7 @@ |
|
@@ -200,7 +201,7 @@ |
200
|
<script>
|
201
|
<script>
|
201
|
|
202
|
|
202
|
const fecha = require('fecha');
|
203
|
const fecha = require('fecha');
|
203
|
- import {addRoute} from '../../api/transport'
|
204
|
+ import {addRoute,selectLongTimePlan} from '../../api/transport'
|
204
|
import loginUserInfo from '../../api/base'
|
205
|
import loginUserInfo from '../../api/base'
|
205
|
export default {
|
206
|
export default {
|
206
|
data(){
|
207
|
data(){
|
|
@@ -227,6 +228,9 @@ |
|
@@ -227,6 +228,9 @@ |
227
|
updateBy:loginUserInfo.username,
|
228
|
updateBy:loginUserInfo.username,
|
228
|
isDelete:undefined,
|
229
|
isDelete:undefined,
|
229
|
},
|
230
|
},
|
|
|
231
|
+ longtimeplan:{
|
|
|
232
|
+ createBy:loginUserInfo.username
|
|
|
233
|
+ },
|
230
|
rules: {
|
234
|
rules: {
|
231
|
departurePort: [
|
235
|
departurePort: [
|
232
|
//{ min: 3, max: 3, message: '长度在3个字符', trigger: 'blur'},
|
236
|
//{ min: 3, max: 3, message: '长度在3个字符', trigger: 'blur'},
|
|
@@ -260,21 +264,30 @@ |
|
@@ -260,21 +264,30 @@ |
260
|
{required: true, message: '请选择时间', trigger: 'blur'}
|
264
|
{required: true, message: '请选择时间', trigger: 'blur'}
|
261
|
]
|
265
|
]
|
262
|
},
|
266
|
},
|
263
|
- tableData: [{
|
|
|
264
|
- std: '161146',
|
|
|
265
|
- sta: '161146',
|
|
|
266
|
- effStartdate: '20160502',
|
|
|
267
|
- effEnddate: '20160503'
|
|
|
268
|
- }],
|
267
|
+ tableData: [],
|
269
|
//长期飞行计划弹框
|
268
|
//长期飞行计划弹框
|
270
|
dialogTableVisible:false,
|
269
|
dialogTableVisible:false,
|
271
|
//系统提示框
|
270
|
//系统提示框
|
272
|
centerDialogVisible:false,
|
271
|
centerDialogVisible:false,
|
273
|
- currentPage4:4,
|
272
|
+ currentPage4:1,
|
|
|
273
|
+ pageSize:10,
|
|
|
274
|
+ total:0,
|
274
|
msg:undefined,
|
275
|
msg:undefined,
|
|
|
276
|
+ tableloading:false
|
275
|
}
|
277
|
}
|
276
|
},
|
278
|
},
|
277
|
methods:{
|
279
|
methods:{
|
|
|
280
|
+ //查询长期飞行计划列表
|
|
|
281
|
+ selectLongplan(){
|
|
|
282
|
+ this.dialogTableVisible=true;
|
|
|
283
|
+ this.tableloading=true;
|
|
|
284
|
+ selectLongTimePlan(this.longtimeplan).then(res=>{
|
|
|
285
|
+ let response=res.data.data;
|
|
|
286
|
+ this.tableData=response.list;
|
|
|
287
|
+ this.tableloading=false;
|
|
|
288
|
+ this.total=response.total;
|
|
|
289
|
+ });
|
|
|
290
|
+ },
|
278
|
//新增航线方法(保存按钮)
|
291
|
//新增航线方法(保存按钮)
|
279
|
submitForm(formName) {
|
292
|
submitForm(formName) {
|
280
|
//重新定义范围域
|
293
|
//重新定义范围域
|
|
@@ -301,10 +314,11 @@ |
|
@@ -301,10 +314,11 @@ |
301
|
},
|
314
|
},
|
302
|
//分页方法
|
315
|
//分页方法
|
303
|
handleSizeChange(val) {
|
316
|
handleSizeChange(val) {
|
304
|
- console.log(`每页 ${val} 条`);
|
317
|
+ this.pageSize=val;
|
305
|
},
|
318
|
},
|
306
|
handleCurrentChange(val) {
|
319
|
handleCurrentChange(val) {
|
307
|
- console.log(`当前页: ${val}`);
|
320
|
+ this.currentPage=val;
|
|
|
321
|
+ this.selectLongtimeplan();
|
308
|
},
|
322
|
},
|
309
|
//长期飞行计划选择功能
|
323
|
//长期飞行计划选择功能
|
310
|
handleEdit(index,row){
|
324
|
handleEdit(index,row){
|