ทะเบียนประวัติ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-14 16:05:58 +07:00
parent 2edda09818
commit a20426bdf8
20 changed files with 931 additions and 794 deletions

View file

@ -18,12 +18,13 @@ const router = useRouter();
const formFilter = defineModel<FormFilter>("formFilter", { required: true });
const maxPage = defineModel<Number>("maxPage", { required: true });
const empType = defineModel<string>("empType", { required: true });
const props = defineProps({
rows: { type: Array },
fetchData: { type: Function },
fetchType: { type: Function },
total: { type: Number },
empType: { type: String },
// empType: { type: String },
});
const columns = ref<QTableProps["columns"]>([
@ -167,7 +168,7 @@ function onClickHistory() {
}
function onClickViewDetail(id: string) {
if (props.empType === "officer") {
if (empType.value === "officer") {
router.push(`/registry-new/${id}`);
} else {
router.push(`/registry-new-employee/${id}`);
@ -299,8 +300,8 @@ watch(
<div class="row col-12 wrap items-center">
<q-item>
<q-item-section avatar>
<q-avatar>
<img :src="props.row.avartar" class="col-4 img-info" />
<q-avatar size="50px" class="bg-grey-2">
<q-img :src="props.row.avatar" />
</q-avatar>
</q-item-section>
<q-item-section>
@ -371,7 +372,11 @@ watch(
<q-item dense>
<q-item-section>
<q-item-label caption>ประเภทตำแหน</q-item-label>
<q-item-label caption>
{{
empType === "officer" ? "ประเภทตำแหน่ง" : "กลุ่มงาน"
}}</q-item-label
>
</q-item-section>
<q-item-section>
<q-item-label caption class="text-black">
@ -384,7 +389,11 @@ watch(
<q-item dense>
<q-item-section>
<q-item-label caption>ระดบตำแหน</q-item-label>
<q-item-label caption>
{{
empType === "officer" ? "ระดับตำแหน่ง" : "ระดับชั้นงาน"
}}</q-item-label
>
</q-item-section>
<q-item-section>
<q-item-label caption class="text-black">