@@ -84,6 +84,10 @@ export default function OrganizationTable({ recordList }) { | |||||
}, | }, | ||||
]; | ]; | ||||
function handleRowDoubleClick(params) { | |||||
navigate('/org/' + params.id); | |||||
} | |||||
return ( | return ( | ||||
<div style={{ height: "fit-content", width: '100%' }}> | <div style={{ height: "fit-content", width: '100%' }}> | ||||
<FiDataGrid | <FiDataGrid | ||||
@@ -94,6 +98,7 @@ export default function OrganizationTable({ recordList }) { | |||||
paginationModel: { page: 0, pageSize: 5 }, | paginationModel: { page: 0, pageSize: 5 }, | ||||
}, | }, | ||||
}} | }} | ||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
</div> | </div> | ||||
); | ); | ||||
@@ -125,6 +125,10 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
var zero = places - num.toString().length + 1; | var zero = places - num.toString().length + 1; | ||||
return Array(+(zero > 0 && zero)).join("0") + num; | return Array(+(zero > 0 && zero)).join("0") + num; | ||||
} | } | ||||
function handleRowDoubleClick(params) { | |||||
navigate('/proof/reply/' + params.row.id); | |||||
} | |||||
return ( | return ( | ||||
<div style={{ height: 400, width: '100%' }}> | <div style={{ height: 400, width: '100%' }}> | ||||
@@ -138,6 +142,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
paginationModel: { page: 0, pageSize: 5 }, | paginationModel: { page: 0, pageSize: 5 }, | ||||
}, | }, | ||||
}} | }} | ||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
</div> | </div> | ||||
); | ); | ||||
@@ -126,6 +126,10 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
return Array(+(zero > 0 && zero)).join("0") + num; | return Array(+(zero > 0 && zero)).join("0") + num; | ||||
} | } | ||||
function handleRowDoubleClick(params) { | |||||
navigate('/proof/reply/' + params.row.id); | |||||
} | |||||
return ( | return ( | ||||
<div style={{ height: 400, width: '100%' }}> | <div style={{ height: 400, width: '100%' }}> | ||||
@@ -138,6 +142,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
paginationModel: { page: 0, pageSize: 5 }, | paginationModel: { page: 0, pageSize: 5 }, | ||||
}, | }, | ||||
}} | }} | ||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
</div> | </div> | ||||
); | ); | ||||
@@ -83,6 +83,10 @@ export default function BaseGrid({rows}) { | |||||
}, | }, | ||||
} | } | ||||
]; | ]; | ||||
function handleRowDoubleClick(params) { | |||||
navigate('/publicNotice/'+ params.id); | |||||
} | |||||
return ( | return ( | ||||
<div style={{height: 400, width: '100%', padding: 4}}> | <div style={{height: 400, width: '100%', padding: 4}}> | ||||
@@ -94,6 +98,7 @@ export default function BaseGrid({rows}) { | |||||
paginationModel: {page: 0, pageSize: 5}, | paginationModel: {page: 0, pageSize: 5}, | ||||
}, | }, | ||||
}} | }} | ||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
</div> | </div> | ||||
); | ); | ||||
@@ -106,6 +106,10 @@ export default function SubmittedTab({ rows }) { | |||||
return content; | return content; | ||||
} | } | ||||
function handleRowDoubleClick(params) { | |||||
navigate('/publicNotice/'+ params.id); | |||||
} | |||||
return ( | return ( | ||||
<> | <> | ||||
<div style={{ height: 400, width: '100%', padding: 4 }}> | <div style={{ height: 400, width: '100%', padding: 4 }}> | ||||
@@ -122,6 +126,7 @@ export default function SubmittedTab({ rows }) { | |||||
onRowSelectionModelChange={(newSelection) => { | onRowSelectionModelChange={(newSelection) => { | ||||
setSelectedRowItems(newSelection); | setSelectedRowItems(newSelection); | ||||
}} | }} | ||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
<Button variant="contained" onClick={() => { setIsPopUp(true) }}>付款</Button> | <Button variant="contained" onClick={() => { setIsPopUp(true) }}>付款</Button> | ||||
</div> | </div> | ||||
@@ -90,6 +90,9 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
} | } | ||||
]; | ]; | ||||
function handleRowDoubleClick(params) { | |||||
navigate('/publicNotice/'+ params.id); | |||||
} | |||||
return ( | return ( | ||||
<div style={{ height: 400, width: '100%' }}> | <div style={{ height: 400, width: '100%' }}> | ||||
@@ -102,6 +105,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
paginationModel: { page: 0, pageSize: 5 }, | paginationModel: { page: 0, pageSize: 5 }, | ||||
}, | }, | ||||
}} | }} | ||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
</div> | </div> | ||||
); | ); | ||||
@@ -107,6 +107,11 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
return Array(+(zero > 0 && zero)).join("0") + num; | return Array(+(zero > 0 && zero)).join("0") + num; | ||||
} | } | ||||
function handleRowDoubleClick(params) { | |||||
// handleEditClick(params) | |||||
navigate('/application/'+ params.id); | |||||
} | |||||
return ( | return ( | ||||
<div style={{ height: 400, width: '100%' }}> | <div style={{ height: 400, width: '100%' }}> | ||||
@@ -118,6 +123,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
paginationModel: { page: 0, pageSize: 5 }, | paginationModel: { page: 0, pageSize: 5 }, | ||||
}, | }, | ||||
}} | }} | ||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
</div> | </div> | ||||
); | ); | ||||
@@ -121,6 +121,10 @@ export default function UserTable({recordList,setChangeLocked}) { | |||||
}, | }, | ||||
]; | ]; | ||||
function handleRowDoubleClick(params) { | |||||
navigate('/user/'+ params.id); | |||||
} | |||||
return ( | return ( | ||||
<div style={{height: "fit-content", width: '100%'}}> | <div style={{height: "fit-content", width: '100%'}}> | ||||
<FiDataGrid | <FiDataGrid | ||||
@@ -130,7 +134,8 @@ export default function UserTable({recordList,setChangeLocked}) { | |||||
pagination: { | pagination: { | ||||
paginationModel: {page: 0, pageSize: 5}, | paginationModel: {page: 0, pageSize: 5}, | ||||
}, | }, | ||||
}} | |||||
}} | |||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
</div> | </div> | ||||
); | ); | ||||
@@ -129,6 +129,10 @@ export default function UserTable_Individual({ recordList }) { | |||||
}, | }, | ||||
]; | ]; | ||||
function handleRowDoubleClick(params) { | |||||
navigate('/indUser/' + params.id); | |||||
} | |||||
return ( | return ( | ||||
<div style={{ height: "fit-content", width: '100%' }}> | <div style={{ height: "fit-content", width: '100%' }}> | ||||
<FiDataGrid | <FiDataGrid | ||||
@@ -139,7 +143,7 @@ export default function UserTable_Individual({ recordList }) { | |||||
paginationModel: { page: 0, pageSize: 5 }, | paginationModel: { page: 0, pageSize: 5 }, | ||||
}, | }, | ||||
}} | }} | ||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
</div> | </div> | ||||
); | ); | ||||
@@ -126,6 +126,10 @@ export default function UserTable_Organization({recordList}) { | |||||
}, | }, | ||||
]; | ]; | ||||
function handleRowDoubleClick(params) { | |||||
navigate('/orgUser/'+ params.id); | |||||
} | |||||
return ( | return ( | ||||
<div style={{height: "fit-content", width: '100%'}}> | <div style={{height: "fit-content", width: '100%'}}> | ||||
<FiDataGrid | <FiDataGrid | ||||
@@ -136,6 +140,7 @@ export default function UserTable_Organization({recordList}) { | |||||
paginationModel: {page: 0, pageSize: 5}, | paginationModel: {page: 0, pageSize: 5}, | ||||
}, | }, | ||||
}} | }} | ||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
</div> | </div> | ||||
); | ); | ||||
@@ -54,6 +54,10 @@ export default function UserGroupTable({recordList}) { | |||||
}, | }, | ||||
]; | ]; | ||||
function handleRowDoubleClick(params) { | |||||
navigate('/userGroup/'+ params.id); | |||||
} | |||||
return ( | return ( | ||||
<div style={{height: "fit-content", width: '100%'}}> | <div style={{height: "fit-content", width: '100%'}}> | ||||
<FiDataGrid | <FiDataGrid | ||||
@@ -65,6 +69,7 @@ export default function UserGroupTable({recordList}) { | |||||
}, | }, | ||||
}} | }} | ||||
pageSizeOptions={[10, 15, 20]} | pageSizeOptions={[10, 15, 20]} | ||||
onRowDoubleClick={handleRowDoubleClick} | |||||
/> | /> | ||||
</div> | </div> | ||||
); | ); | ||||