no message
This commit is contained in:
parent
360f60e751
commit
f156956d7f
4 changed files with 9 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue