납부자번호 표시 수정

main
이범준 11 months ago
parent 8f531ceefb
commit cac99fd175

@ -106,7 +106,9 @@
납부자번호
</label>
<input type="text" id="rtpyrNo--${pageName}" name="rtpyrNo"
class="form-control" data-map="RTPYR_NO" maxlength="100" />
class="form-control privacy" data-map="RTPYR_NO" maxlength="100" />
<input type="text" id="mask-rtpyrNo--${pageName}"
class="form-control privacy-mask" disabled value="******"/>
</div>
<div class="col-md-12">
<label for="vhrno--${pageName}"
@ -311,6 +313,9 @@ $(document).ready(function(){
//첫번째 줄 클릭
$("#tbody--${pageName}").find("tr:eq(0)").click();
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
});
</script>

@ -195,7 +195,7 @@ function fn_securityModeToggle(flag, elementId){
for(let i=0; i< targets.length; i++){
let originId = targets[i].id;
let originValue= targets[i].value;
let maskingValue = originValue.replace(/[0-9a-zA-Z]/g, "*");
let maskingValue = originValue.replaceAll(/./g, "*");
document.getElementById("mask-"+originId).value = maskingValue;
}

@ -114,7 +114,7 @@ class FimsFormFields extends FormFields {
//보안모드 마스킹 항목
if(input.tagName === 'INPUT' && input.id && input.classList.contains("privacy")){
let maskVal = value.replace(/[0-9a-zA-Z]/g, "*");
let maskVal = value.replace(/./g, "*");
document.getElementById("mask-"+input.id).value = maskVal;
}
}

Loading…
Cancel
Save