diff --git a/egovframe-template-simple-react-contribution/src/css/page.css b/egovframe-template-simple-react-contribution/src/css/page.css index db63189..cd87aed 100644 --- a/egovframe-template-simple-react-contribution/src/css/page.css +++ b/egovframe-template-simple-react-contribution/src/css/page.css @@ -317,4 +317,4 @@ color: forestgreen; } .bookmark:hover{cursor: pointer} - .errorText{color:red; font-size: x-small; vertical-align: bottom; padding-right: 10px;} \ No newline at end of file + .errorText{color:white; background-color: red; font-size: x-small; vertical-align: bottom; padding: 0 10px;} \ No newline at end of file diff --git a/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js b/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js index 0bf3c5b..f3a7645 100644 --- a/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js +++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js @@ -78,7 +78,11 @@ function CodeViewer(props) { } const chkboxControll = () => { - debugger + const flag = this.checked; + const checkBoxList = document.querySelectorAll('.'+this.id.replace('chk', '')) + checkBoxList.forEach((input)=>{ + input.checked = flag + }) } const getCodeDetailInfo = useCallback((docCode) => { @@ -134,6 +138,7 @@ function CodeViewer(props) { "class='titleCheckBox "+parentContCd+"' " + "id='"+item.cont_type_cd+"chk' " + `onclick="const flag = this.checked; document.querySelectorAll('.'+this.id.replace('chk', '')).forEach((input)=>{input.checked = flag})"` + + // "onClick={chkboxControll} "+ ">"+item.full_content; if(item.cont_level===1 && item.cont_order !== 1){ item.full_content = "
"+item.full_content; @@ -174,7 +179,7 @@ function CodeViewer(props) { item.full_content = item.full_content.replace('"+item.full_content; + item.full_content = "

"+item.error_cd+"


"+item.full_content; } item.full_content = item.full_content+"
" detailTag.push(