You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { Component } from "@angular/core";
|
|
|
|
import { FormBuilder, FormGroup } from "@angular/forms";
|
|
|
|
import { ActivatedRoute, Router } from "@angular/router";
|
|
|
|
import { ApiService } from "@cdk/services";
|
|
|
|
import { FormValidators } from "@cdk/validators";
|
|
|
|
import { NzMessageService } from "ng-zorro-antd/message";
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: "app-standard-setting",
|
|
|
|
templateUrl: "./standard-setting.component.html",
|
|
|
|
styleUrls: ["./standard-setting.component.less"],
|
|
|
|
})
|
|
|
|
export class StandardSettingComponent {
|
|
|
|
constructor(
|
|
|
|
private fb: FormBuilder,
|
|
|
|
private router: Router,
|
|
|
|
private route: ActivatedRoute,
|
|
|
|
private api: ApiService,
|
|
|
|
private msg: NzMessageService
|
|
|
|
) {
|
|
|
|
const id = this.route.snapshot.paramMap.get("id");
|
|
|
|
if (id !== "create") {
|
|
|
|
const data = this.router.getCurrentNavigation()?.extras;
|
|
|
|
if (data) {
|
|
|
|
this.state = data.state;
|
|
|
|
} else {
|
|
|
|
this.router.navigate(["/standard/list"]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
state: any;
|
|
|
|
|
|
|
|
formGroup!: FormGroup;
|
|
|
|
|
|
|
|
uploadLoading = false;
|
|
|
|
|
|
|
|
ngOnInit(): void {}
|
|
|
|
|
|
|
|
onSubmit() {
|
|
|
|
this.router.navigate(["/", "standard", "setting", "45"]);
|
|
|
|
}
|
|
|
|
}
|