Explorar el Código

fix: 固定表头

ZhaoJun hace 1 año
padre
commit
d3459af27d
Se han modificado 1 ficheros con 10 adiciones y 2 borrados
  1. 10 2
      src/pages/DeviceManager/detail.js

+ 10 - 2
src/pages/DeviceManager/detail.js

@@ -205,7 +205,10 @@ const SparePartDetail = () => {
       render: (record) => {
         return (
           <div>
-            {record.in_amount - record.out_amount - record.scrap_amount}
+            {record.in_amount -
+              record.out_amount -
+              record.scrap_amount +
+              record.update_amount}
             {record.unit}
           </div>
         );
@@ -287,7 +290,10 @@ const SparePartDetail = () => {
       render: (record) => {
         return (
           <div>
-            {record.in_amount - record.out_amount - record.scrap_amount}
+            {record.in_amount -
+              record.out_amount -
+              record.scrap_amount +
+              record.update_amount}
             {record.unit}
           </div>
         );
@@ -463,6 +469,7 @@ const SparePartDetail = () => {
       {Number(type) !== PageType.warning && Number(type) !== PageType.base ? (
         <>
           <Table
+            sticky={{ offsetHeader: 0 }}
             loading={loading}
             style={{ marginTop: '10px' }}
             dataSource={dataSource}
@@ -479,6 +486,7 @@ const SparePartDetail = () => {
       ) : (
         <>
           <Table
+            sticky={{ offsetHeader: 0 }}
             loading={loadingExist}
             style={{ marginTop: '10px' }}
             dataSource={dataSource}