切换导航条
此项目
正在载入...
登录
朱兆平
/
vue_cli
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王勇
5 years ago
提交
0dc53ec82a94bd815b5163486affdfe3dcbaf98f
1 个父辈
4b016875
航班号与航班日期,不能同时为空
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
23 行增加
和
11 行删除
src/views/dataAnalysis/ExitAnalysis.vue
src/views/dataAnalysis/ExitAnalysis.vue
查看文件 @
0dc53ec
...
...
@@ -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
...
...
请
注册
或
登录
后发表评论