오픈소스 직접뷰어 기능 추가

This commit is contained in:
koj729
2026-06-15 16:10:05 +09:00
parent d13c414d7f
commit cb0c42fbeb
21 changed files with 1202 additions and 33 deletions

View File

@@ -333,7 +333,10 @@ export async function openNewWindowViewer() {
}
let getDataInfoRes = await axios.post(`${vars.path_name}/getDataInfo`, { params: getDataInfoParams } );
if (getDataInfoRes.data.message == 'getDataInfo_success') {
let objectKey = getDataInfoRes.data.result.popup_key;
let result = getDataInfoRes.data.result;
let directViewExtArr = ['xls', 'xlsx', 'xlsm', 'docx', 'hwp', 'hwpx'];
let objectKey = directViewExtArr.includes(ext) ? result.object_key : result.popup_key;
if(objectKey == undefined || objectKey == `` || objectKey == null){
return;
}
@@ -365,19 +368,26 @@ export async function openNewWindowViewer() {
let open_ext = `pdf`;
switch(ext){
case 'pdf' :
case 'hwp' :
case 'hwpx' :
case 'xls' :
case 'xlsm' :
case 'doc' :
case 'ppt' :
case 'pptx' :
case 'doc' :
case 'docx' :
case 'dwg' :
case 'dxf' :
case 'grm' :
open_ext = 'pdf';
break
break;
case 'hwp' :
case 'hwpx' :
open_ext = ext;
break;
case 'xls' :
case 'xlsx' :
case 'xlsm' :
open_ext = ext;
break;
case 'docx' :
open_ext = ext;
break;
case 'gsim' :
open_ext = 'gsim';
break