1730532197@qq.com

Merge branch 'master' of http://118.178.128.178/Fedex/imac-vue

1 <template> 1 <template>
2 - <div>index user</div> 2 +<div style="margin:40px">
3 + <el-form :inline="true" :model="formInline" class="demo-form-inline">
4 + <el-form-item label="航班号">
5 + <el-input v-model="formInline.flyNum" placeholder="航班号"></el-input>
6 + </el-form-item>
7 + <el-form-item>
8 + <el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
9 + </el-form-item>
10 + </el-form>
11 + <el-button style="margin-bottom:20px" type="primary" icon="el-icon-plus">添加</el-button>
12 + <el-table
13 + :data="flyList"
14 + style="width: 800px"
15 + >
16 + <el-table-column
17 + prop="flyNum"
18 + label="航班号"
19 + >
20 + </el-table-column>
21 + <el-table-column
22 + label="操作"
23 + >
24 + </el-table-column>
25 + </el-table>
26 + <el-pagination
27 + @size-change="handleSizeChange"
28 + @current-change="handleCurrentChange"
29 + :current-page="currentPage"
30 + :page-sizes="[10, 20, 30, 40]"
31 + :page-size="10"
32 + layout="prev, pager, next, jumper, sizes, total"
33 + :total="total"
34 + background
35 + style="margin-top:40px">
36 + </el-pagination>
37 +</div>
3 </template> 38 </template>
4 39
40 +<script>
41 + export default {
42 + data() {
43 + return {
44 + formInline: {
45 + flyNum: ''
46 + },
47 + flyList:[],
48 + currentPage:1,
49 + total:0
50 + }
51 + },
52 + methods: {
53 + onSubmit() {
54 + console.log('submit!');
55 + },
56 + handleSizeChange(val) {
57 + console.log(`每页 ${val} 条`);
58 + },
59 + handleCurrentChange(val) {
60 + console.log(`当前页: ${val}`);
61 + },
62 + getAll(){
63 +
64 + }
65 + },
66 + created:{
67 +
68 + }
69 + }
70 +</script>
71 +
5 72
......