fix:profileType
This commit is contained in:
parent
c8d4c333b4
commit
fe8dc36df2
1 changed files with 11 additions and 2 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue