From 0fe0630f78382913677c04f4e8a0ca9d8d086d66 Mon Sep 17 00:00:00 2001 From: "lijie.hu" Date: Mon, 25 Mar 2024 18:04:03 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E8=A1=8C?= =?UTF-8?q?=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workstation/workstation.component.html | 4 +--- .../workstation/workstation.component.ts | 24 +++++++++---------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/app/routes/data-v/workstation/workstation.component.html b/src/app/routes/data-v/workstation/workstation.component.html index 5c824af..bcb2184 100644 --- a/src/app/routes/data-v/workstation/workstation.component.html +++ b/src/app/routes/data-v/workstation/workstation.component.html @@ -3,7 +3,6 @@ diff --git a/src/app/routes/data-v/workstation/workstation.component.ts b/src/app/routes/data-v/workstation/workstation.component.ts index 354f131..9c235fd 100644 --- a/src/app/routes/data-v/workstation/workstation.component.ts +++ b/src/app/routes/data-v/workstation/workstation.component.ts @@ -72,19 +72,17 @@ export class DataVWorkstationComponent implements OnInit, AfterViewInit { valueGetter: function (params: any) { return parseInt(params.node.id) + 1; }, - // width: 90, - // flex: 2, sortable: true, unSortIcon: true, - field: 'xh' + field: 'xh', + flex: 1 }, - - { headerName: '任务名称', unSortIcon: true, field: 'rwmc' }, - { headerName: '任务描述', unSortIcon: true, field: 'rwms' }, - { headerName: '开始时间', headerClass: 'ag-header-center', unSortIcon: true, field: 'kssj' }, - { headerName: '计划完成时间', unSortIcon: true, field: 'jhwcsj' }, - { headerName: '超期', field: 'sfcq' }, - { headerName: '操作', autoHeaderHeight: true, field: 'cz', cellRenderer: GridButtonValueRenderer } + { headerName: '任务名称', unSortIcon: true, field: 'rwmc', flex: 2 }, + { headerName: '任务描述', unSortIcon: true, field: 'rwms', flex: 3 }, + { headerName: '开始时间', headerClass: 'ag-header-center', unSortIcon: true, field: 'kssj', flex: 2 }, + { headerName: '计划完成时间', unSortIcon: true, field: 'jhwcsj', flex: 2 }, + { headerName: '超期', field: 'sfcq', flex: 1 }, + { headerName: '操作', autoHeaderHeight: true, field: 'cz', cellRenderer: GridButtonValueRenderer, flex: 1 } ]; colDefs2: ColDef[] = [ { @@ -102,7 +100,7 @@ export class DataVWorkstationComponent implements OnInit, AfterViewInit { { headerName: '当前状态', field: 'dqzt' }, { headerName: '当前节点', field: 'dqjd' }, { headerName: '实际完成时间', field: 'sjwcsj', minWidth: 170, flex: 1 }, - { headerName: '操作', autoHeight: true, width: 110, field: 'cz', cellRenderer: GridButtonValueRenderer } + { headerName: '操作', autoHeaderHeight: true, width: 110, field: 'cz', cellRenderer: GridButtonValueRenderer } ]; colDefs3: ColDef[] = [ @@ -119,7 +117,7 @@ export class DataVWorkstationComponent implements OnInit, AfterViewInit { { headerName: '报警等级', unSortIcon: true, field: 'bjdg' }, { headerName: '报警描述', unSortIcon: true, field: 'bjms', minWidth: 170, flex: 1 }, { headerName: '报警时间', unSortIcon: true, field: 'bjsj', minWidth: 170, flex: 1 }, - { headerName: '操作', autoHeight: true, width: 110, field: 'cz', cellRenderer: GridButtonValueRenderer }, + { headerName: '操作', autoHeaderHeight: true, width: 110, field: 'cz', cellRenderer: GridButtonValueRenderer }, { headerName: '故障原因', field: 'gzyy' }, { headerName: '处理方法', field: 'clff' }, @@ -142,7 +140,7 @@ export class DataVWorkstationComponent implements OnInit, AfterViewInit { { headerName: '通知名称', unSortIcon: true, field: 'tzmc' }, { headerName: '通知内容', unSortIcon: true, field: 'tznr', minWidth: 170, flex: 1 }, { headerName: '附件', field: 'fj' }, - { headerName: '操作', autoHeight: true, width: 110, field: 'cz', cellRenderer: GridButtonValueRenderer } + { headerName: '操作', autoHeaderHeight: true, width: 110, field: 'cz', cellRenderer: GridButtonValueRenderer } ]; client: any;