Merge branch 'develop' into warunee-dev

This commit is contained in:
Warunee Tamkoo 2023-12-01 14:42:32 +07:00
commit ab15f989cc
14 changed files with 637 additions and 42 deletions

View file

@ -21,7 +21,7 @@ interface typeOp {
}
interface tableType {
id: string;
personId: string;
idcard: string;
prefix: string;
firstName: string;
@ -46,10 +46,6 @@ const typeOps = ref<typeOp[]>([
/** รับค่ามาจาก หน้าหลัก */
const props = defineProps({
checkId: {
type: Array,
default: [],
},
modal: {
type: Boolean,
default: false,
@ -67,6 +63,10 @@ const props = defineProps({
type: String,
default: "",
},
selectedData: {
type: Array,
default: [],
},
close: {
type: Function,
default: () => console.log("not function"),
@ -145,10 +145,16 @@ async function searchInput() {
}
}
/** update เมื่อเปลี่ยน option */
function updateSelect() {
search.value = "";
}
watch(()=>props.selectedData,()=>{
if(props.selectedData){
selected.value = props.selectedData
}
})
</script>
<template>
@ -214,7 +220,7 @@ function updateSelect() {
ref="table"
:columns="mainStore.columnsRespondent"
:rows="rows"
row-key="personId"
row-key="idcard"
flat
bordered
:paging="true"