作者 王勇

航班号与航班日期,不能同时为空

... ... @@ -31,9 +31,9 @@
<!-- 显示区域 -->
<el-row :gutter="24" style="margin-top: 30px">
<el-col :span="11" style="margin-top: 10px">
<!-- <el-progress :text-inside="true" :stroke-width="15" :percentage="proportion"-->
<!-- :color="customColors"-->
<!-- style="width: 455px"></el-progress>-->
<!-- <el-progress :text-inside="true" :stroke-width="15" :percentage="proportion"-->
<!-- :color="customColors"-->
<!-- style="width: 455px"></el-progress>-->
<el-input v-model="message" type="textarea"
:autosize="{ minRows: 6, maxRows: 10}"
style="width: 455px;height: 400px"
... ... @@ -121,13 +121,19 @@
/**
* 获取出港信息列表
*/
getExitInfoList(onfulfilled) {
getExitInfoList() {
let _this = this;
if (_this.queryInfo.flightNo === '') {
if (_this.queryInfo.flightDate === '' || _this.queryInfo.flightDate === null) {
return _this.$message.warning('航班号与航班日期,不能同时为空');
}
}
_this.$message.success('开始获取统计数据');
getExitDataAnalysis(_this.queryInfo).catch(error => {
// _this.$message.info("即将结束!请您稍候");
});
},
}
,
/**
* 下载excel
*/
... ... @@ -153,7 +159,8 @@
this.$message.error(error.toString());
});
},
}
,
down() {
// 创建a标签
const link = document.createElement('a');
... ... @@ -165,7 +172,8 @@
document.body.appendChild(link);
// 自执行点击事件
link.click()
},
}
,
/**
* 生成excel
*/
... ... @@ -181,7 +189,8 @@
}).catch(error => {
this.$message.error(error.toString());
});
},
}
,
socket_onmessage: function (e) {
console.log("从websocket接收到新的消息-->>" + e.data);
//this.message = this.message + e.data + "\n";
... ... @@ -202,16 +211,19 @@
this.socketResponse.socketTotalNum !== 0 && this.socketResponse.socketCurrentNum !== 0) {
this.generateExcel();
}
},
}
,
socket_onopen: function (e) {
console.log("websocket->>链接已链接");
},
}
,
/**
* 重写日期函数格式化日期
*/
dataFormat(time) {
return `${time.getFullYear()}-${time.getMonth() + 1 >= 10 ? (time.getMonth() + 1) : '0' + (time.getMonth() + 1)}-${time.getDate() >= 10 ? time.getDate() : '0' + time.getDate()} ${time.getHours() >= 10 ? time.getHours() : '0' + time.getHours()}:${time.getMinutes() >= 10 ? time.getMinutes() : '0' + time.getMinutes()}:${time.getSeconds() >= 10 ? time.getSeconds() : '0' + time.getSeconds()}`;
},
}
,
/**
* 将小数转换成百分比
* @param point
... ...