fix: 셀 선택 시 setCurrentRow 설정 수정

dev
kjh 5 months ago
parent 5e39057119
commit 69ff6cd599

@ -36,7 +36,8 @@
<div class="table-responsive ox-scroll oy-scroll h-px-500" id="table-responsive--${pageName}">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead>
<tr><th style="width: 15.828px;text-align:center;" tabindex="0">No</th>
<tr>
<!-- <th style="width: 15.828px;text-align:center;" tabindex="0">No</th> -->
<th class="sorting" style="width: 146.156px;">취급자번호</th>
<th class="sorting" style="width: 160.141px;">취급업체명</th>
<th class="sorting" style="width: 160.141px;">업종명</th>
@ -49,8 +50,8 @@
<tbody id="tbody--${pageName}">
</tbody>
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="bsshCd">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{bsshCd}</td>
<tr data-key="{bsshCd}">
<!-- <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{bsshCd}</td> -->
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{bsshCd}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{bsshNm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{indutyNm}</td>
@ -131,6 +132,8 @@
$P.control.onCurrentChange = item => {
if (!item) return;
let key = item.data.bsshCd;
$("#tbody--${pageName}").setCurrentRow(key);
// Dataset 셋팅
$P.formFields.set($P.control, item);
}

@ -53,7 +53,7 @@
<tbody id="tbody--${pageName}">
</tbody>
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="prductCd">
<tr data-key="{prductCd}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prductCd}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prductNm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{nrcdSeNm}</td>
@ -183,6 +183,8 @@
$P.control.onCurrentChange = item => {
if (!item) return;
let key = item.data.prductCd;
$("#tbody--${pageName}").setCurrentRow(key);
// Dataset 셋팅
$P.formFields.set($P.control, item);
}

Loading…
Cancel
Save