Merge branch 'develop' into warunee-dev
This commit is contained in:
commit
ab15f989cc
14 changed files with 637 additions and 42 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue