선택인쇄 작업중.
parent
bea7d6e4d0
commit
672f3b524c
|
|
@ -80,4 +80,8 @@ button {cursor: pointer;}
|
||||||
.mt10 {margin-top: 10px !important;}
|
.mt10 {margin-top: 10px !important;}
|
||||||
.mt40 {margin-top: 40px !important;}
|
.mt40 {margin-top: 40px !important;}
|
||||||
.ml10 {margin-left: 10px !important;}
|
.ml10 {margin-left: 10px !important;}
|
||||||
.pb10 {padding-bottom: 10px !important;}
|
.pb10 {padding-bottom: 10px !important;}
|
||||||
|
|
||||||
|
|
||||||
|
.detailInfoDiv > div > p { display: inline; }
|
||||||
|
.detailInfoDiv > div > input {margin-right: 5px;}
|
||||||
|
|
@ -98,6 +98,8 @@ function CodeViewer(props) {
|
||||||
if(resp.result.document.length>0){
|
if(resp.result.document.length>0){
|
||||||
const docLinkReg = /([A-Z]{3,5}(\s[0-9]{2}){3,4})/g
|
const docLinkReg = /([A-Z]{3,5}(\s[0-9]{2}){3,4})/g
|
||||||
const docPartReg = /\((?:표|그림|부록)?\s*([A-Z]\.)?(?!\d\))\d+(\.\d+)*(\s?\(\d\))?(-\d+)?(?:\s*[A-Z])?\)/g // /(\((?:표|그림|부록)?\s*([A-Z]\.)?\d+(\.\d+)*(\s?\(\d\))?(-\d+)?(?:\s*[A-Z])?\))/g
|
const docPartReg = /\((?:표|그림|부록)?\s*([A-Z]\.)?(?!\d\))\d+(\.\d+)*(\s?\(\d\))?(-\d+)?(?:\s*[A-Z])?\)/g // /(\((?:표|그림|부록)?\s*([A-Z]\.)?\d+(\.\d+)*(\s?\(\d\))?(-\d+)?(?:\s*[A-Z])?\))/g
|
||||||
|
let parentContCd = "";
|
||||||
|
let lastLevel = 0;
|
||||||
resp.result.document.forEach(function (item, index){
|
resp.result.document.forEach(function (item, index){
|
||||||
const isTitle = item.full_content.includes(item.group_title);
|
const isTitle = item.full_content.includes(item.group_title);
|
||||||
if(isTitle){
|
if(isTitle){
|
||||||
|
|
@ -110,6 +112,21 @@ function CodeViewer(props) {
|
||||||
</VwPtag>
|
</VwPtag>
|
||||||
</VwDiv>
|
</VwDiv>
|
||||||
)
|
)
|
||||||
|
if(lastLevel < item.cont_level){
|
||||||
|
parentContCd = parentContCd+" "+item.cont_type_cd;
|
||||||
|
}else{
|
||||||
|
const contCdAry = parentContCd.split(" ");
|
||||||
|
parentContCd = "";
|
||||||
|
contCdAry.forEach(function (contCd, index){
|
||||||
|
if(index+1<item.cont_level){
|
||||||
|
parentContCd = parentContCd+" "+contCd
|
||||||
|
}
|
||||||
|
})
|
||||||
|
parentContCd = parentContCd+" "+item.cont_type_cd;
|
||||||
|
}
|
||||||
|
lastLevel = item.cont_level;
|
||||||
|
parentContCd = parentContCd.trim();
|
||||||
|
item.full_content = "<input type='checkbox' class='"+parentContCd+"' id='"+item.cont_type_cd+"chk'>"+item.full_content;
|
||||||
}
|
}
|
||||||
if(docLinkReg.test(item.full_content)){
|
if(docLinkReg.test(item.full_content)){
|
||||||
const docCodeAry = item.full_content.match(docLinkReg);
|
const docCodeAry = item.full_content.match(docLinkReg);
|
||||||
|
|
@ -201,7 +218,7 @@ function CodeViewer(props) {
|
||||||
<Col xs={2} className="border-end viewerDiv">
|
<Col xs={2} className="border-end viewerDiv">
|
||||||
{docSummary}
|
{docSummary}
|
||||||
</Col>
|
</Col>
|
||||||
<Col xs={7} className="viewerDiv" ref={bookmarkBtnActionAppend}>
|
<Col xs={7} className="viewerDiv detailInfoDiv" ref={bookmarkBtnActionAppend}>
|
||||||
{docDetail}
|
{docDetail}
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue