fix : 모달 팝업 창 높이 수정, tui그리드 오류 수정

main
이범준 2 years ago
parent 7ab229a00b
commit be40fb0c81

@ -1322,8 +1322,10 @@ Date Author Description
} }
} }
$("#popupTabs .nav-link").on("click", function(){
let popupHeight = $("#wrap").height();
$(window.frameElement).attr("height",popupHeight);
});
$(document).ready(function(){ $(document).ready(function(){
initPopupGrid(); initPopupGrid();

@ -314,6 +314,9 @@ Date Author Description
} }
} }
,setDblClickEvent: function (idx) { ,setDblClickEvent: function (idx) {
ARR_GRID[idx].off('dblclick');
ARR_GRID[idx].on('dblclick', function (props) { ARR_GRID[idx].on('dblclick', function (props) {
popupDiv = 'total'; popupDiv = 'total';
const rowDatas = ARR_GRID[idx].store.data.rawData.map(d => { const rowDatas = ARR_GRID[idx].store.data.rawData.map(d => {
@ -676,7 +679,11 @@ Date Author Description
} }
} }
}; };
let resetFlag = true;
const gridResponseReset = (res, idx) => { const gridResponseReset = (res, idx) => {
if(resetFlag){
// FIXME:: scroll type 사용시 // FIXME:: scroll type 사용시
ARR_GRID[idx].resetData([]); ARR_GRID[idx].resetData([]);
ARR_GRID[idx].refreshLayout(); ARR_GRID[idx].refreshLayout();
@ -689,21 +696,26 @@ Date Author Description
let datas; let datas;
if(popupDiv === 'answerPreview'){ if(popupDiv === 'answerPreview'){
datas = res.data?.contents.map(d => { datas = res.data?.contents.map(d => {
return {tmplatId: '${ctznTmplatId}', answerSeCode: fnBiz.getAnswerSeCode(d.regltProcessSttusCode), resnCode: d.erppSeCode, interfaceSeqN: d.interfaceSeqN, vhcleNo: d.vhcleNo} return {tmplatId: '${ctznTmplatId}', answerSeCode: fnBiz.getAnswerSeCode(d.regltProcessSttusCode), resnCode: d.erppSeCode, interfaceSeqN: d.interfaceSeqN, vhcleNo: d.vhcleNo};
}) });
}else { }else {
datas = res.data?.contents.map(d => { datas = res.data?.contents.map(d => {
return {regltId: d.regltId, regltSeCode: d.regltSeCode, regltProcessSttusCode: d.regltProcessSttusCode} return {regltId: d.regltId, regltSeCode: d.regltSeCode, regltProcessSttusCode: d.regltProcessSttusCode};
}); });
} }
ARR_NAV[idx].resetGrid(res, datas, (pagiNavigation)=>{ ARR_NAV[idx].resetGrid(res, datas, (pagiNavigation)=>{
ARR_NAV[idx] = pagiNavigation; ARR_NAV[idx] = pagiNavigation;
fnBiz.pagePopup(popupDiv, ARR_NAV[idx].gridInfo.curRowData); fnBiz.pagePopup(popupDiv, ARR_NAV[idx].gridInfo.curRowData);
}) });
} }
fnBiz.setDblClickEvent(idx); fnBiz.setDblClickEvent(idx);
resetFlag = false;
} }
};
const initGrid = () => { const initGrid = () => {
ARR_GRID[0] = TuiGrid.of(gridOptions, gridDatasource, (res) => gridResponseReset(res, 0)); ARR_GRID[0] = TuiGrid.of(gridOptions, gridDatasource, (res) => gridResponseReset(res, 0));
const options = $.extend(gridOptions, gridOptions.columns[1].renderer = null, true); const options = $.extend(gridOptions, gridOptions.columns[1].renderer = null, true);

Loading…
Cancel
Save