no message
This commit is contained in:
parent
62ad5673c6
commit
d47ef4efee
2 changed files with 10 additions and 10 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, computed, watchEffect, onMounted } from "vue";
|
||||
import { ref, computed, watchEffect, onMounted, watch } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import type { QTableProps } from "quasar";
|
||||
|
|
@ -119,6 +119,7 @@ const columns2 = ref<QTableProps["columns"]>([
|
|||
]);
|
||||
|
||||
const props = defineProps({
|
||||
data:Array,
|
||||
Modal: Boolean,
|
||||
closeModal: Function,
|
||||
getData: Function,
|
||||
|
|
@ -209,8 +210,15 @@ watchEffect(() => {
|
|||
}
|
||||
});
|
||||
|
||||
watch(()=>props.data,()=>{
|
||||
if(props.data){
|
||||
const data = props.data.persons
|
||||
console.log(data)
|
||||
}
|
||||
})
|
||||
onMounted(async () => {
|
||||
await fecthTypeOption();
|
||||
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -28,15 +28,6 @@ const route = useRoute();
|
|||
const id = ref<string>(route.params.id as string);
|
||||
const type = ref<string>("");
|
||||
|
||||
/** ข้อมูล v-model ของฟอร์ม */
|
||||
const data = reactive<FormData>({
|
||||
detail: "",
|
||||
});
|
||||
|
||||
/** จำลองข้อมูลจาก api */
|
||||
const fetchData = async () => {
|
||||
data.detail = "";
|
||||
};
|
||||
|
||||
/**
|
||||
* บันทึกข้อมูลที่เเก้ไข
|
||||
|
|
@ -331,6 +322,7 @@ watch(
|
|||
v-model:Modal="modal"
|
||||
:closeModal="closeModal"
|
||||
:rows2="[]"
|
||||
:data="dataResult"
|
||||
v-model:filterKeyword2="filterKeyword"
|
||||
:getData="getData"
|
||||
v-model:type="type"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue