reload 후 동작 수정

master
mjkhan21 1 month ago
parent 1d213250f0
commit 0960c9b0f2

@ -157,8 +157,7 @@
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5">
<div name="table-responsive"
class="table-responsive h-px-500">
<div name="table-responsive" class="table-responsive h-px-500">
<table name="crdnTable" class="table-layout-fixed table table-bordered dataTable">
<thead class="sticky-thead">
<tr name="crdnThead" data-search-target="[data-doctx='${pageName}']">
@ -305,7 +304,8 @@ $(document).ready(function(){
ctrl.dataset.onSort = sorter => {
let t = $P.getGridTemplate(),
trs = Apply.fromDataset.getTbody(ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderCrdnList(ctrl.dataset.totalSize, ctrl.dataset.length, trs);
if (sorter.by)
$P.renderCrdnList(ctrl.dataset.totalSize, ctrl.dataset.length, trs);
document.querySelectorAll("div[data-doctx='${pageName}'] table[name='crdnTable'] th[data-sort]").forEach(th => {
th.classList.remove(
@ -501,9 +501,10 @@ $(document).ready(function(){
}
$P.renderCrdnList = (total, listLength, trs, option) => {
debug("renderCrdnList");
let noMore = (listLength >= total);
let initScroll = (ctrl.query.pageNum < 2);
if (option != null && option.reloaded){
if (option && option.reloaded){
initScroll = false;
}

@ -122,7 +122,9 @@ $(document).ready(function(){
ctrl.dataset.onSort = sorter => {
let t = $P.getGridTemplate(),
trs = Apply.fromDataset.getTbody(ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderExmptnVhclList(ctrl.dataset.totalSize, ctrl.dataset.length, trs);
if (sorter.by)
$P.renderExmptnVhclList(ctrl.dataset.totalSize, ctrl.dataset.length, trs);
document.querySelectorAll("div[data-doctx='${pageName}'] table[name='exmptnVhclTable'] th[data-sort]").forEach(th => {
th.classList.remove(

@ -722,6 +722,7 @@ CREATE OR REPLACE TABLE TB_CRDN_ADI (
CRDN_ID VARCHAR(20) NOT NULL COMMENT '단속 ID',
CRDN_SE_CD VARCHAR(2) NULL COMMENT '단속 구분 코드',
TEAM_ID VARCHAR(10) NULL COMMENT '조 ID',
EQP_CD VARCHAR(3) NULL COMMENT '장비 코드',
DTL_CRDN_PLC VARCHAR(300) NULL COMMENT '상세 단속 장소',
CRDN_SPAREA_CD VARCHAR(2) NULL COMMENT '단속 특별구역 코드',
CRDN_BGNG_TM VARCHAR(6) NULL COMMENT '단속 시작 시각',

Loading…
Cancel
Save