process.component.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Component, OnInit, ViewChild, Input } from '@angular/core';
  2. import { Router } from '@angular/router';
  3. import { CompTableListComponent } from '../../../../app/comp-table/comp-table-list/comp-table-list.component';
  4. import * as Parse from 'parse';
  5. import { CommonModule } from '@angular/common';
  6. import { EduProcess } from '../../../../schemas/eduProcess';
  7. @Component({
  8. selector: 'app-process',
  9. templateUrl: './process.component.html',
  10. styleUrls: ['./process.component.scss'],
  11. imports: [CommonModule, CompTableListComponent],
  12. standalone: true,
  13. })
  14. export class ProcessComponent implements OnInit {
  15. @ViewChild(CompTableListComponent) list: CompTableListComponent | undefined;
  16. EduProcess = EduProcess;
  17. user: Parse.User | undefined;
  18. className: string | undefined;
  19. queryParams: any | undefined;
  20. fieldsArray: Array<any> | undefined;
  21. constructor() {
  22. this.user = Parse.User.current();
  23. this.className = this.EduProcess.className;
  24. this.fieldsArray = this.EduProcess.fieldsArray;
  25. this.queryParams = {
  26. where: {
  27. isDeleted: { $ne: true },
  28. },
  29. };
  30. }
  31. ngOnInit() {}
  32. }