Browse Source

[完善]预案推演模块

tianjin
邵佳豪 2 years ago
parent
commit
a7fdba960f
  1. 2
      src/app/plan-management/entry-plan-look/six-familiarize/six-familiarize.component.scss
  2. 6
      src/app/plan-management/plan-deduction/add-plan/add-plan.component.html
  3. 3
      src/app/plan-management/plan-deduction/add-plan/add-plan.component.scss
  4. 7
      src/app/plan-management/plan-deduction/add-plan/add-plan.component.ts
  5. 11
      src/app/plan-management/plan-deduction/plan-deduction.component.ts

2
src/app/plan-management/entry-plan-look/six-familiarize/six-familiarize.component.scss

@ -46,7 +46,7 @@
.textbox {
height: 32px;
line-height: 32px;
width: 50%;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

6
src/app/plan-management/plan-deduction/add-plan/add-plan.component.html

@ -17,6 +17,12 @@
<nz-spin *ngIf="isLoading"></nz-spin>
</ng-template>
</div>
<div>
<span class="name">创建机构:</span>
<nz-tree-select [nzDropdownClassName]="'maxHeightTreeSelect'" [nzNodes]="nodes" nzShowSearch
nzPlaceHolder="请选择创建人" [(ngModel)]="orid">
</nz-tree-select>
</div>
</div>
</div>
<!-- <div class="mask" *ngIf="isLoading">

3
src/app/plan-management/plan-deduction/add-plan/add-plan.component.scss

@ -28,7 +28,8 @@
flex: 1;
}
nz-select{
nz-select,
nz-tree-select {
width: 72.5%;
}
}

7
src/app/plan-management/plan-deduction/add-plan/add-plan.component.ts

@ -21,6 +21,7 @@ export class AddPlanComponent implements OnInit {
ngOnInit(): void {
console.log("传递的数据", this.data);
this.nodes = this.data;
this.getCompanies();
}
@ -28,7 +29,7 @@ export class AddPlanComponent implements OnInit {
planname;
unitid;
orid;
optionList: string[] = [];
PageNumber = 1;
PageSize = 10;
@ -67,9 +68,12 @@ export class AddPlanComponent implements OnInit {
this.getCompanies($event);
}
nodes;
save() {
console.log(1, this.planname);
console.log(2, this.unitid);
console.log(3, this.orid);
// return;
if (!this.planname || !this.unitid) {
this.snackBar.open("请输入完整", "确定", {
@ -84,6 +88,7 @@ export class AddPlanComponent implements OnInit {
planCategory: 9, //temp
planMode: 2,
planType: 1,
exCreatorId: this.orid ? this.orid : "",
};
this.http
.post(`/api/PlanComponents2D?companyId=${this.unitid}`, body)

11
src/app/plan-management/plan-deduction/plan-deduction.component.ts

@ -85,9 +85,9 @@ export class PlanDeductionComponent implements OnInit {
PageNumber: any = 1; //第几页
getTabledataSource() {
let params: any = {
// Name: this.name || "",
// CompnayName: this.companyname || "",
// CommitterOrganizationId: this.orId || "",
Name: this.name || "",
CompanyName: this.companyname || "",
CommitterOrganizationId: this.orId || "",
PlanCategory: 9,
PageNumber: this.PageNumber,
PageSize: this.pageSize,
@ -121,14 +121,15 @@ export class PlanDeductionComponent implements OnInit {
//重置
reset() {
this.name = "";
this.orId = this.organizationId;
this.time = null;
this.companyname = "";
this.orId = "";
this.onSubmit();
}
add() {
const dialogRef = this.dialog.open(AddPlanComponent, {
width: "400px",
data: this.nodes,
});
dialogRef.afterClosed().subscribe((data) => {
if (data) {

Loading…
Cancel
Save