当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript service.PiaService.getPIA方法代码示例

本文整理汇总了TypeScript中app/entry/pia.service.PiaService.getPIA方法的典型用法代码示例。如果您正苦于以下问题:TypeScript service.PiaService.getPIA方法的具体用法?TypeScript service.PiaService.getPIA怎么用?TypeScript service.PiaService.getPIA使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在app/entry/pia.service.PiaService的用法示例。


在下文中一共展示了service.PiaService.getPIA方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: ngOnChanges

  async ngOnChanges() {
    this._paginationService.dataNav = await this._appDataService.getDataNav();
    await this._piaService.getPIA();

    const sectionId = parseInt(this._activatedRoute.snapshot.params['section_id'], 10);
    const itemId = parseInt(this._activatedRoute.snapshot.params['item_id'], 10);

    this._paginationService.setPagination(sectionId, itemId);
  }
开发者ID:Rachoor,项目名称:pia,代码行数:9,代码来源:entry-content.component.ts

示例2: ngOnInit

 async ngOnInit() {
   await this._piaService.getPIA();
   this.data = await this._appDataService.getDataNav();
   this.data.sections.forEach((section: any) => {
     section.items.forEach((item: any) => {
       this._sidStatusService.setSidStatus(this._piaService, section, item);
     });
   });
 }
开发者ID:Rachoor,项目名称:pia,代码行数:9,代码来源:sections.component.ts

示例3: ngOnInit

  ngOnInit() {
    // Reset measures no longer addable from KB when switching PIA
    this._knowledgeBaseService.toHide = [];

    // Update the last edited date for this PIA
    this._piaService.getPIA().then(() => {
      this._piaService.pia.updated_at = new Date();
      this._piaService.pia.update();
    });
  }
开发者ID:Rachoor,项目名称:pia,代码行数:10,代码来源:entry-content.component.ts

示例4: ngOnInit

 ngOnInit() {
   this.appVersion = environment.version;
   this.pia_is_example = false;
   this._piaService.getPIA().then(() => {
     if (this._piaService.pia.is_example === 1) {
       this.pia_is_example = true;
       this.pia_example = this._piaService.pia;
     } else if (!this._piaService.pia.id) {
       this.loadPiaExample();
     }
   });
 }
开发者ID:Rachoor,项目名称:pia,代码行数:12,代码来源:header.component.ts

示例5: ngOnInit

  ngOnInit() {
    this.validateForm = new FormGroup({
      validateStatus1: new FormControl(),
      validateStatus2: new FormControl(),
      validateStatus3: new FormControl(),
      validateStatus4: new FormControl()
    });
    this._piaService.getPIA().then(() => {
      this.validateForm.controls['validateStatus1'].patchValue(this._piaService.pia.status > 1);
      this.validateForm.controls['validateStatus2'].patchValue(this._piaService.pia.status > 1);
      this.validateForm.controls['validateStatus3'].patchValue(this._piaService.pia.status > 1);
      this.validateForm.controls['validateStatus4'].patchValue(this._piaService.pia.status > 1);

      this._attachmentsService.updateSignedAttachmentsList();
      this._actionPlanService.listActionPlan();
    });
  }
开发者ID:Rachoor,项目名称:pia,代码行数:17,代码来源:validate-pia.component.ts

示例6: ngOnInit

  ngOnInit() {
    this.rejectionReasonForm = new FormGroup({
      rejectionReason: new FormControl()
    });
    this.modificationsMadeForm = new FormGroup({
      modificationsMade: new FormControl()
    });

    this._piaService.getPIA().then(() => {
      if (this._piaService.pia.rejected_reason && this._piaService.pia.rejected_reason.length > 0) {
        this.rejectionReasonForm.controls['rejectionReason'].patchValue(this._piaService.pia.rejected_reason);
        this.rejectionReasonForm.controls['rejectionReason'].disable();
        this.showRejectionReasonButtons = true;
      }

      if (this._piaService.pia.applied_adjustements && this._piaService.pia.rejected_reason
          && this._piaService.pia.applied_adjustements.length > 0 && this._piaService.pia.rejected_reason.length > 0) {
        this.modificationsMadeForm.controls['modificationsMade'].patchValue(this._piaService.pia.applied_adjustements);
        this.modificationsMadeForm.controls['modificationsMade'].disable();
        if (this._piaService.pia.status === 1) {
          this.showResendValidationButton = true;
        }
      }

      // Textareas auto resize
      const rejectionTextarea = document.getElementById('pia-refuse-reason');
      if (rejectionTextarea) {
        this.autoTextareaResize(null, rejectionTextarea);
      }
      const modificationsTextarea = document.getElementById('pia-refuse-modifications');
      if (modificationsTextarea) {
        this.autoTextareaResize(null, modificationsTextarea);
      }
    });

  }
开发者ID:Rachoor,项目名称:pia,代码行数:36,代码来源:refuse-pia.component.ts

示例7: ngOnInit

 ngOnInit() {
   this._piaService.getPIA();
 }
开发者ID:Rachoor,项目名称:pia,代码行数:3,代码来源:pia-validate-history.component.ts


注:本文中的app/entry/pia.service.PiaService.getPIA方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。