Browse Source

메인 공지사항 화면수정

isna 2 years ago
parent
commit
772c586f85

+ 4 - 15
src/main/webapp/app/popup/comm/NOTICE_INFO_POPUP.html

@@ -17,14 +17,10 @@
17
 									<div class="itp_form_in border-top">
17
 									<div class="itp_form_in border-top">
18
 										<div class="form-group">
18
 										<div class="form-group">
19
 											<label class="col-xs-2 itp_lb">브랜드그룹</label>
19
 											<label class="col-xs-2 itp_lb">브랜드그룹</label>
20
-											<div class="col-xs-4 itp_ip">
21
-												<div class="itp_in">
22
-													<input type="text" name="afflShopNm" id="ITP_FORM_NOTICE_INFO_POPUP_AFFL_SHOP_NM" class="form-control itp_input">
23
-												</div> 
20
+											<div id="ITP_FORM_NOTICE_INFO_POPUP_AFFL_SHOP_NM" class="col-xs-4 itp_ip">
24
 											</div>
21
 											</div>
25
 											<label class="col-xs-2 itp_lb">브랜드</label>
22
 											<label class="col-xs-2 itp_lb">브랜드</label>
26
-											<div class="col-xs-4 itp_ip">
27
-												<input type="text" name="brandNm" id="ITP_FORM_NOTICE_INFO_POPUP_BRAND_NM" class="form-control itp_input"> 
23
+											<div id="ITP_FORM_NOTICE_INFO_POPUP_BRAND_NM" class="col-xs-4 itp_ip"> 
28
 											</div>
24
 											</div>
29
 										</div>
25
 										</div>
30
 									</div>
26
 									</div>
@@ -33,19 +29,13 @@
33
 											<label class="col-xs-2 itp_lb">공지제목 *</label>
29
 											<label class="col-xs-2 itp_lb">공지제목 *</label>
34
 											<div class="col-xs-10 itp_ip">
30
 											<div class="col-xs-10 itp_ip">
35
 												<input type="text" id="ITP_FORM_NOTICE_INFO_POPUP_NTICE_TITL" data-check-required="empty" class="form-control itp_input" name="nticeTitl" value="">
31
 												<input type="text" id="ITP_FORM_NOTICE_INFO_POPUP_NTICE_TITL" data-check-required="empty" class="form-control itp_input" name="nticeTitl" value="">
36
-											
37
 											</div>
32
 											</div>
38
 										</div>
33
 										</div>
39
 									</div>
34
 									</div>
40
 									<div class="itp_form_in">
35
 									<div class="itp_form_in">
41
 										<div class="form-group">
36
 										<div class="form-group">
42
 											<label class="col-xs-2 itp_lb">공지일자 *</label>
37
 											<label class="col-xs-2 itp_lb">공지일자 *</label>
43
-											<div class="col-xs-10 itp_ip">
44
-												<div class="input-group">
45
-													<input type="text" id="ITP_FORM_NOTICE_INFO_POPUP_FROM_DT" data-check-required="empty" class="form-control itp_input" name="notiStDay" readonly>
46
-													<span class="input-group-addon itp_date_to">~</span>
47
-													<input type="text" id="ITP_FORM_NOTICE_INFO_POPUP_TO_DT" data-check-required="empty" class="form-control itp_input" name="notiEdDay" readonly>
48
-												</div> 
38
+											<div class="col-xs-10 itp_ip" id="ITP_FORM_NOTICE_INFO_POPUP_FROM_TO"> 
49
 											</div>
39
 											</div>
50
 										</div>
40
 										</div>
51
 									</div>
41
 									</div>
@@ -67,8 +57,7 @@
67
 											</div>
57
 											</div>
68
 										</div> 
58
 										</div> 
69
 									</div>
59
 									</div>
70
-								</section>
71
-								
60
+								</section>								
72
 							</form>		
61
 							</form>		
73
 
62
 
74
 
63
 

+ 9 - 1
src/main/webapp/js/app/main.js

@@ -354,7 +354,15 @@ var itp_fn_MAIN_NOTICE_search = function() {
354
 		if(Array.isArray(result.gridRows) && result.gridRows.length ) {
354
 		if(Array.isArray(result.gridRows) && result.gridRows.length ) {
355
 			var s='', idx=1;
355
 			var s='', idx=1;
356
 			for(var c of result.gridRows ) {
356
 			for(var c of result.gridRows ) {
357
-				s+=`<tr><td>${idx}</td><td>${c.brandNm}</td><td><a href="javascript:clickNotify('${c.nticeNo}')">${c.nticeTitl}</a></td><td>${c.nticeStatNm}</td><td>${c.addDt}</td></tr>`;
357
+				let title=c.nticeTitl;
358
+				if(title.length>62) {
359
+					title=title.substr(0,62)+'...';
360
+				} 
361
+				s+=`<tr>
362
+					<td>${idx}</td><td>${c.brandNm}</td>
363
+					<td><a href="javascript:clickNotify('${c.nticeNo}')">${title}</a></td>
364
+					<td>${c.nticeStatNm}</td><td>${c.addDt}</td>
365
+				</tr>`;
358
 				idx++;
366
 				idx++;
359
 			}
367
 			}
360
 			tb.html(s);
368
 			tb.html(s);

+ 7 - 8
src/main/webapp/js/app/popup/comm/ITP_NOTICE_INFO_POPUP.js

@@ -15,20 +15,19 @@ function itp_fn_NOTICE_INFO_POPUP(parentPopFn, args, returnType) {
15
 	fn_ajax_call(NTICE_INFO_NTICE, args, function(result) {
15
 	fn_ajax_call(NTICE_INFO_NTICE, args, function(result) {
16
 		
16
 		
17
 		$('#ITP_FORM_NOTICE_INFO_POPUP_NTICE_NO').val(result.nticeNo);
17
 		$('#ITP_FORM_NOTICE_INFO_POPUP_NTICE_NO').val(result.nticeNo);
18
-		$('#ITP_FORM_NOTICE_INFO_POPUP_NTICE_TITL').val(result.nticeTitl);
19
-		$('#ITP_FORM_NOTICE_INFO_POPUP_FROM_DT').val(result.notiStDay);
20
-		$('#ITP_FORM_NOTICE_INFO_POPUP_TO_DT').val(result.notiEdDay);
21
-		$('#ITP_FORM_NOTICE_INFO_POPUP_NTICE_DESC').val(result.nticeDesc);
22
 		$('#ITP_FORM_NOTICE_INFO_POPUP_TARGET_CD').val(result.targetCd);
18
 		$('#ITP_FORM_NOTICE_INFO_POPUP_TARGET_CD').val(result.targetCd);
23
 		$('#ITP_FORM_NOTICE_INFO_POPUP_FILE_NO').val(result.fileNo); //파일번호 셋팅
19
 		$('#ITP_FORM_NOTICE_INFO_POPUP_FILE_NO').val(result.fileNo); //파일번호 셋팅
24
 
20
 
25
 		// 브랜드그룹 셋팅
21
 		// 브랜드그룹 셋팅
26
-		$('#ITP_FORM_NOTICE_INFO_POPUP_AFFL_SHOP_NM').val(result.afflShopNm);
27
-		$('#ITP_FORM_NOTICE_INFO_POPUP_BRAND_NM').val(result.brandNm);
22
+		$('#ITP_FORM_NOTICE_INFO_POPUP_NTICE_TITL').val(result.nticeTitl);
23
+		$('#ITP_FORM_NOTICE_INFO_POPUP_NTICE_DESC').val(result.nticeDesc);
24
+		$('#ITP_FORM_NOTICE_INFO_POPUP_FROM_TO').html(result.notiStDay+' ~ '+result.notiEdDay); 
25
+		$('#ITP_FORM_NOTICE_INFO_POPUP_AFFL_SHOP_NM').html(result.afflShopNm);
26
+		$('#ITP_FORM_NOTICE_INFO_POPUP_BRAND_NM').html(result.brandNm);
28
 
27
 
29
 		setFileUploadInfoPopup();
28
 		setFileUploadInfoPopup();
30
 		
29
 		
31
-		formReadonly("#ITP_FORM_NOTICE_INFO_POPUP .form-control");
30
+		formReadonly('#ITP_FORM_NOTICE_INFO_POPUP .form-control');
32
 		 	
31
 		 	
33
 	}, 'GET');
32
 	}, 'GET');
34
 	
33
 	
@@ -39,7 +38,7 @@ function itp_fn_NOTICE_INFO_POPUP(parentPopFn, args, returnType) {
39
 	}).modal('show');
38
 	}).modal('show');
40
 	
39
 	
41
 };
40
 };
42
-
41
+ 
43
 
42
 
44
 function setFileUploadInfoPopup() {
43
 function setFileUploadInfoPopup() {
45
 	//파일업로드(등록/수정화면) 
44
 	//파일업로드(등록/수정화면) 

+ 6 - 1
src/main/webapp/main.html

@@ -178,6 +178,11 @@
178
 		  .rtable--flip td:not(:last-child) {
178
 		  .rtable--flip td:not(:last-child) {
179
 			border-bottom: 0;
179
 			border-bottom: 0;
180
 		  }
180
 		  }
181
+		  #ITP_SAFE_STCK_GRAPH {
182
+			  width: 100%;
183
+			  border: 1px solid #ccc;
184
+			  padding: 16px;
185
+		  }
181
 		  
186
 		  
182
 	</style>
187
 	</style>
183
 </head>
188
 </head>
@@ -498,7 +503,7 @@
498
 									<div class="itp_graph_title">
503
 									<div class="itp_graph_title">
499
 										<div class="itp_graph_info">안전재고</div>
504
 										<div class="itp_graph_info">안전재고</div>
500
 									</div>
505
 									</div>
501
-									<div id="ITP_SAFE_STCK_GRAPH" class="itp_graph_area" style="width:87%;"></div>
506
+									<div id="ITP_SAFE_STCK_GRAPH" class="itp_graph_area"></div>
502
 								</div>
507
 								</div>
503
 							</div>
508
 							</div>
504
 						</article>
509
 						</article>