src/views/eam/equipment/EamEquipmentLedger.vue
@@ -220,7 +220,9 @@ { title: '使用部门', dataIndex: 'factoryOrgCode', scopedSlots: { customRender: 'factoryOrgCode' } scopedSlots: { customRender: 'factoryOrgCode' }, headerAlign: 'center', align: 'left' }, { title: '所属分类', @@ -494,3 +496,18 @@ } } </script> <style scoped lang="less"> /* 表头全部居中 */ ::v-deep .ant-table-thead > tr > th { text-align: center !important; } /* 表体:保养项目、保养内容、验收标准的内容左对齐 */ ::v-deep .ant-table-tbody > tr > td[data-col="factoryOrgCode"] { text-align: left !important; } </style>