From 38edb602012f0eaf250a6c881279ade4790c5ae9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EA=B0=95=EC=84=9D=20=EC=B5=9C?=
Date: Mon, 4 Mar 2024 15:08:19 +0900
Subject: [PATCH] =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EB=8B=A4=EC=9A=B4?=
=?UTF-8?q?=EB=A1=9C=EB=93=9C=20=EC=9D=B4=EB=A0=A5=20=EC=83=9D=EC=84=B1=20?=
=?UTF-8?q?=EC=9E=91=EC=97=85=EC=99=84=EB=A3=8C.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/standardCode/list/HistoryModal.jsx | 11 ++-----
.../pages/standardCode/viewer/CodeViewer.jsx | 33 +++++++++++++------
2 files changed, 25 insertions(+), 19 deletions(-)
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}