|
@@ -1,14 +1,14 @@
|
|
|
<!--
|
|
|
* @Author: zk
|
|
|
* @Date: 2022-01-17 10:39:22
|
|
|
- * @LastEditTime: 2022-05-13 09:37:33
|
|
|
+ * @LastEditTime: 2022-05-13 13:50:30
|
|
|
* @LastEditors: your name
|
|
|
- * @Description: 离港01
|
|
|
+ * @Description: 进港01
|
|
|
-->
|
|
|
<template>
|
|
|
- <div class="departure-one">
|
|
|
+ <div class="arrival-one">
|
|
|
<!--功能区-表单-->
|
|
|
- <div class="departure-form">
|
|
|
+ <div class="arrival-form">
|
|
|
<el-form
|
|
|
ref="form"
|
|
|
:inline="true"
|
|
@@ -151,7 +151,7 @@
|
|
|
<!--表格-->
|
|
|
<div
|
|
|
v-loading="loading"
|
|
|
- class="departure-table"
|
|
|
+ class="arrival-table"
|
|
|
element-loading-text="拼命加载中"
|
|
|
element-loading-spinner="el-icon-loading"
|
|
|
element-loading-background="rgba(0, 0, 0, 0.8)"
|
|
@@ -179,7 +179,11 @@
|
|
|
:filter-method="
|
|
|
tableDataFilters[item.statCode] && filterHandler
|
|
|
"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot="header">
|
|
|
+ <el-tooltip :content="item.statName" placement="top"><span>{{ item.statName }}</span></el-tooltip>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<!--列设置-->
|
|
@@ -234,13 +238,13 @@ export default {
|
|
|
mixins: [terminalMixin, formMixin, tableColsMixin],
|
|
|
data() {
|
|
|
return {
|
|
|
- orderNum: ['0', '0', '0', '0'], // 默认总数
|
|
|
+ orderNum: ['0', '0', '0', '0', '0', '0'], // 默认总数
|
|
|
// 初始表头
|
|
|
tableCols: [
|
|
|
{
|
|
|
statCode: 'FlightNO',
|
|
|
statName: '航班号',
|
|
|
- width: 100
|
|
|
+ width: 80
|
|
|
},
|
|
|
{
|
|
|
statCode: 'FlightDate',
|
|
@@ -483,10 +487,10 @@ export default {
|
|
|
|
|
|
toOrderNum(num) {
|
|
|
num = num.toString()
|
|
|
- if (num.length < 4) {
|
|
|
+ if (num.length < 6) {
|
|
|
num = '0' + num // 如未满八位数,添加"0"补位
|
|
|
this.toOrderNum(num) // 递归添加"0"补位
|
|
|
- } else if (num.length === 4) {
|
|
|
+ } else if (num.length >= 6) {
|
|
|
this.orderNum = num.split('') // 将其便变成数据,渲染至滚动数组
|
|
|
} else {
|
|
|
// 订单总量数字超过八位显示异常
|
|
@@ -499,7 +503,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.departure-form {
|
|
|
+.arrival-form {
|
|
|
padding-top: 11px;
|
|
|
padding-left: 5px;
|
|
|
::v-deep .form {
|
|
@@ -623,7 +627,7 @@ export default {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
}
|
|
|
-.departure-table {
|
|
|
+.arrival-table {
|
|
|
width: 100%;
|
|
|
::v-deep .table {
|
|
|
width: 100%;
|