props type

This commit is contained in:
STW_TTTY\stwtt 2024-05-17 17:20:50 +07:00
parent e66a5f8258
commit 30befa38c2
6 changed files with 44 additions and 15 deletions

View file

@ -181,7 +181,11 @@ onMounted(async () => {
/>
รายละเอยดการปรบระดบชนงานลกจาง {{ title.fullname }}
</div>
<CardProfile :data="dataProfile as DataProfile" />
<CardProfile
:data="dataProfile as DataProfile"
:type="'employee'"
/>
<q-card bordered class="row col-12 text-dark q-mt-sm">
<div class="bg-grey-1 q-pa-sm col-12 row items-center text-primary">

View file

@ -157,7 +157,7 @@ watchEffect(() => {
<div class="row justify-between">
<div class="col-5">
<q-toolbar style="padding: 0">
<q-select
<!-- <q-select
outlined
dense
:model-value="type"
@ -169,7 +169,7 @@ watchEffect(() => {
map-options
option-label="name"
option-value="id"
/>
/> -->
</q-toolbar>
</div>
<div class="col-5">

View file

@ -19,6 +19,7 @@ import config from "@/app.config";
import DialogOrgSelectEmployee from "@/components/Dialogs/DialogOrgSelectEmployee.vue";
const typeModal = ref<string>("");
const posType = ref<string>("");
const posLevel = ref<string>("");
const position = ref<string>("");
@ -437,7 +438,7 @@ const clickClose = () => {
const popup = () => {
modal.value = true;
filterKeyword2.value = "";
fecthTypeOption();
// fecthTypeOption();
};
const checkSave = () => {
@ -487,9 +488,9 @@ const savePosition = async () => {
function openModalTree(data:any){
function openModalTree(data:any,type:string){
modalTree.value = true
typeModal.value = type;
personalId.value = data.id;
dataRows.value = data;
posType.value = data.posTypeId;
@ -513,6 +514,7 @@ function onSave(data: any) {
posLevelName: data.posLevelName,
reportingDate: data.reportingDate,
posmasterId: data.posmasterId,
typeCommand: data.typeCommand,
};
showLoader();
@ -709,7 +711,7 @@ function onSave(data: any) {
<q-item
clickable
v-close-popup
@click="openModalTree(props.row)"
@click="openModalTree(props.row,'SLIP')"
>
<q-item-section
style="min-width: 0px"
@ -722,7 +724,25 @@ function onSave(data: any) {
name="mdi-bookmark-outline"
/>
</q-item-section>
<q-item-section>หนวยงานทบการปรบระดบชนงาน</q-item-section>
<q-item-section>เลอกหนวยงานทบปรบระดบชนงาน</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@click="openModalTree(props.row,'MOVE')"
>
<q-item-section
style="min-width: 0px"
avatar
class="q-py-sm"
>
<q-icon
color="primary"
size="xs"
name="mdi-bookmark-outline"
/>
</q-item-section>
<q-item-section>เลอกหนวยงานทบยาย</q-item-section>
</q-item>
<q-item
clickable
@ -850,6 +870,7 @@ function onSave(data: any) {
<DialogOrgSelectEmployee
:title="`เลือกหน่วยงานที่รับการปรับระดับชั้นงาน`"
v-model:modal="modalTree"
v-model:type="typeModal"
:posType="posType"
:posLevel="posLevel"
:position="position"