Compare commits

...

2 commits

Author SHA1 Message Date
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
0303046e7a Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m58s
2026-03-30 10:41:33 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
e9bcebee6d fix(exam): add qualify period validation for announcement type 2026-03-30 10:40:57 +07:00

View file

@ -400,7 +400,7 @@ async function checkSave() {
// validation form
const isPositionFormValid = await myFormPosition.value?.validate();
if (!isPositionFormValid) return;
if (!isPositionFormValid && announcementExam.value) return;
//
if (announcementExam.value && rowsPosition.value.length === 0) {
@ -889,7 +889,7 @@ function fetchPosition(level: number) {
* @param val าประเภทตำแหน 0 = ประเภททวไป ,1 = ประเภทวชาการ
* @param index ตำแหนงของขอม
*/
function onUpdateHighDegree(val: string, index: string) {
function onUpdateHighDegree(val: string, index: number) {
rowsPosition.value[index].position = null;
rowsPosition.value[index].level =
val === "0" ? optionPosLevel1.value[0] : optionPosLevel2.value[0];