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) {