no message

This commit is contained in:
STW_TTTY\stwtt 2024-04-02 14:55:23 +07:00
parent 360f60e751
commit f156956d7f
4 changed files with 9 additions and 9 deletions

View file

@ -22,7 +22,7 @@ const store = useDevelopmentDataStore();
const modal = defineModel<boolean>("modal", { required: true });
const selected = ref<any[]>();
const selected = ref<any[]>([]);
const search = ref<string>("citizenId");
const inputSearch = ref<string>("");
@ -62,7 +62,7 @@ function onSubmit() {
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
} else {
dialogConfirm($q, () => {
const data = selected.value?.[0];
const data = selected.value[0];
const body = {
citizenId: data.citizenId,
name: data.name,

View file

@ -22,7 +22,7 @@ const store = useDevelopmentDataStore();
const modal = defineModel<boolean>("modal", { required: true });
const selected = ref<any[]>();
const selected = ref<any[]>([]);
const search = ref<string>("ID1");
const inputSearch = ref<string>("");
@ -47,7 +47,7 @@ function onSubmit() {
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
} else {
dialogConfirm($q, () => {
const data = selected.value?.[0];
const data = selected.value[0];
const body = {
project: data.project,
year: data.year,

View file

@ -22,7 +22,7 @@ const store = useDevelopmentDataStore();
const modal = defineModel<boolean>("modal", { required: true });
const selected = ref<any[]>();
const selected = ref<any[]>([]);
const search = ref<string>("citizenId");
const inputSearch = ref<string>("");
@ -58,11 +58,11 @@ const projectOp = ref<DataOption[]>([
/** save ข้อมูล */
function onSubmit() {
if (selected.value?.length == 0) {
if (selected.value.length == 0) {
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
} else {
dialogConfirm($q, () => {
const data = selected.value?.[0];
const data = selected.value[0];
const body = {
citizenId: data.citizenId,
name: data.name,

View file

@ -22,7 +22,7 @@ const store = useDevelopmentDataStore();
const modal = defineModel<boolean>("modal", { required: true });
const selected = ref<any[]>();
const selected = ref<any[]>([]);
const search = ref<string>("ID1");
const inputSearch = ref<string>("");
@ -47,7 +47,7 @@ function onSubmit() {
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
} else {
dialogConfirm($q, () => {
const data = selected.value?.[0];
const data = selected.value[0];
const body = {
project: data.project,
year: data.year,