作者 小范

跨天配置优化

... ... @@ -80,33 +80,6 @@
</el-table>
</template>
</el-row>
<!--分页模块-->
<!-- <el-row style="float: right;margin-top: 20px">-->
<!-- <div class="block">-->
<!-- <el-pagination-->
<!-- @size-change="handleSizeChange"-->
<!-- @current-change="handleCurrentChange"-->
<!-- :current-page="currentPage"-->
<!-- :page-sizes="[10, 20, 30, 40]"-->
<!-- :page-size="pageSize"-->
<!-- layout="total, sizes, prev, pager, next, jumper"-->
<!-- :total="total">-->
<!-- </el-pagination>-->
<!-- </div>-->
<!-- </el-row>-->
<el-row style="float: right;margin-top: 20px">
<div class="block">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="queryinfo.currentPage"
:page-sizes="[10, 20, 30, 40]"
:page-size="queryinfo.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total">
</el-pagination>
</div>
</el-row>
<!-- 新增弹框-->
<el-row>
<el-dialog :title="dialogMap[dialogStatus]"
... ... @@ -115,7 +88,7 @@
<el-row>
<el-col :span="11">
<el-form-item label="" prop="state">
<div class="ipt" style="padding-right: 110px">
<div class="ipt" style="padding-right: 105px">
&emsp;&emsp;启/禁用&emsp;&emsp;
</div>
<el-select v-model="form.state" placeholder="请选择" style="width: 200px" :clearable="true">
... ... @@ -168,7 +141,7 @@
<el-row>
<el-col :span="11">
<el-form-item label="" prop="effectivedate">
<div class="ipt" style="padding-right: 110px">
<div class="ipt" style="padding-right: 105px">
航班计划开始时间
</div>
<el-date-picker type="date" v-model="form.effectivedate" value-format="yyyy-MM-dd" style="width: 200px" :clearable="true"></el-date-picker>
... ... @@ -176,7 +149,7 @@
</el-col>
<el-col :span="11">
<el-form-item label="" prop="expirationdate" >
<div class="ipt" style="padding-right: 110px">
<div class="ipt" style="padding-right: 105px">
航班计划结束时间
</div>
<el-date-picker type="date" v-model="form.expirationdate" value-format="yyyy-MM-dd" style="width: 200px" :clearable="true"></el-date-picker>
... ... @@ -187,7 +160,7 @@
<el-row>
<el-col :span="11">
<el-form-item label="" prop="schedule">
<div class="ipt" style="padding-right: 110px">
<div class="ipt" style="padding-right: 105px">
航班计划航班时刻
</div>
<el-select v-model="form.schedule" placeholder="请选择" style="width: 200px" :clearable="true">
... ... @@ -205,7 +178,7 @@
<el-col :span="11">
<el-form-item label="" prop="remark">
<el-input v-model="form.remark" :clearable="true">
<template slot="prepend">&emsp;&emsp;备&emsp;&emsp;注&emsp;&emsp;</template>
<template slot="prepend">&emsp;&emsp;备&emsp;注&emsp;&emsp;</template>
</el-input>
</el-form-item>
</el-col>
... ... @@ -217,7 +190,22 @@
</div>
</el-dialog>
</el-row>
<!--分页模块-->
<el-row style="float: right;margin-top: 20px">
<el-col>
<div class="block">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="queryinfo.pageNum"
:page-sizes="[10, 20, 30, 40]"
:page-size="queryinfo.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total">
</el-pagination>
</div>
</el-col>
</el-row>
</el-main>
</el-container>
... ... @@ -234,7 +222,7 @@
queryinfo:{
carrier:'',
flightno:'',
currentPage:1,
pageNum:1,
pageSize:10,
},
total:0,
... ... @@ -283,18 +271,9 @@
{ required: true, message: '请输入', trigger: 'change' }
],
}
}
};
},
methods: {
// 危险品操作员分页
handleSizeChange(val) {
this.queryinfo.pageSize = val
this.getList()
},
handleCurrentChange(val) {
this.queryinfo.currentPage = val
this.getList()
},
//取消
cancel(){
this.dialogCross.addDialog = false
... ... @@ -305,6 +284,8 @@
const _this = this
this.tableloading = true;
selectLists(this.queryinfo).then((response) => {
console.log(response)
const res = response.data
if (res.code != '200') {
return _this.$message.error('获取消息收发记录,失败!')
... ... @@ -416,6 +397,15 @@
// // 重置对话框
// this.$refs.dangerousAddForm.resetFields()
// },
// 危险品操作员分页
handleSizeChange(val) {
this.queryinfo.pageSize= val
this.getList()
},
handleCurrentChange(val) {
this.queryinfo.pageNum = val
this.getList()
},
},
// 自动获取列表
activated(){
... ...
{
"nmmsVer": "1.10"
"nmmsVer": "1.11"
}
... ...