From 2e0acc621b6e0bdf26ef380b525048b85cb5cd5e Mon Sep 17 00:00:00 2001 From: Naki Date: Thu, 10 Aug 2023 23:27:26 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=EB=B9=A0=EC=A1=8C=EB=8D=98=20?= =?UTF-8?q?=EA=B2=80=EC=83=89=EC=96=B4=20=EC=97=86=EC=9D=B4=20=EA=B0=95?= =?UTF-8?q?=EC=9D=98=EB=A5=BC=20=EA=B2=80=EC=83=89=ED=95=A0=20=EC=88=98=20?= =?UTF-8?q?=EC=9E=88=EB=8A=94=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/syllabus.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/routes/syllabus.js b/src/routes/syllabus.js index 3466961..05b012a 100644 --- a/src/routes/syllabus.js +++ b/src/routes/syllabus.js @@ -32,4 +32,27 @@ export default () => { } }); }; + + // 검색 함수 업그레이드 + appModule.getSearch = function () { + this.isSearch = 'N'; + this.selectYearHakgi = this.selectYear + ',' + this.selecthakgi; + + // 서버 부하 문제로 모든 강의 계획서 검색 금지 + if ( + this.selectRadio === 'all' && + this.selectText === '' && + this.selectProfsr === '' && + this.cmmnGamok === '' && + this.selecthakgwa === '' + ) { + alert('과목명 또는 담당 교수를 입력하지 않은 경우 반드시 과목이나 학과를 선택하셔야 합니다.'); + return; + } + + // 데이터 요청 + axios.post('LectrePlanStdList.do', this.$data).then((response) => { + this.list = response.data; + }); + }; };