รายการระดับตำแหน่ง: แก้validate

This commit is contained in:
oat_dev 2024-03-20 13:15:38 +07:00
parent 6116ce4387
commit 6e607d6f53

View file

@ -228,7 +228,12 @@ function validateForm() {
}
async function onSubmit() {
if (posLevelName.value.length > 0) {
if (
posLevelName.value.length > 0 &&
posLevelAuthority.value.length > 0 &&
posLevelRank.value !== undefined &&
posLevelRank.value > 0
) {
dialogConfirm(
$q,
async () => {
@ -405,7 +410,7 @@ onMounted(async () => {
borderless
min="1"
bg-color="white"
:rules="[(val) => val != null || 'กรุณากรอกระดับ']"
:rules="[(val) => val > 0 || 'กรุณากรอกระดับ']"
hide-bottom-space
mask="############"
/>