fix: notify
This commit is contained in:
parent
8e56123e12
commit
163ff5ec12
2 changed files with 20 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ const {
|
|||
showLoader,
|
||||
hideLoader,
|
||||
convertDateToAPI,
|
||||
notifyWarring,
|
||||
} = mixin;
|
||||
|
||||
const checkRoutePermisson = ref<boolean>(
|
||||
|
|
@ -376,7 +377,11 @@ async function checkSave() {
|
|||
myForm.value.validate().then(async (success) => {
|
||||
if (success) {
|
||||
if (edit.value) {
|
||||
await editData(id.value);
|
||||
if (rowsPosition.value.length == 0) {
|
||||
notifyWarring($q, "กรุณาเพิ่มตำแหน่ง");
|
||||
} else {
|
||||
await editData(id.value);
|
||||
}
|
||||
} else {
|
||||
await addData();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue