update history corporate
This commit is contained in:
@@ -98,8 +98,8 @@ export default function CustomizedAccordions() {
|
||||
|
||||
useEffect(() => {
|
||||
setCorporate(configuredCorporateContext.currentCorporate);
|
||||
const model = 'App\\Models\\ExclusionRules';
|
||||
const url = `/audittrail/${id}?model=${model}`;
|
||||
const model = 'App\\Models\\ExclusionImport';
|
||||
const url = `/audittrail/${corporate_id}?model=${model}`;
|
||||
axios.get(url)
|
||||
.then((res) => {
|
||||
setCurrentCorporate(res.data);
|
||||
@@ -153,7 +153,7 @@ export default function CustomizedAccordions() {
|
||||
<TableBody>
|
||||
{Object.entries(item.old_values).map(([key, value]) => {
|
||||
let renderedValue;
|
||||
if (key === 'deleted_by' || key === 'created_by' || key === 'updated_by') {
|
||||
if (key === 'deleted_by' || key === 'created_by' || key === 'updated_by' || key === 'file_path') {
|
||||
return null; // Melewati iterasi saat key adalah 'deleted_by'
|
||||
}
|
||||
switch (key) {
|
||||
|
||||
@@ -520,9 +520,9 @@ export default function List(props: any) {
|
||||
>
|
||||
Delete
|
||||
</Button> */}
|
||||
<Link to={`/corporate/${corporate_id}/diagnosis-exclusions/${row.id}/history`}>
|
||||
{/* <Link to={`/corporate/${corporate_id}/diagnosis-exclusions/${row.id}/history`}>
|
||||
<HistoryIcon />
|
||||
</Link>
|
||||
</Link> */}
|
||||
</Stack>
|
||||
|
||||
</TableCell>
|
||||
@@ -895,6 +895,11 @@ export default function List(props: any) {
|
||||
<TableCell style={headStyle} align="left">
|
||||
Action
|
||||
</TableCell>
|
||||
<TableCell style={headStyle} align="left">
|
||||
<Link to={`/corporate/${corporate_id}/diagnosis-exclusions/history`}>
|
||||
<HistoryIcon />
|
||||
</Link>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableBody>
|
||||
{dataTableIsLoading ? (
|
||||
|
||||
@@ -166,7 +166,7 @@ export default function Router() {
|
||||
element: <DiagnosisExclusions />,
|
||||
},
|
||||
{
|
||||
path: ':corporate_id/diagnosis-exclusions/:id/history',
|
||||
path: ':corporate_id/diagnosis-exclusions/history',
|
||||
element: <DiagnosisExclusionsHistory />,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user