Skip to content

Commit

Permalink
✨ 빠졌던 검색어 없이 강의를 검색할 수 있는 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp1221 committed Aug 10, 2023
1 parent 9d4f861 commit 2e0acc6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/routes/syllabus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
};
};

0 comments on commit 2e0acc6

Please sign in to comment.