From 80cd6cce9cf4ccab3d45fd65f51138d73d47730b Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 20 Jun 2023 10:28:43 +0900 Subject: [PATCH] =?UTF-8?q?code-support.js=20=EC=88=98=EC=A0=95(this.forma?= =?UTF-8?q?t=20=EC=B6=94=EA=B0=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/js/base/code-support.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/webapp/resources/js/base/code-support.js b/src/main/webapp/resources/js/base/code-support.js index 45227581..6fc734a0 100644 --- a/src/main/webapp/resources/js/base/code-support.js +++ b/src/main/webapp/resources/js/base/code-support.js @@ -3,6 +3,9 @@ class CommonCodes { codeList.forEach(item => this[item.code] = !asObject ? item.value : item); this.codes = () => codeList.map(item => item.code); this.list = () => codeList; + this.format = (code) => { + return this.value(code, ""); + } } _value(code, field) {