|
@@ -27,7 +27,8 @@
|
|
|
<input type="hidden" id="searchGb" name="searchGb" value="BASIC"/>
|
|
<input type="hidden" id="searchGb" name="searchGb" value="BASIC"/>
|
|
|
<input type="hidden" id="cateCd" name="cateCd" th:value="${params.cateCd}"/>
|
|
<input type="hidden" id="cateCd" name="cateCd" th:value="${params.cateCd}"/>
|
|
|
<input type="hidden" id="contentsLoc" name="contentsLoc" th:value="${params.contentsLoc}"/>
|
|
<input type="hidden" id="contentsLoc" name="contentsLoc" th:value="${params.contentsLoc}"/>
|
|
|
- <input type="hidden" id="brandGroupNo" name="brandGroupNo" th:value="${params.brandGroupNo}"/>
|
|
|
|
|
|
|
+ <input type="hidden" id="brandGroupNo" name="brandGroupNo" th:if="${params.brandGroupNo!=null}" th:value="${params.brandGroupNo}"/>
|
|
|
|
|
+ <input type="hidden" id="brandGroupNo" name="brandGroupNo" th:unless="${params.brandGroupNo!=null}" value="0"/>
|
|
|
<button type="button" class="btn btn-base btn-lg" id="btnSearch" style="display: none;">조회</button>
|
|
<button type="button" class="btn btn-base btn-lg" id="btnSearch" style="display: none;">조회</button>
|
|
|
<div class="panelTitle">
|
|
<div class="panelTitle">
|
|
|
<h2>상품 순서변경</h2>
|
|
<h2>상품 순서변경</h2>
|
|
@@ -37,7 +38,18 @@
|
|
|
<!-- 상단 영역 START -->
|
|
<!-- 상단 영역 START -->
|
|
|
<ul class="lrStyle">
|
|
<ul class="lrStyle">
|
|
|
<li class="aL"><font color="#1e90ff">* 상품은 왼쪽에서 오른쪽 순서대로 전시 됩니다.</font></li>
|
|
<li class="aL"><font color="#1e90ff">* 상품은 왼쪽에서 오른쪽 순서대로 전시 됩니다.</font></li>
|
|
|
- <li class="aR">
|
|
|
|
|
|
|
+<!-- <li class="aR">-->
|
|
|
|
|
+<!-- <button type="button" class="btn btn-primary btn-lg leafCateBtn" id="btnPopupAddGoods">상품추가</button>-->
|
|
|
|
|
+<!-- <button type="button" class="btn btn btn-info btn-sm" id="btnPopupReset">원 위치로</button>-->
|
|
|
|
|
+<!-- <button type="button" class="btn btn btn-info btn-sm" id="btnPopupInit">전시순서 초기화</button>-->
|
|
|
|
|
+<!-- <button type="button" class="btn btn btn-success btn-sm" id="btnPopupSave">저장</button>-->
|
|
|
|
|
+<!-- </li>-->
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ <ul class="panelBar" style="margin-top: 10px;">
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <button type="button" class="btn btn-danger btn-lg" onclick="fnAllGoodsDelete();">전체삭제</button>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="right">
|
|
|
<button type="button" class="btn btn-primary btn-lg leafCateBtn" id="btnPopupAddGoods">상품추가</button>
|
|
<button type="button" class="btn btn-primary btn-lg leafCateBtn" id="btnPopupAddGoods">상품추가</button>
|
|
|
<button type="button" class="btn btn btn-info btn-sm" id="btnPopupReset">원 위치로</button>
|
|
<button type="button" class="btn btn btn-info btn-sm" id="btnPopupReset">원 위치로</button>
|
|
|
<button type="button" class="btn btn btn-info btn-sm" id="btnPopupInit">전시순서 초기화</button>
|
|
<button type="button" class="btn btn btn-info btn-sm" id="btnPopupInit">전시순서 초기화</button>
|
|
@@ -102,9 +114,8 @@
|
|
|
if(typeof result.categoryGoodsList != 'undefined'){
|
|
if(typeof result.categoryGoodsList != 'undefined'){
|
|
|
resultList = result.categoryGoodsList;
|
|
resultList = result.categoryGoodsList;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ var html = '';
|
|
|
if(resultList.length > 0){
|
|
if(resultList.length > 0){
|
|
|
- var html = '';
|
|
|
|
|
for(var i=0; i<resultList.length; i++){
|
|
for(var i=0; i<resultList.length; i++){
|
|
|
if(i==0){
|
|
if(i==0){
|
|
|
firstOrd = resultList[i].dispOrd;
|
|
firstOrd = resultList[i].dispOrd;
|
|
@@ -167,6 +178,8 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
fnViewInit();
|
|
fnViewInit();
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $("#sortable").html(html);
|
|
|
}
|
|
}
|
|
|
gagaPaging.createPagination(result.pageing.pageable);
|
|
gagaPaging.createPagination(result.pageing.pageable);
|
|
|
}
|
|
}
|
|
@@ -227,6 +240,7 @@
|
|
|
var data = {
|
|
var data = {
|
|
|
mode : 'delete'
|
|
mode : 'delete'
|
|
|
,cateNo : $("#goodsDispOrdChangeForm input[name=cateCd]").val()
|
|
,cateNo : $("#goodsDispOrdChangeForm input[name=cateCd]").val()
|
|
|
|
|
+ ,brandGroupNo : $("#goodsDispOrdChangeForm input[name=brandGroupNo]").val()
|
|
|
,goodsCd : goodsCd
|
|
,goodsCd : goodsCd
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -246,6 +260,7 @@
|
|
|
sureBtnClick: function(){
|
|
sureBtnClick: function(){
|
|
|
var data = {
|
|
var data = {
|
|
|
cateNo : $("#goodsDispOrdChangeForm input[name=cateCd]").val()
|
|
cateNo : $("#goodsDispOrdChangeForm input[name=cateCd]").val()
|
|
|
|
|
+ ,brandGroupNo : $("#goodsDispOrdChangeForm input[name=brandGroupNo]").val()
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
var jsonData = JSON.stringify(data);
|
|
var jsonData = JSON.stringify(data);
|
|
@@ -254,6 +269,31 @@
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 상품 전체삭제
|
|
|
|
|
+ */
|
|
|
|
|
+ var fnAllGoodsDelete = function (){
|
|
|
|
|
+ mcxDialog.confirm('전체 상품을 삭제하시겠습니까??', {
|
|
|
|
|
+ cancelBtnText: "취소",
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function(){
|
|
|
|
|
+ var data = {
|
|
|
|
|
+ mode : 'delete'
|
|
|
|
|
+ ,cateNo : $("#goodsDispOrdChangeForm input[name=cateCd]").val()
|
|
|
|
|
+ ,brandGroupNo : $("#goodsDispOrdChangeForm input[name=brandGroupNo]").val()
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ var jsonData = JSON.stringify(data);
|
|
|
|
|
+ gagajf.ajaxJsonSubmit('/display/goods/dispord/change/delete', jsonData, fnSearchData);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ $("#btnAlldelete").on("click", function (){
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 최상단/하단 이동 버튼
|
|
* 최상단/하단 이동 버튼
|
|
|
*/
|
|
*/
|