作者 王勇

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

@@ -132,8 +132,8 @@ @@ -132,8 +132,8 @@
132 getExitDataAnalysis(_this.queryInfo).catch(error => { 132 getExitDataAnalysis(_this.queryInfo).catch(error => {
133 // _this.$message.info("即将结束!请您稍候"); 133 // _this.$message.info("即将结束!请您稍候");
134 }); 134 });
135 - }  
136 - , 135 + },
  136 +
137 /** 137 /**
138 * 下载excel 138 * 下载excel
139 */ 139 */
@@ -159,8 +159,8 @@ @@ -159,8 +159,8 @@
159 this.$message.error(error.toString()); 159 this.$message.error(error.toString());
160 }); 160 });
161 161
162 - }  
163 - , 162 + },
  163 +
164 down() { 164 down() {
165 // 创建a标签 165 // 创建a标签
166 const link = document.createElement('a'); 166 const link = document.createElement('a');
@@ -172,8 +172,8 @@ @@ -172,8 +172,8 @@
172 document.body.appendChild(link); 172 document.body.appendChild(link);
173 // 自执行点击事件 173 // 自执行点击事件
174 link.click() 174 link.click()
175 - }  
176 - , 175 + },
  176 +
177 /** 177 /**
178 * 生成excel 178 * 生成excel
179 */ 179 */
@@ -189,8 +189,8 @@ @@ -189,8 +189,8 @@
189 }).catch(error => { 189 }).catch(error => {
190 this.$message.error(error.toString()); 190 this.$message.error(error.toString());
191 }); 191 });
192 - }  
193 - , 192 + },
  193 +
194 socket_onmessage: function (e) { 194 socket_onmessage: function (e) {
195 console.log("从websocket接收到新的消息-->>" + e.data); 195 console.log("从websocket接收到新的消息-->>" + e.data);
196 //this.message = this.message + e.data + "\n"; 196 //this.message = this.message + e.data + "\n";
@@ -211,19 +211,19 @@ @@ -211,19 +211,19 @@
211 this.socketResponse.socketTotalNum !== 0 && this.socketResponse.socketCurrentNum !== 0) { 211 this.socketResponse.socketTotalNum !== 0 && this.socketResponse.socketCurrentNum !== 0) {
212 this.generateExcel(); 212 this.generateExcel();
213 } 213 }
214 - }  
215 - , 214 + },
  215 +
216 socket_onopen: function (e) { 216 socket_onopen: function (e) {
217 console.log("websocket->>链接已链接"); 217 console.log("websocket->>链接已链接");
218 - }  
219 - , 218 + },
  219 +
220 /** 220 /**
221 * 重写日期函数格式化日期 221 * 重写日期函数格式化日期
222 */ 222 */
223 dataFormat(time) { 223 dataFormat(time) {
224 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()}`; 224 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()}`;
225 - }  
226 - , 225 + },
  226 +
227 /** 227 /**
228 * 将小数转换成百分比 228 * 将小数转换成百分比
229 * @param point 229 * @param point