浏览代码

운영관리-공지사항 공지사항 수정 테스트 -1

yhl88 2 年之前
父节点
当前提交
ca339b4dba
共有 1 个文件被更改,包括 1 次插入110 次删除
  1. 1 110
      src/main/webapp/js/app/oper/ITP_OPER02010.js

+ 1 - 110
src/main/webapp/js/app/oper/ITP_OPER02010.js

@@ -311,80 +311,7 @@ let pageObj = {
311 311
 		} else if(mode === 'VIEW') { // 보기
312 312
 			$('#ITP_AJAX_OPER02010_VIEW_CONTAINER').show();
313 313
 		}
314
-	}/*,
315
-	grid: {
316
-		init: function(mode) {
317
-			this.mode = mode;
318
-			this.gridId = (mode === 'VIEW') ? OPER02010_VIEW_GRID_ID : OPER02010_DETAIL_GRID_ID;
319
-			this.unload();
320
-			this.load(mode);
321
-		},
322
-		mode: 'DETAIL',
323
-		gridId: '',
324
-		button: {
325
-			addRow: function() {
326
-				// 팝업
327
-				var popFn = function(rowDataPop) {
328
-					console.log(rowDataPop);
329
-					// 기존등록 사용자ID
330
-					var exists = '';
331
-					const rowData = $(OPER02010_DETAIL_GRID_ID).getRowData();
332
-					$.each(rowData, function(key, value) {
333
-						exists = exists + value.brandId + ';';
334
-					});
335
-
336
-					$.each(rowDataPop, function(key, value) {
337
-						// console.log(JSON.stringify(value));
338
-						if(exists.indexOf(value.brandId) < 0) {
339
-							value['viewCd'] =  "C";
340
-							$(OPER02010_DETAIL_GRID_ID).jqGrid('addRowData', value.brandId, value, 'last');
341
-						}
342
-					});
343
-					$(OPER02010_DETAIL_GRID_EMPTY).hide();
344
-				};
345
-				var agrs = {'afflShopId': $('#ITP_FORM_OPER02010_DETAIL_SEARCH_AFFL_SHOP_ID').val()};
346
-				fn_call_popup('biz', 'BIZPOP_AFFL_BRAND', '#ITP_ASIDE', popFn, agrs, 'S');
347
-			},
348
-			delRow: function() {
349
-				itp_fn_grid_del_row(OPER02010_DETAIL_GRID_ID);
350
-			}
351
-		},
352
-		load : function() {
353
-			let param = $('#ITP_FORM_OPER02010_' + this.mode).serializeObject();
354
-			param.gridSize = $.jgrid.defaults.rowNum;
355
-			param.pagingYn = false; // 페이지안함
356
-
357
-			var _gridId = this.gridId;
358
-			var option = {
359
-				gridId: _gridId,
360
-				colModel: gridColModel.detail,
361
-				param: param,
362
-				url: DOMAIN + NTICE_TARGET_GRID_LIST,
363
-				multiselect: (this.mode !== 'VIEW'),
364
-				loadComplete: function(data) {
365
-					console.log(data);
366
-					itp_fn_grid_load_complete(data, _gridId, true, undefined, 'OPER02010_' + this.mode);
367
-				},
368
-				onSortCol: function(index, columnIndex, sortOrder) {
369
-					var sortingFn = {
370
-						callBack: function(args) {
371
-							$(args).trigger('reloadGrid');
372
-						}
373
-					};
374
-					if (itp_fn_check_grid_is_writing(_gridId)) {
375
-						itp_fn_modal_confirm(ITP_MSG_LOCALE.message.ajax.cancelData, sortingFn, _gridId);
376
-						return 'stop';
377
-					} else {
378
-						itp_fn_grid_sorting(_gridId, index, sortOrder);
379
-					}
380
-				}
381
-			};
382
-			itp_fn_grid_make_not_paging(option);
383
-		},
384
-		unload : function() {
385
-			$.jgrid.gridUnload(this.gridId);
386
-		}
387
-	}*/
314
+	}
388 315
 };
389 316
 
390 317
 /*목록화면 Object*/
@@ -610,42 +537,7 @@ let modifyObj = {
610 537
 let createObj = {
611 538
 	init: function () {
612 539
 		pageObj.fileUpload();
613
-		// this.form.init();
614 540
 	},
615
-	/*form: {
616
-		init: function () {
617
-			this.selectbox();
618
-			this.checkbox();
619
-		},
620
-		selectbox: function () {
621
-			// 브랜드 selectbox 선택
622
-			$('#ITP_FORM_OPER02010_DETAIL_BRAND_ID').one('change', function() {
623
-				if(this.selectedIndex > 0) {
624
-					$('#ITP_FORM_OPER02010_DETAIL_TARGET_CD option:eq(0)').prop('selected', true);
625
-					$('#ITP_FORM_OPER02010_DETAIL_TARGET_CD').prop('disabled', true).trigger('change');
626
-				} else {
627
-					$('#ITP_FORM_OPER02010_DETAIL_TARGET_CD').prop('disabled', false);
628
-				}
629
-			});
630
-			// 공지대상 selectbox 선택
631
-			$('#ITP_FORM_OPER02010_DETAIL_TARGET_CD').one('change', function() {
632
-				if(this.selectedIndex > 0) {
633
-					$('#ITP_BTN_OPER02010_DETAIL_ADDROW').prop('disabled', false);
634
-					$('#ITP_BTN_OPER02010_DETAIL_DELROW').prop('disabled', false);
635
-				} else {
636
-					$('#ITP_BTN_OPER02010_DETAIL_ADDROW').prop('disabled', true);
637
-					$('#ITP_BTN_OPER02010_DETAIL_DELROW').prop('disabled', true);
638
-					$(OPER02010_DETAIL_GRID_ID).jqGrid('clearGridData');
639
-				}
640
-			});
641
-		},
642
-		checkbox: function () {
643
-			// 공지대상 checkbox 선택
644
-			$('#ITP_FORM_OPER02010_TARGET').find('input:checkbox').one('change', function() {
645
-				$(this).next().val($(this).is(':checked') ? 'Y' : '');
646
-			});
647
-		}
648
-	},*/
649 541
 	button: {
650 542
 		save: function() {
651 543
 			const formId = '#ITP_FORM_OPER02010_DETAIL';
@@ -678,7 +570,6 @@ let createObj = {
678 570
 				// param.gridUpdateData = gridUpdateData;
679 571
 				// param.gridDeleteData = gridDeleteData;
680 572
 				// console.log(JSON.stringify(param));
681
-
682 573
 				var searhFn = function() {
683 574
 					ITP_FORM_OPER02010_DETAIL_IS_WRITING = false;
684 575
 					listObj.grid.search();