보안모드 처리 수정

main
이범준 9 months ago
parent 1bc6685a42
commit 7ff08bee51

@ -330,8 +330,6 @@
style="width:120px">성명</th> style="width:120px">성명</th>
<th class="privacy" <th class="privacy"
style="width:160px">주민번호</th> style="width:160px">주민번호</th>
<th class="privacy-mask"
style="width:160px">주민번호</th>
<th class="dummy-th"></th> <th class="dummy-th"></th>
</tr> </tr>
</thead> </thead>
@ -348,14 +346,16 @@
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_STTS_CD}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_STTS_CD}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{FFNLG_CRDN_AMT}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{FFNLG_CRDN_AMT}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-start">{RTPYR_NM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-start">{RTPYR_NM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center privacy">{RTPYR_NO}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center privacy-cell">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center privacy-mask">************</td> <span>{RTPYR_NO}</span>
<span>************</span>
</td>
<td class="dummy-td"></td> <td class="dummy-td"></td>
</tr> </tr>
</template> </template>
<template id="sameVehicleInspectionSubNotFound--${pageName}"> <template id="sameVehicleInspectionSubNotFound--${pageName}">
<tr class="odd"> <tr class="odd">
<td valign="top" colspan="11" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td> <td valign="top" colspan="10" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
</tr> </tr>
</template> </template>
</table> </table>
@ -577,7 +577,7 @@ $(document).ready(function(){
$P.searchDetailInspectionDataList = (dataKey) => { $P.searchDetailInspectionDataList = (dataKey) => {
$P.sameVehicleSubControl.query = {}; $P.sameVehicleSubControl.query = {};
$P.sameVehicleSubControl.query.inspectionDataType = "sameVehicleSub"; $P.sameVehicleSubControl.query.inspectionDataType = "sameVehicleSub";
$P.sameVehicleSubControl.query.crdnIDs = dataKey; $P.sameVehicleSubControl.query.crdnIds = dataKey;
$P.sameVehicleSubControl.query.taskSeCd = $P.sameVehicleMainControl.query.taskSeCd; $P.sameVehicleSubControl.query.taskSeCd = $P.sameVehicleMainControl.query.taskSeCd;
$P.sameVehicleSubControl.load(0); $P.sameVehicleSubControl.load(0);
} }
@ -718,8 +718,8 @@ $(document).ready(function(){
$P.sameVehicleMainControl.download(); $P.sameVehicleMainControl.download();
} else { } else {
var cellDefs = getCellDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th").not(":hidden"), var cellDefs = getCellDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th"),
$($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td").not(".privacy-mask")); $($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td"));
$P.sameVehicleSubControl.query.cellDefs = cellDefs; $P.sameVehicleSubControl.query.cellDefs = cellDefs;
$P.sameVehicleSubControl.download(); $P.sameVehicleSubControl.download();

@ -248,8 +248,8 @@ $(document).ready(function() {
return; return;
} }
cellDefs = getCellDefs($("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"), cellDefs = getCellDefs($("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask")); $($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
$P.integrationSearchControl.query.gridType = "up"; $P.integrationSearchControl.query.gridType = "up";
} else { } else {
@ -258,8 +258,8 @@ $(document).ready(function() {
return; return;
} }
cellDefs = getCellDefs($("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"), cellDefs = getCellDefs($("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask")); $($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
$P.integrationSearchControl.query.gridType = "down"; $P.integrationSearchControl.query.gridType = "down";
} }

@ -61,11 +61,7 @@
onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'perfect');" onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'perfect');"
>납부자명 >납부자명
</th> </th>
<th class="cmn privacy" style="width: 180px;" <th class="cmn privacy-cell" style="width: 180px;"
onclick="searchFromGridTitle('RTPYR_NO', this.innerText, 'match', 'perfect');"
>납부자번호
</th>
<th class="cmn privacy-mask" style="width: 180px;"
onclick="searchFromGridTitle('RTPYR_NO', this.innerText, 'match', 'perfect');" onclick="searchFromGridTitle('RTPYR_NO', this.innerText, 'match', 'perfect');"
>납부자번호 >납부자번호
</th> </th>

@ -61,13 +61,9 @@
onclick="{onclick}" ondblclick="{ondblclick}" onclick="{onclick}" ondblclick="{ondblclick}"
>{RTPYR_NM} >{RTPYR_NM}
</td> </td>
<td class="cmn text-center privacy" <td class="cmn text-center privacy-cell"
onclick="{onclick}" ondblclick="{ondblclick}" onclick="{onclick}" ondblclick="{ondblclick}"
>{RTPYR_NO} ><span>{RTPYR_NO}</span><span>************</span>
</td>
<td class="cmn text-center privacy-mask"
onclick="{onclick}" ondblclick="{ondblclick}"
>************
</td> </td>
<td class="cmn text-center" <td class="cmn text-center"
onclick="{onclick}" ondblclick="{ondblclick}" onclick="{onclick}" ondblclick="{ondblclick}"
@ -195,6 +191,6 @@
<template id="notFound--${pageName}"> <template id="notFound--${pageName}">
<tr class="odd"> <tr class="odd">
<td valign="top" colspan="46" class="dataTables_empty text-center">정보를 찾지 못했습니다.</td> <td valign="top" colspan="45" class="dataTables_empty text-center">정보를 찾지 못했습니다.</td>
</tr> </tr>
</template> </template>

@ -327,7 +327,7 @@ function showHelp(){
* 보안모드 토글 처리 * 보안모드 토글 처리
*/ */
function fn_securityModeToggle(flag, elementId){ function fn_securityModeToggle(flag, elementId){
var executionArea; var executionArea;
if(elementId){ if(elementId){
executionArea = $("#"+elementId); executionArea = $("#"+elementId);
@ -350,21 +350,16 @@ function fn_securityModeToggle(flag, elementId){
$("input.privacy-mask").removeAttr("hidden"); $("input.privacy-mask").removeAttr("hidden");
//그리드 //그리드
$("th.privacy").attr("hidden","hidden"); $("body").addClass("root-privacy-on");
$("td.privacy").attr("hidden","hidden");
$("th.privacy-mask").removeAttr("hidden");
$("td.privacy-mask").removeAttr("hidden");
} else { //개인정보 표시 } else { //개인정보 표시
//입력상자 //입력상자
$("input.privacy").removeAttr("hidden"); $("input.privacy").removeAttr("hidden");
$("input.privacy-mask").attr("hidden","hidden"); $("input.privacy-mask").attr("hidden","hidden");
$("th.privacy").removeAttr("hidden"); //그리드
$("td.privacy").removeAttr("hidden"); $("body").removeClass("root-privacy-on");
$("th.privacy-mask").attr("hidden","hidden");
$("td.privacy-mask").attr("hidden","hidden");
} }

@ -1,3 +1,18 @@
body:not(.root-privacy-on) td.privacy-cell span:nth-child(1){
display:block;
}
body:not(.root-privacy-on) td.privacy-cell span:nth-child(2){
display:none;
}
body.root-privacy-on td.privacy-cell span:nth-child(1){
display:none;
}
body.root-privacy-on td.privacy-cell span:nth-child(2){
display:block;
}
caption { caption {
display: none; display: none;

@ -291,7 +291,13 @@ function getCellDefs($th, $td){
var width = $th.eq(i).outerWidth(); var width = $th.eq(i).outerWidth();
width = Math.ceil(width/10) + 2; width = Math.ceil(width/10) + 2;
var field = $td.eq(i).text();
var field;
if($td.eq(i).hasClass("privacy-cell")){
field = $td.eq(i).find("span:eq(0)").text();
} else {
field = $td.eq(i).text();
}
field = field.replace("{", ""); field = field.replace("{", "");
field = field.replace("}", ""); field = field.replace("}", "");

Loading…
Cancel
Save