+
#4
diff --git a/src/app/routes/data-v/lj-car-info-table/lj-car-info-table.component.ts b/src/app/routes/data-v/lj-car-info-table/lj-car-info-table.component.ts
index d600993..6c1d9b6 100644
--- a/src/app/routes/data-v/lj-car-info-table/lj-car-info-table.component.ts
+++ b/src/app/routes/data-v/lj-car-info-table/lj-car-info-table.component.ts
@@ -41,16 +41,19 @@ export class DataVLjCarInfoTableComponent implements OnInit {
//默认列配置
@Input() defaultColDef: ColDef = {
- width: 130,
+ // width: 130,
editable: false,
- headerClass: 'ag-header-center',
+ // headerClass: 'ag-header-center',
cellStyle: { 'font-weight': 'bold', textAlign: 'center', 'justify-content': 'center', 'line-height': '38px' }
};
/** 列头 */
@Input() columnDefs: ColDef[] = [];
/**行数据 */
- @Input() rowData: any[] = [];
+ @Input() rowData1: any[] = [];
+ @Input() rowData2: any[] = [];
+ @Input() rowData3: any[] = [];
+ @Input() rowData4: any[] = [];
/**表格主题 */
@Input() gridThemeClass: string = 'ag-theme-quartz';
@Input() paginationThemeClass: string = 'ag-theme-quartz';
@@ -75,74 +78,85 @@ export class DataVLjCarInfoTableComponent implements OnInit {
valueGetter: function (params: any) {
return parseInt(params.node.id) + 1;
},
- width: 90,
- // flex: 2,
- sortable: true,
- unSortIcon: true,
+ width: 20,
+ cellStyle: { 'font-size': '8px' },
field: 'xh'
},
- { headerName: '任务名称', unSortIcon: true, width: 120, field: 'rwmc' },
- { headerName: '任务描述', unSortIcon: true, field: 'rwms', width: 120 },
- { headerName: '开始时间', headerClass: 'ag-header-center', unSortIcon: true, field: 'kssj', width: 180 },
- { headerName: '计划完成时间', unSortIcon: true, field: 'jhwcsj', width: 180 },
- { headerName: '超期', width: 70, field: 'sfcq' },
- { headerName: '操作', width: 90, field: 'cz', cellRenderer: GridButtonValueRenderer }
+ { headerName: '时间', field: 'time', width: 60, cellStyle: { 'font-size': '8px' } },
+ { headerName: '车牌', field: 'carNo', width: 60, cellStyle: { 'font-size': '8px' } },
+ { headerName: '车型', field: 'carType', width: 50, cellStyle: { 'font-size': '8px' } },
+ { headerName: '卡号', field: 'no', width: 50, cellStyle: { 'font-size': '8px' } },
+ { headerName: '供应商', width: 50, field: 'supplier', cellStyle: { 'font-size': '8px' } },
+ { headerName: '毛重', width: 50, field: 'grossWeight', cellStyle: { 'font-size': '8px' } },
+ { headerName: '上报热值', width: 50, field: 'reportHotValue', cellStyle: { 'font-size': '8px' } },
+ { headerName: '估算热值', width: 50, field: 'estimateValue', cellStyle: { 'font-size': '8px' } }
+ // { headerName: '操作', width: 90, field: 'cz', cellRenderer: GridButtonValueRenderer }
];
- tableData = [
- { sort: '1', time: '2024.1.12 18:23', option: '锁定', optionDesc: '锁定1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '释放', optionDesc: '释放1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '锁定', optionDesc: '锁定1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '释放', optionDesc: '释放1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '锁定', optionDesc: '锁定1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '释放', optionDesc: '释放1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '锁定', optionDesc: '锁定1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '释放', optionDesc: '释放1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '锁定', optionDesc: '锁定1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '释放', optionDesc: '释放1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '锁定', optionDesc: '锁定1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '释放', optionDesc: '释放1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '锁定', optionDesc: '锁定1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '释放', optionDesc: '释放1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '锁定', optionDesc: '锁定1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '释放', optionDesc: '释放1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '锁定', optionDesc: '锁定1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '释放', optionDesc: '释放1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '锁定', optionDesc: '锁定1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' },
- { sort: '1', time: '2024.1.12 18:23', option: '释放', optionDesc: '释放1号磅', optionMan: '张三', mark: '早晨', edit: '按钮' }
- // 其他数据...
- ];
/**初始化 */
ngOnInit() {
- for (var i = 1; i < 30; i++) {
- this.rowData.push({
- rwmc: `任务${i}`,
- rwms: `任务描述${i}`,
- kssj: `2024-1-${i} 13:38:${i * 11}`,
- jhwcsj: `2024-1-${i} 13:38:${i * 10}`,
- sfcq: '否',
- dqzt: '正常',
- dqjd: `节点${i}`,
- sjwcsj: `2024-1-${i} 13:38:${i * 27}`,
- bjmc: '报警5',
- bjms: '报警描述5',
- bjsj: `2024-1-${i} 13:38:${i * 12}`,
- gzyy: '-',
- clff: '-',
- tzsj: `2024-1-${i} 13:38:${i * 19}`,
- zycd: '一般',
- tzmc: '系统提示',
- tznr: '账户登录',
- fj: '-',
- cz: '操作'
- });
- }
+ this.rowData1.push({
+ xh: 1,
+ time: '13:25',
+ carNo: 'A4132',
+ carType: '重卡',
+ no: '6-*',
+ supplier: '大同',
+ grossWeight: '7.15',
+ reportHotValue: '7.6',
+ estimateValue: '7.51'
+ });
+ this.rowData1.push({
+ xh: 1,
+ time: '13:25',
+ carNo: 'A4132',
+ carType: '重卡',
+ no: '6-*',
+ supplier: '大同',
+ grossWeight: '7.15',
+ reportHotValue: '7.6',
+ estimateValue: '7.51'
+ });
+ this.rowData1.push({
+ xh: 1,
+ time: '13:25',
+ carNo: 'A4132',
+ carType: '重卡',
+ no: '6-*',
+ supplier: '大同',
+ grossWeight: '7.15',
+ reportHotValue: '7.6',
+ estimateValue: '7.51'
+ });
+ // for (var i = 1; i < 30; i++) {
+ // this.rowData.push({
+ // rwmc: `任务${i}`,
+ // rwms: `任务描述${i}`,
+ // kssj: `2024-1-${i} 13:38:${i * 11}`,
+ // jhwcsj: `2024-1-${i} 13:38:${i * 10}`,
+ // sfcq: '否',
+ // dqzt: '正常',
+ // dqjd: `节点${i}`,
+ // sjwcsj: `2024-1-${i} 13:38:${i * 27}`,
+ // bjmc: '报警5',
+ // bjms: '报警描述5',
+ // bjsj: `2024-1-${i} 13:38:${i * 12}`,
+ // gzyy: '-',
+ // clff: '-',
+ // tzsj: `2024-1-${i} 13:38:${i * 19}`,
+ // zycd: '一般',
+ // tzmc: '系统提示',
+ // tznr: '账户登录',
+ // fj: '-',
+ // cz: '操作'
+ // });
+ // }
console.log('-----表格初始化-----');
// this.title = '';
this.pageSize = 5;
this.pageIndex = 1;
- this.pageRowTotal = this.rowData.length;
+ this.pageRowTotal = this.rowData1.length;
}
//每页数
nzPageSizeChange(_pageSize: any) {
diff --git a/src/app/routes/data-v/lj-card/lj-card.component.less b/src/app/routes/data-v/lj-card/lj-card.component.less
index 7a1eebe..43ebe78 100644
--- a/src/app/routes/data-v/lj-card/lj-card.component.less
+++ b/src/app/routes/data-v/lj-card/lj-card.component.less
@@ -34,8 +34,8 @@ border-radius: 3px;
.card-content {
overflow: hidden;
+ height: 250px;
margin-bottom: 0.5rem;
- //height: 18rem;
padding: 1rem 1.5rem;
padding: 1rem;
diff --git a/src/app/routes/data-v/second1/second1.component.html b/src/app/routes/data-v/second1/second1.component.html
index e839afd..5798ae5 100644
--- a/src/app/routes/data-v/second1/second1.component.html
+++ b/src/app/routes/data-v/second1/second1.component.html
@@ -52,15 +52,16 @@