修改季度计划刷新功能
This commit is contained in:
@@ -2,6 +2,8 @@ import { Component, OnInit } from '@angular/core';
|
||||
import { HttpClientService } from '../../services/http-client.service';
|
||||
import { BasicDataService } from '../basic-data-service';
|
||||
import { ChangeDetectorRef } from '@angular/core';
|
||||
import { ToastService } from '../../components/toast/toast.service';
|
||||
import { ToastConfig, ToastType } from '../../components/toast/toast-model';
|
||||
import * as $ from 'jquery';
|
||||
@Component({
|
||||
selector: 'app-seasonal-plan',
|
||||
@@ -13,6 +15,7 @@ export class SeasonalPlanComponent implements OnInit {
|
||||
constructor(
|
||||
private httpCilent: HttpClientService,
|
||||
private basicDataService: BasicDataService,
|
||||
private toastService: ToastService,
|
||||
private changeDetectorRef: ChangeDetectorRef
|
||||
) { }
|
||||
|
||||
@@ -245,7 +248,8 @@ export class SeasonalPlanComponent implements OnInit {
|
||||
* 刷新
|
||||
*/
|
||||
refresh() {
|
||||
this.render_data.reverse();
|
||||
const toastCfg = new ToastConfig(ToastType.SUCCESS, '', '刷新成功!', 3000);
|
||||
this.toastService.toast(toastCfg);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user