แก้วินัย อัพไฟล์ เเล้ว ข้อมูลเเก้ไขหาย/เเก้ฟิลเตอร์
This commit is contained in:
parent
b670ae3733
commit
9bf53d2689
8 changed files with 275 additions and 190 deletions
|
|
@ -75,10 +75,11 @@ const props = defineProps({
|
|||
type: Function,
|
||||
default: () => console.log("not function"),
|
||||
required: true,
|
||||
},selecetSwitch:{
|
||||
type:String,
|
||||
default:'multiple'
|
||||
}
|
||||
},
|
||||
selecetSwitch: {
|
||||
type: String,
|
||||
default: "multiple",
|
||||
},
|
||||
});
|
||||
|
||||
/**ส่งค่ากลับหน้าหลัก */
|
||||
|
|
@ -147,16 +148,18 @@ async function searchInput() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/** update เมื่อเปลี่ยน option */
|
||||
function updateSelect() {
|
||||
search.value = "";
|
||||
}
|
||||
watch(()=>props.selectedData,()=>{
|
||||
if(props.selectedData){
|
||||
selected.value = props.selectedData
|
||||
watch(
|
||||
() => props.selectedData,
|
||||
() => {
|
||||
if (props.selectedData) {
|
||||
selected.value = props.selectedData;
|
||||
}
|
||||
}
|
||||
})
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -277,7 +280,10 @@ watch(()=>props.selectedData,()=>{
|
|||
<div v-if="col.name === 'fullName'">
|
||||
{{ props.prefix }}
|
||||
</div>
|
||||
<div>
|
||||
<div v-else-if="col.name === 'salary'">
|
||||
{{ props.row.salary.toLocaleString() }}
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ col.value }}
|
||||
</div>
|
||||
</q-td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue