Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
1730532197@qq.com
2021-12-01 15:23:10 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
cdd3e70ae90f6f6dc9e4750371e89ca822dca173
cdd3e70a
2 parents
82e199ac
7d78c45b
Merge branch 'master' of
http://118.178.128.178/Fedex/imac-vue
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
28 deletions
src/api/destinationFlight.js
src/views/system/user/index.vue
src/api/destinationFlight.js
0 → 100644
View file @
cdd3e70
import
request
from
'@/utils/request'
//目的航班规则接口
// 查询航班列表
export
function
findFlightNo
(
query
)
{
return
request
({
url
:
'/destinationFlight/findFlightNo'
,
method
:
'post'
,
data
:
query
})
}
\ No newline at end of file
src/views/system/user/index.vue
View file @
cdd3e70
<template>
<div style="margin:40px">
<el-form :inline="true" :model="
formInline
" class="demo-form-inline">
<el-form :inline="true" :model="
queryParams
" class="demo-form-inline">
<el-form-item label="航班号">
<el-input v-model="
formInline.flyNum
" placeholder="航班号"></el-input>
<el-input v-model="
queryParams.purposeOfFlightNo
" placeholder="航班号"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="
onSubmi
t">查询</el-button>
<el-button type="primary" icon="el-icon-search" @click="
getLis
t">查询</el-button>
</el-form-item>
</el-form>
<el-button style="margin-bottom:20px" type="primary" icon="el-icon-plus">添加</el-button>
<el-table
:data="flyList"
style="width: 800px"
v-loading="loading"
>
<el-table-column
prop="flyNum"
label="航班号"
>
prop="purposeOfFlightNo"
label="航班号">
</el-table-column>
<el-table-column
label="操作"
>
label="操作">
<el-link type="primary">查看</el-link>
<el-divider direction="vertical"></el-divider>
<el-link type="primary">修改</el-link>
<el-divider direction="vertical"></el-divider>
<el-link type="primary">删除</el-link>
<el-divider direction="vertical"></el-divider>
<el-link type="primary">启用</el-link>
<el-divider direction="vertical"></el-divider>
<el-link type="primary">停用</el-link>
</el-table-column>
</el-table>
<el-pagination
@size-change="
handleSizeChange
"
@current-change="
handleCurrentChange
"
:current-page
="current
Page"
@size-change="
getList
"
@current-change="
getList
"
:current-page
.sync="cur
Page"
:page-sizes="[10, 20, 30, 40]"
:page-size
="10
"
:page-size
.sync="limit
"
layout="prev, pager, next, jumper, sizes, total"
:total="total"
background
...
...
@@ -38,33 +46,44 @@
</template>
<script>
import {
findFlightNo
} from "@/api/destinationFlight";
export default {
data() {
return {
formInline: {
flyNum: ''
queryParams: {
purposeOfFlightNo: '',
start:0,
limit:10
},
flyList:[],
currentPage:1,
total:0
curPage:1,
limit:10,
total:0,
loading:false,
}
},
methods: {
onSubmit() {
console.log('submit!');
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
},
getAll(){
getList(){
this.queryParams.limit = this.limit;
if (this.curPage > 1) {
this.queryParams.start = (this.curPage - 1) * this.queryParams.limit
}else {
this.queryParams.start = 0;
}
this.loading = true;
findFlightNo(this.queryParams).then(response => {
this.flyList = response.data.list;
this.total = response.data.totalCount;
this.loading = false;
});
}
},
created
:
{
created
()
{
this.getList();
}
}
</script>
...
...
Please
register
or
login
to post a comment