mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 05:12:34 +09:00
엑셀 다운로드시 Entity코드 변환되어 노출될 수 있도록 수정
This commit is contained in:
@@ -202,6 +202,13 @@ export default {
|
||||
response = await channelMgtApi.tmpltListExcel(params);
|
||||
|
||||
const result = response.data;
|
||||
// entity code 변환
|
||||
result.data.list = result.data.list.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
custNm: this.fromHtmlEntities(item.custNm)
|
||||
}
|
||||
});
|
||||
if (result != null && result.retCode == "0000") {
|
||||
return result.data;
|
||||
} else {
|
||||
@@ -246,6 +253,11 @@ export default {
|
||||
this.grid.pagePerRows = this.perPageCnt;
|
||||
this.search(true);
|
||||
},
|
||||
fromHtmlEntities(str) {
|
||||
return (str + '').replace(/&#\d+;/gm, function (s) {
|
||||
return String.fromCharCode(s.match(/\d+/gm)[0]);
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
beforeRouteLeave(to, from, next) {
|
||||
|
||||
Reference in New Issue
Block a user