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 modal = defineModel<boolean>("modal", { required: true });
|
||||||
|
|
||||||
const selected = ref<any[]>();
|
const selected = ref<any[]>([]);
|
||||||
const search = ref<string>("citizenId");
|
const search = ref<string>("citizenId");
|
||||||
const inputSearch = ref<string>("");
|
const inputSearch = ref<string>("");
|
||||||
|
|
||||||
|
|
@ -62,7 +62,7 @@ function onSubmit() {
|
||||||
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
|
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
|
||||||
} else {
|
} else {
|
||||||
dialogConfirm($q, () => {
|
dialogConfirm($q, () => {
|
||||||
const data = selected.value?.[0];
|
const data = selected.value[0];
|
||||||
const body = {
|
const body = {
|
||||||
citizenId: data.citizenId,
|
citizenId: data.citizenId,
|
||||||
name: data.name,
|
name: data.name,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const store = useDevelopmentDataStore();
|
||||||
|
|
||||||
const modal = defineModel<boolean>("modal", { required: true });
|
const modal = defineModel<boolean>("modal", { required: true });
|
||||||
|
|
||||||
const selected = ref<any[]>();
|
const selected = ref<any[]>([]);
|
||||||
const search = ref<string>("ID1");
|
const search = ref<string>("ID1");
|
||||||
const inputSearch = ref<string>("");
|
const inputSearch = ref<string>("");
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ function onSubmit() {
|
||||||
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
|
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
|
||||||
} else {
|
} else {
|
||||||
dialogConfirm($q, () => {
|
dialogConfirm($q, () => {
|
||||||
const data = selected.value?.[0];
|
const data = selected.value[0];
|
||||||
const body = {
|
const body = {
|
||||||
project: data.project,
|
project: data.project,
|
||||||
year: data.year,
|
year: data.year,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const store = useDevelopmentDataStore();
|
||||||
|
|
||||||
const modal = defineModel<boolean>("modal", { required: true });
|
const modal = defineModel<boolean>("modal", { required: true });
|
||||||
|
|
||||||
const selected = ref<any[]>();
|
const selected = ref<any[]>([]);
|
||||||
const search = ref<string>("citizenId");
|
const search = ref<string>("citizenId");
|
||||||
const inputSearch = ref<string>("");
|
const inputSearch = ref<string>("");
|
||||||
|
|
||||||
|
|
@ -58,11 +58,11 @@ const projectOp = ref<DataOption[]>([
|
||||||
|
|
||||||
/** save ข้อมูล */
|
/** save ข้อมูล */
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
if (selected.value?.length == 0) {
|
if (selected.value.length == 0) {
|
||||||
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
|
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
|
||||||
} else {
|
} else {
|
||||||
dialogConfirm($q, () => {
|
dialogConfirm($q, () => {
|
||||||
const data = selected.value?.[0];
|
const data = selected.value[0];
|
||||||
const body = {
|
const body = {
|
||||||
citizenId: data.citizenId,
|
citizenId: data.citizenId,
|
||||||
name: data.name,
|
name: data.name,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const store = useDevelopmentDataStore();
|
||||||
|
|
||||||
const modal = defineModel<boolean>("modal", { required: true });
|
const modal = defineModel<boolean>("modal", { required: true });
|
||||||
|
|
||||||
const selected = ref<any[]>();
|
const selected = ref<any[]>([]);
|
||||||
const search = ref<string>("ID1");
|
const search = ref<string>("ID1");
|
||||||
const inputSearch = ref<string>("");
|
const inputSearch = ref<string>("");
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ function onSubmit() {
|
||||||
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
|
dialogMessageNotify($q, `กรุณาเลือก 1 รายการ`);
|
||||||
} else {
|
} else {
|
||||||
dialogConfirm($q, () => {
|
dialogConfirm($q, () => {
|
||||||
const data = selected.value?.[0];
|
const data = selected.value[0];
|
||||||
const body = {
|
const body = {
|
||||||
project: data.project,
|
project: data.project,
|
||||||
year: data.year,
|
year: data.year,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue