fix:profileType

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-12-18 09:33:40 +07:00
parent c8d4c333b4
commit fe8dc36df2

View file

@ -54,6 +54,7 @@ const isSave = ref<boolean>(false); // มีการแก้ไขรอบ
const isReadonly = ref<boolean>(false); //
const fileList = ref<ArrayFileList[]>([]);
const countNum = ref<number>(1);
const profileType = ref<string>("");
/** รับ props มาจากหน้าหลัก */
const props = defineProps({
@ -299,10 +300,12 @@ function inputEdit(val: boolean) {
/**
* pop up รายละเอยดบคคล
* @param id id ของบคคล
* @param type ประเภทบคคล
*/
function onclickViewinfo(id: string) {
function onclickViewinfo(id: string, type: string) {
modalPersonal.value = true;
personId.value = id;
profileType.value = type;
}
/**
@ -587,7 +590,12 @@ onMounted(async () => {
round
color="info"
icon="mdi-eye"
@click="onclickViewinfo(props.row.personId)"
@click="
onclickViewinfo(
props.row.personId,
props.row.profileType
)
"
>
<q-tooltip>อมลในทะเบยนประว</q-tooltip>
</q-btn>
@ -1115,6 +1123,7 @@ onMounted(async () => {
:modal="modalPersonal"
:id="personId"
@update:modal="updatemodalPersonal"
:type="profileType"
/>
</template>