|
@@ -148,7 +148,7 @@ const Device = ({ projectId }) => {
|
|
|
});
|
|
|
|
|
|
const allData = useMemo(() => {
|
|
|
- const total = data?.reduce((total, item) => item.Count, 0);
|
|
|
+ const total = data?.reduce((total, item) => total + item.Count, 0);
|
|
|
const items = data?.map((item, idx) => {
|
|
|
const itemLen = item?.List?.length;
|
|
|
return {
|
|
@@ -293,8 +293,8 @@ const Device = ({ projectId }) => {
|
|
|
pagination={false}
|
|
|
onRow={(record, index) => ({
|
|
|
onClick: () => {
|
|
|
- localStorage.repair = JSON.stringify(record)
|
|
|
- UnityAction.sendMsg("RepairDetail")
|
|
|
+ localStorage.repair = JSON.stringify(record);
|
|
|
+ UnityAction.sendMsg('RepairDetail');
|
|
|
},
|
|
|
})}
|
|
|
/>
|
|
@@ -308,8 +308,8 @@ const Device = ({ projectId }) => {
|
|
|
pagination={false}
|
|
|
onRow={(record, index) => ({
|
|
|
onClick: () => {
|
|
|
- localStorage.maintain = JSON.stringify(record)
|
|
|
- UnityAction.sendMsg("MaintainDetail")
|
|
|
+ localStorage.maintain = JSON.stringify(record);
|
|
|
+ UnityAction.sendMsg('MaintainDetail');
|
|
|
},
|
|
|
})}
|
|
|
/>
|