mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-12 01:34:19 +09:00
엑셀 다운로드시 Entity코드 변환되어 노출될 수 있도록 수정
This commit is contained in:
@@ -430,6 +430,13 @@ export default {
|
||||
response = await calcMgtApi.calcListExcel(this.grid.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 {
|
||||
@@ -449,6 +456,11 @@ export default {
|
||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) - 2);
|
||||
this.endDate = initEndDate;
|
||||
},
|
||||
fromHtmlEntities(str) {
|
||||
return (str + '').replace(/&#\d+;/gm, function (s) {
|
||||
return String.fromCharCode(s.match(/\d+/gm)[0]);
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user