보안모드 처리 수정

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

@ -330,8 +330,6 @@
style="width:120px">성명</th>
<th class="privacy"
style="width:160px">주민번호</th>
<th class="privacy-mask"
style="width:160px">주민번호</th>
<th class="dummy-th"></th>
</tr>
</thead>
@ -348,14 +346,16 @@
<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-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-mask">************</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center privacy-cell">
<span>{RTPYR_NO}</span>
<span>************</span>
</td>
<td class="dummy-td"></td>
</tr>
</template>
<template id="sameVehicleInspectionSubNotFound--${pageName}">
<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>
</template>
</table>
@ -577,7 +577,7 @@ $(document).ready(function(){
$P.searchDetailInspectionDataList = (dataKey) => {
$P.sameVehicleSubControl.query = {};
$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.load(0);
}
@ -718,8 +718,8 @@ $(document).ready(function(){
$P.sameVehicleMainControl.download();
} else {
var cellDefs = getCellDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th").not(":hidden"),
$($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td").not(".privacy-mask"));
var cellDefs = getCellDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th"),
$($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td"));
$P.sameVehicleSubControl.query.cellDefs = cellDefs;
$P.sameVehicleSubControl.download();

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

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

@ -61,13 +61,9 @@
onclick="{onclick}" ondblclick="{ondblclick}"
>{RTPYR_NM}
</td>
<td class="cmn text-center privacy"
<td class="cmn text-center privacy-cell"
onclick="{onclick}" ondblclick="{ondblclick}"
>{RTPYR_NO}
</td>
<td class="cmn text-center privacy-mask"
onclick="{onclick}" ondblclick="{ondblclick}"
>************
><span>{RTPYR_NO}</span><span>************</span>
</td>
<td class="cmn text-center"
onclick="{onclick}" ondblclick="{ondblclick}"
@ -195,6 +191,6 @@
<template id="notFound--${pageName}">
<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>
</template>

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

@ -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 {
display: none;

@ -291,7 +291,13 @@ function getCellDefs($th, $td){
var width = $th.eq(i).outerWidth();
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("}", "");

Loading…
Cancel
Save