|
@@ -1,4 +1,4 @@
|
|
-import { Component, OnInit, Input, ViewChild, ElementRef, ChangeDetectionStrategy } from '@angular/core';
|
|
|
|
|
|
+import { Component, OnInit, Input, ViewChild, ElementRef, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { CommonModule } from '@angular/common';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { ActivatedRoute } from '@angular/router';
|
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -204,7 +204,8 @@ export class StageOrderComponent implements OnInit {
|
|
constructor(
|
|
constructor(
|
|
private route: ActivatedRoute,
|
|
private route: ActivatedRoute,
|
|
private projectFileService: ProjectFileService,
|
|
private projectFileService: ProjectFileService,
|
|
- private productSpaceService: ProductSpaceService
|
|
|
|
|
|
+ private productSpaceService: ProductSpaceService,
|
|
|
|
+ private cdr: ChangeDetectorRef
|
|
) {
|
|
) {
|
|
this.checkWxWorkSupport();
|
|
this.checkWxWorkSupport();
|
|
}
|
|
}
|
|
@@ -350,7 +351,7 @@ export class StageOrderComponent implements OnInit {
|
|
const department = this.project.get('department');
|
|
const department = this.project.get('department');
|
|
if (department) {
|
|
if (department) {
|
|
this.selectedDepartment = department;
|
|
this.selectedDepartment = department;
|
|
- await this.loadDepartmentMembers(department.id);
|
|
|
|
|
|
+ await this.loadDepartmentMembers(department);
|
|
}
|
|
}
|
|
|
|
|
|
const assignee = this.project.get('assignee');
|
|
const assignee = this.project.get('assignee');
|
|
@@ -378,6 +379,7 @@ export class StageOrderComponent implements OnInit {
|
|
console.error('加载失败:', err);
|
|
console.error('加载失败:', err);
|
|
} finally {
|
|
} finally {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
+ this.cdr.markForCheck();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -410,6 +412,7 @@ export class StageOrderComponent implements OnInit {
|
|
console.error('加载项目空间失败:', error);
|
|
console.error('加载项目空间失败:', error);
|
|
} finally {
|
|
} finally {
|
|
this.loadingSpaces = false;
|
|
this.loadingSpaces = false;
|
|
|
|
+ this.cdr.markForCheck();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|