lanjianrong 4 년 전
부모
커밋
441d69fc5f
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/pages/Statistic/Software/Usage/index.jsx

+ 4 - 2
src/pages/Statistic/Software/Usage/index.jsx

@@ -247,7 +247,7 @@ const Usage = () => {
               <Table.Summary.Row>
                 <Table.Summary.Cell className="text-center">小计</Table.Summary.Cell>
                 <Table.Summary.Cell className="text-center">
-                  {state.sum?.createCount ? state.sum?.createCount + state.sum?.receiveCount : '-'}
+                  {state.sum?.createCount}
                 </Table.Summary.Cell>
                 <Table.Summary.Cell className="text-center">
                   {state.sum?.receiveCount}
@@ -265,7 +265,9 @@ const Usage = () => {
               <Table.Summary.Row>
                 <Table.Summary.Cell className="text-center">总计</Table.Summary.Cell>
                 <Table.Summary.Cell colSpan={2} className="text-center">
-                  <Text type="danger">{state.create + state.sum?.receiveCount}</Text>
+                  <Text type="danger">
+                    {(state.sum?.createCount || 0) + state.sum?.receiveCount}
+                  </Text>
                 </Table.Summary.Cell>
                 <Table.Summary.Cell colSpan={3} className="text-center">
                   <Text type="danger">