|
|
@@ -32,20 +32,6 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <form name="contentsTitleForm" id="contentsTitleForm" style="width:1170px; overflow:auto; display: none;">
|
|
|
- <table class="frmStyle">
|
|
|
- <colgroup>
|
|
|
- <col style="width:10%;"/>
|
|
|
- <col style="width:40%;"/>
|
|
|
- <col style="width:10%;"/>
|
|
|
- <col style="width:40%;"/>
|
|
|
- </colgroup>
|
|
|
- <tr>
|
|
|
- <th>컨텐츠 타이틀</th>
|
|
|
- <td colspan="3"><input type="text" style="width:43.5%;" name="contentsTitle" maxlength="40" required="required" data-valid-name="컨텐츠타이틀" th:value="${contentsTitle}"></td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </form>
|
|
|
<form style="height:600px; width:1470px; overflow:auto;" id="popSortable">
|
|
|
</form>
|
|
|
</div>
|
|
|
@@ -56,7 +42,6 @@
|
|
|
var cateNo = [[${cateNo}]];
|
|
|
var contentsLoc = [[${contentsLoc}]];
|
|
|
var brandGroupNo = [[${brandGroupNo}]];
|
|
|
- var contentsTitle = [[${contentsTitle}]];
|
|
|
var contentsLocArr = gagajf.convertToArray([[${contentsLocList}]]);
|
|
|
var tdWidth = $("#sortable").find("td").width();
|
|
|
var tdDeleteWidth = parseInt(tdWidth/11, 10);
|
|
|
@@ -75,57 +60,6 @@
|
|
|
gagajf.ajaxJsonSubmit('/display/contents/preview/list', jsonData, fnCreatePopLayout);
|
|
|
}
|
|
|
|
|
|
- var fnCreateCateMainLayout = function(result){
|
|
|
- var html = '';
|
|
|
- for(let i=0; i<result.length; i++){
|
|
|
- html += '<form name="contentsTitleForm" id="contentsTitleForm" style="width:1170px; overflow:auto;>';
|
|
|
- html += ' <table className="frmStyle">';
|
|
|
- html += ' <colgroup>';
|
|
|
- html += ' <col style="width:10%;"/>';
|
|
|
- html += ' <col style="width:40%;"/>';
|
|
|
- html += ' <col style="width:10%;"/>';
|
|
|
- html += ' <col style="width:40%;"/>';
|
|
|
- html += ' </colgroup>';
|
|
|
- html += ' <tr>';
|
|
|
- html += ' <th>컨텐츠 타이틀</th>';
|
|
|
- html += ' <td colSpan="3"><input type="text" style="width:43.5%;" name="contentsTitle" maxLength="40" required="required" data-valid-name="컨텐츠타이틀" value"'+result[i].mdTitle+'">';
|
|
|
- html += ' </td>';
|
|
|
- html += ' </tr>';
|
|
|
- html += ' <tr>';
|
|
|
- html += ' <th>전시 설정</th>';
|
|
|
- html += ' <td>';
|
|
|
- if(result[i].useYn=='Y'){
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispYn" value="Y" checked="checked"/>노출</label>';
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispYn" value="N"/>비노출</label>';
|
|
|
- }else{
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispYn" value="Y"/>노출</label>';
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispYn" value="N" checked="checked"/>비노출</label>';
|
|
|
- }
|
|
|
- html += ' </td>';
|
|
|
- if(result[i].contentsLoc=='SCM003'){
|
|
|
- html += ' <th>상품 노출 개수</th>';
|
|
|
- html += ' <td>';
|
|
|
- if(result[i].strVar1=='10'){
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="10" checked="checked"/>10개</label>';
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="20"/>20개</label>';
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="30"/>30개</label>';
|
|
|
- }else if(result[i].strVar1=='20'){
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="10"/>10개</label>';
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="20" checked="checked"/>20개</label>';
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="30"/>30개</label>';
|
|
|
- }else{
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="10"/>10개</label>';
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="20"/>20개</label>';
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="30" checked="checked"/>30개</label>';
|
|
|
- }
|
|
|
- html += ' </td>';
|
|
|
- }
|
|
|
- html += ' </tr>';
|
|
|
- html += ' </table>';
|
|
|
- html += '</form>';
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
var createIdx = 0;
|
|
|
var fnCreatePopLayout = function(result) {
|
|
|
var html = '';
|
|
|
@@ -584,15 +518,6 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if(contentsLoc=='SMM002'||contentsLoc=='SMM003'||contentsLoc=='SMM004'||contentsLoc=='SMM006'||contentsLoc=='SMM007'
|
|
|
- ||contentsLoc=='SMM009' ||contentsLoc=='SMM010'||contentsLoc=='SMM011'||contentsLoc=='SBM005' || contentsLoc=='SBMM005'
|
|
|
- || contentsLoc=='SCM002' || contentsLoc=='SCM003' || contentsLoc=='SBM010' || contentsLoc=='SBM009'|| contentsLoc=='SBM008'
|
|
|
- || contentsLoc=='SBM007' || contentsLoc=='SBM013' || contentsLoc=='SBM011'){
|
|
|
- if(!gagajf.checkRequired("#contentsTitleForm")){
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
if(contentsLoc=='SMM001'){
|
|
|
if(!smm001DataValidation()){
|
|
|
return false;
|
|
|
@@ -777,19 +702,6 @@
|
|
|
dataArr = dataArrSort;
|
|
|
}
|
|
|
|
|
|
- if(contentsLoc=='SMM002'||contentsLoc=='SMM003'||contentsLoc=='SMM004'||contentsLoc=='SMM006'||contentsLoc=='SMM007'
|
|
|
- ||contentsLoc=='SMM009' ||contentsLoc=='SMM010'||contentsLoc=='SMM011'||contentsLoc=='SBM005' || contentsLoc=='SBMM005'
|
|
|
- || contentsLoc=='SCM002' || contentsLoc=='SCM003' || contentsLoc=='SBM010' || contentsLoc=='SBM009'|| contentsLoc=='SBM008'
|
|
|
- || contentsLoc=='SBM007' || contentsLoc=='SBM013' || contentsLoc=='SBM011'){
|
|
|
- var data = {
|
|
|
- cateNo : cateNo
|
|
|
- , contentsLoc : contentsLoc
|
|
|
- , contentsTitle : $("#contentsTitleForm input[name=contentsTitle]").val()
|
|
|
- , brandGroupNo : brandGroupNo
|
|
|
- }
|
|
|
- dataArr.push(data);
|
|
|
- }
|
|
|
-
|
|
|
var jsonData = JSON.stringify(dataArr);
|
|
|
mcxDialog.confirm('컨텐츠를 저장 하시겠습니까?', {
|
|
|
cancelBtnText: "취소",
|
|
|
@@ -1009,15 +921,6 @@
|
|
|
$(document).ready(function() {
|
|
|
$("#popTitle").text("["+contentsLoc+"] "+gagaAgGrid.lookupValue(contentsLocArr, contentsLoc));
|
|
|
|
|
|
- if(contentsLoc=='SMM002'||contentsLoc=='SMM003'||contentsLoc=='SMM004'||contentsLoc=='SMM006'||contentsLoc=='SMM007'
|
|
|
- ||contentsLoc=='SMM009' ||contentsLoc=='SMM010'||contentsLoc=='SMM011'||contentsLoc=='SBM005' || contentsLoc=='SBMM005'
|
|
|
- || contentsLoc=='SCM002' || contentsLoc=='SCM003' || contentsLoc=='SBM010' || contentsLoc=='SBM009' || contentsLoc=='SBM008'
|
|
|
- || contentsLoc=='SBM007' || contentsLoc=='SBM013' || contentsLoc=='SBM011'){
|
|
|
- $("#contentsTitleForm").show();
|
|
|
- }else{
|
|
|
- $("#contentsTitleForm").hide();
|
|
|
- }
|
|
|
-
|
|
|
$("#popSortable").disableSelection();
|
|
|
fnGetContentsPreviewList();
|
|
|
});
|