รายการระดับตำแหน่ง: แก้validate
This commit is contained in:
parent
6116ce4387
commit
6e607d6f53
1 changed files with 7 additions and 2 deletions
|
|
@ -228,7 +228,12 @@ function validateForm() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onSubmit() {
|
async function onSubmit() {
|
||||||
if (posLevelName.value.length > 0) {
|
if (
|
||||||
|
posLevelName.value.length > 0 &&
|
||||||
|
posLevelAuthority.value.length > 0 &&
|
||||||
|
posLevelRank.value !== undefined &&
|
||||||
|
posLevelRank.value > 0
|
||||||
|
) {
|
||||||
dialogConfirm(
|
dialogConfirm(
|
||||||
$q,
|
$q,
|
||||||
async () => {
|
async () => {
|
||||||
|
|
@ -405,7 +410,7 @@ onMounted(async () => {
|
||||||
borderless
|
borderless
|
||||||
min="1"
|
min="1"
|
||||||
bg-color="white"
|
bg-color="white"
|
||||||
:rules="[(val) => val != null || 'กรุณากรอกระดับ']"
|
:rules="[(val) => val > 0 || 'กรุณากรอกระดับ']"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
mask="############"
|
mask="############"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue