配餐项目前端文件
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.

44 lines
1.1 KiB

2 years ago
import { Component } from "@angular/core";
import { FormBuilder, FormGroup } from "@angular/forms";
2 years ago
import { ActivatedRoute, Router } from "@angular/router";
import { ApiService } from "@cdk/services";
2 years ago
import { FormValidators } from "@cdk/validators";
2 years ago
import { NzMessageService } from "ng-zorro-antd/message";
2 years ago
@Component({
selector: "app-standard-setting",
templateUrl: "./standard-setting.component.html",
styleUrls: ["./standard-setting.component.less"],
})
export class StandardSettingComponent {
2 years ago
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;
2 years ago
formGroup!: FormGroup;
uploadLoading = false;
2 years ago
ngOnInit(): void {}
2 years ago
onSubmit() {
this.router.navigate(["/", "standard", "setting", "45"]);
}
}