Bladeren bron

240624-1813-Kim

hokky 5 maanden geleden
bovenliggende
commit
de341f0b22

+ 138 - 0
erp/para/ko_KR/list/list-type1/download/sise.json

@@ -0,0 +1,138 @@
+{
+    "General": {
+        "Title": "사용자메뉴 불러오기",
+        "PageApi": "list-type1-page"
+    },
+
+    "QueryVars": {
+        "QueryName": "download/post/contactus-custom",
+        "FilterName": "",
+        "FilterValue": "",
+        "FilterDate": "",
+        "SimpleFilter": "pt.post_code = 'contactus-custom'"
+    },
+
+    "HeadSelectOptions": [
+    ],
+
+    "//FormVars": "FormVars[0]-caption, FormVars[1]-searchPopup",
+    "FormVars": [
+        {
+            "ListButton": "조회",
+            "DateRange": "",
+            "DateNavi": "",
+            "Date": "",
+            "From": "",
+            "To": "",
+            "FirstRange": "",
+            "SecondRange": "",
+            "ThirdRange": "",
+            "FourthRange": "",
+            "AddTotalLine": "",
+            "SelectPopup": "",
+            "MultiPopup": "",
+            "ChartPopup": "",
+            "DownloadList": "다운로드 리스트",
+            "ShowOnlyClosed": "",
+            "Balance": "",
+            "OrderBy": "표시 순서",
+            "FilterOption": "검색 조건",
+            "SimpleOption": "상태별 검색"
+        }
+    ],
+
+    "FilterSelectOptions": [
+    ],
+
+    "SimpleSelectOptions": [
+    ],
+
+    "//ListType1RangeVars": "[0]-filter, [1]-component, [2]-parameter",
+    "ListType1RangeVars": [
+        {
+            "FirstRange": "",
+            "SecondRange": "",
+            "ThirdRange": "",
+            "FourthRange": ""
+        },
+        {
+            "FirstRange": "",
+            "SecondRange": "",
+            "ThirdRange": "",
+            "FourthRange": ""
+        },
+        {
+            "FirstRange": "",
+            "SecondRange": "",
+            "ThirdRange": "",
+            "FourthRange": ""
+        }
+    ],
+
+    "SelectPopupOptions": [
+    ],
+
+    "MultiPopupOptions": [
+    ],
+
+    "DisplayVars": {
+        "IsListFirst" : true,
+        "IsAddTotalLine": false,
+        "IsExcelColumn": true,
+        "IsDownloadList": true,
+        "IsShowOnlyClosed": false,
+        "IsSelectPopupHidden": true,
+        "IsC1Popup": "1",
+        "InitLines" : 15,
+        "HeadHeight": "160",
+        "BodyHeight": "570"
+    },
+
+    "OrderByOptions": [
+    ],
+
+    "BalanceOptions": [
+    ],
+
+    "ListVars": [
+        {
+            "$Radio": "$Radio",
+            "$Check": "",
+            "No": "번호",
+            "C1": "신청자 이름",
+            "C2": "전화번호",
+            "C3": "상담 신청 날짜",
+            "C4": "상담 희망 날짜",
+            "C5": "이메일 주소",
+            "C6": "입학 유형 (대학 or 대학원)",
+            "C7": "유학 희망 국가",
+            "C8": "유학원 이름"
+        },
+        {
+            "$Radio": "3",
+            "$Check": "",
+            "No": "6",
+            "C1": "6",
+            "C2": "6",
+            "C3": "15",
+            "C4": "20",
+            "C5": "20",
+            "C6": "15",
+            "C7": "6",
+            "C8": "6"
+        },
+        {
+            "$Radio": "center",
+            "$Check": "",
+            "No": "center",
+            "C1": "center",
+            "C2": "center",
+            "C3": "left",
+            "C4": "left",
+            "C5": "left",
+            "C6": "left",
+            "C7": "center",
+            "C8": "center"
+        }
+    ]
+}

+ 46 - 0
erp/resources/views/popup/popup-form1/form-a/post/sise-form.blade.php

@@ -86,6 +86,52 @@
                 }
             });
 
+            // sisetype 라디오 버튼 클릭 시 이벤트 핸들러
+            $('input[name="sisetype"]').on('change', function() {
+                var selectedType = $(this).val();
+                var areaSelect = $('#area-select');
+                areaSelect.empty();
+
+                if (selectedType === 'golf') {
+                    areaSelect.append('<option value="100">수도권/강원/충청권</option>');
+                    areaSelect.append('<option value="200">영남권</option>');
+                    areaSelect.append('<option value="300">호남권</option>');
+                } else if (selectedType === 'condo') {
+                    areaSelect.append('<option value="400">체인형콘도</option>');
+                    areaSelect.append('<option value="500">스키장콘도</option>');
+                } else if (selectedType === 'fitness') {
+                    areaSelect.append('<option value="600">강남권</option>');
+                    areaSelect.append('<option value="700">강북권</option>');
+                }
+
+                areaSelect.val(areaSelect.children('option:first').val()); // 첫 번째 option을 선택하거나 초기화
+            });
+
+            // 페이지 로드 시 초기 sisetype에 따른 option 설정
+            var initialType = $('input[name="sisetype"]:checked').val();
+            if (initialType) {
+                // 초기에 선택된 sisetype 값에 따라 option 설정
+                if (initialType === 'golf') {
+                    $('#area-select').html(`
+                        <option value="100">수도권/강원/충청권</option>
+                        <option value="101">다른 지역1</option>
+                        <option value="102">다른 지역2</option>
+                    `);
+                } else if (initialType === 'condo') {
+                    $('#area-select').html(`
+                        <option value="200">영남/제주권</option>
+                        <option value="201">다른 지역3</option>
+                        <option value="202">다른 지역4</option>
+                    `);
+                } else if (initialType === 'fitness') {
+                    $('#area-select').html(`
+                        <option value="300">호남권</option>
+                        <option value="301">다른 지역5</option>
+                        <option value="302">다른 지역6</option>
+                    `);
+                }
+            }
+
         });
 
         (function( PopupPopupForm1FormAPostSiseForm, $, undefined ) {

+ 11 - 3
pro/resources/views/page/sise.blade.php

@@ -31,9 +31,17 @@
 		<div class="container">
 			<ul class="tabs nav nav-tabs">
                 <li class="{{ request('area', 'all') === 'all' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, 'all']) }}">전체</a></li>
-                <li class="{{ request('area', 'all') === '100' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, '100']) }}">수도권/강원/충청권</a></li>
-                <li class="{{ request('area', 'all') === '200' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, '200']) }}">영남/제주권</a></li>
-                <li class="{{ request('area', 'all') === '300' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, '300']) }}">호남권</a></li>
+                @if($siseType == 'golf')
+                    <li class="{{ request('area', 'all') === '100' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, '100']) }}">수도권/강원/충청권</a></li>
+                    <li class="{{ request('area', 'all') === '200' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, '200']) }}">영남/제주권</a></li>
+                    <li class="{{ request('area', 'all') === '300' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, '300']) }}">호남권</a></li>
+                @elseif($siseType == 'condo')
+                    <li class="{{ request('area', 'all') === '400' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, '400']) }}">체인형콘도</a></li>
+                    <li class="{{ request('area', 'all') === '500' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, '500']) }}">스키장콘도</a></li>
+                @else
+                    <li class="{{ request('area', 'all') === '400' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, '600']) }}">강남권</a></li>
+                    <li class="{{ request('area', 'all') === '500' ? 'active' : '' }}"><a href="{{ route('sise', [$siseType, '700']) }}">강북권</a></li>
+                @endif
 			</ul>
 			<div class="tab-content">
 				<div class="tab-pane fade in active show">

+ 4 - 0
qry/erp/list/list-type1/post/post-sise-input/plain.sql

@@ -6,6 +6,10 @@ select
         WHEN mx.pc2 = 100 THEN '수도권/충청권'
         WHEN mx.pc2 = 200 THEN '영남/제주권'
         WHEN mx.pc2 = 300 THEN '호남권'
+        WHEN mx.pc2 = 400 THEN '체인형콘도'
+        WHEN mx.pc2 = 500 THEN '스키장콘도'
+        WHEN mx.pc2 = 600 THEN '강남권'
+        WHEN mx.pc2 = 700 THEN '강북권'
     END as c6,
     mx.pc3 as c3,
     mx.pc4 as c4,