/*
 * @Author: your name
 * @Date: 2021-12-14 20:39:34
 * @LastEditTime: 2021-12-14 20:43:18
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \tms-obc-web\src\app\routes\supply-management\components\onecar-publish\publish-success\publish-success.component.ts
 */
import { Component } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
  selector: 'publish-goods-publish-success',
  templateUrl: './publish-success.component.html',
  styleUrls: ['./publish-success.component.less']
})
export class PublishSuccessComponent {
  type = 'onecar';
  constructor(private route: ActivatedRoute, private router: Router, public msg: NzMessageService) {
    this.type = route.snapshot.queryParams.type || 'onecar';
  }

  continue() {
    window.location.reload();
  }

  view() {
    this.router.navigate(['/supply-management/index'], { queryParams: { type: this.type } });
  }
}
