工具类抽取及历史数据处理

This commit is contained in:
zhouyuejun
2018-12-15 17:04:16 +08:00
parent 595a3f38ab
commit 1e735059f8
52 changed files with 890 additions and 948 deletions
+8 -17
View File
@@ -5,16 +5,16 @@ import { ToastService } from '../../components/toast/toast.service';
import { ToastConfig, ToastType } from '../../components/toast/toast-model';
import { HttpClientService } from '../../services/http-client.service';
import { BasicDataService } from '../basic-data-service';
import { OperateSpinServiceService } from '../operate-spin-service.service';
import { BasicDataService } from '../../services/basic-data-service';
import { OperateSpinServiceService } from '../../services/operate-spin-service.service';
import { WebsocketService } from '../../services/websocket.service';
import { DynamicFlightOrder } from './utils/dynamic-flight-order';
import { FlightsDataHandle } from './utils/flights-data-handle';
import { CellColorHandle } from './utils/cell-color-handle';
import { AlertMessageHandle } from './utils/alert-message-handle';
import { DynamicFlightOrder } from '../../utils/dynamic-flight-order';
import { FlightsDataHandle } from '../../utils/flights-data-handle';
import { CellColorHandle } from '../../utils/cell-color-handle';
import { AlertMessageHandle } from '../../utils/alert-message-handle';
import dateFormatter from '../../utils/data-formatter';
import dateFormatter from '../../utils/date-formatter';
import * as $ from 'jquery';
@Component({
@@ -321,16 +321,7 @@ export class MainComponent implements OnInit {
* 刷新
*/
refresh() {
// let testss = this.render_data.reverse();
// let tstt = [];
// testss.forEach(element => {
// tstt.push(Object.assign({}, element))
// })
// this.render_data = testss;
// this.changeDetectorRef.detectChanges();
const toastCfg = new ToastConfig(ToastType.SUCCESS, '', '登录成功!', 3000);
const toastCfg = new ToastConfig(ToastType.SUCCESS, '', '刷新成功!', 3000);
this.toastService.toast(toastCfg);
}