props type
This commit is contained in:
parent
e66a5f8258
commit
30befa38c2
6 changed files with 44 additions and 15 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue