diff --git a/egovframe-template-simple-react-contribution/src/pages/standardCode/list/HistoryModal.jsx b/egovframe-template-simple-react-contribution/src/pages/standardCode/list/HistoryModal.jsx
index 99cc163..f2a5114 100644
--- a/egovframe-template-simple-react-contribution/src/pages/standardCode/list/HistoryModal.jsx
+++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/list/HistoryModal.jsx
@@ -3,13 +3,6 @@ import * as File from "utils/file"
import {Button, Modal, Nav} from "react-bootstrap";
function HistoryModal({closeFn, standardCode}){
- function fileDownloadStandardCode(fileSeq){
- File.standardCode(fileSeq);
- }
-
- function fileDownload(fileSeq){
- File.download(fileSeq);
- }
return(
<>
@@ -33,11 +26,11 @@ function HistoryModal({closeFn, standardCode}){
{history.rvsnYmd.split('T')[0]}
{history.docFileGrpId}
- {history.docFileGrpId?:''}
+ {history.docFileGrpId?:''}
{history.rvsnFileGrpId}
- {history.rvsnFileGrpId?:''}
+ {history.rvsnFileGrpId?:''}
)
diff --git a/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer/CodeViewer.jsx b/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer/CodeViewer.jsx
index 9423951..70ef815 100644
--- a/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer/CodeViewer.jsx
+++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer/CodeViewer.jsx
@@ -1,9 +1,7 @@
import React, { useState, useEffect, useCallback } from 'react';
import { useLocation, useParams } from 'react-router-dom';
-import SbItem from './SbItem'
import Loading from 'components/Loading'
import BookmarkModal from './BookmarkModal';
-import {SbContainer} from './Sb.style'
import {VwDiv, VwPtag} from './Vw.style'
import Form from 'react-bootstrap/Form'
import Row from 'react-bootstrap/Row';
@@ -16,6 +14,7 @@ import {parseJwt} from "utils/parseJwt";
import Button from "react-bootstrap/Button";
import {InputGroup} from "react-bootstrap";
import ViewerTree from "./ViewerTree";
+import * as File from "utils/file";
function CodeViewer(props) {
const [treeLoading, setTreeLoading] = useState(true);
@@ -73,6 +72,8 @@ function CodeViewer(props) {
let optionTag = [];
let activeIndex = 0;
let docTitle = "";
+ let docFileGrpId = "";
+ let rvsnFileGrpId = "";
if(ymd===undefined){
activeIndex = docInfo.length-1
docTitle = docInfo[docInfo.length-1].doc_nm
@@ -95,7 +96,10 @@ function CodeViewer(props) {
if(index === activeIndex){
buttonClass += "docInfoActive"
pClass += "yearInfoActive"
+ docFileGrpId = item.doc_file_grp_id;
+ rvsnFileGrpId = item.rvsn_file_grp_id;
}
+
optionTag.push(
{item.doc_yr}
)
})
- headTag.push({docCode} {docTitle}{optionTag}
)
+ headTag.push(
+ <>
+
+
+ {docCode} {docTitle}
+ {optionTag}
+
+
+
+
+
+ {rvsnFileGrpId?{File.download(rvsnFileGrpId)}}/>:''}
+ {docFileGrpId?{File.standardCode(docFileGrpId)}}/>:''}
+
+ >
+ )
}else{
headTag.push(검색된 결과가 없습니다.
); // 코드 목록 초기값
}
@@ -409,13 +428,7 @@ function CodeViewer(props) {
- {docInfo}
-
-
-
-
-
-
+ {docInfo}