feat(position-employee): copy position-employee
This commit is contained in:
parent
18a5eecbb1
commit
e97c1a97f7
3 changed files with 32 additions and 14 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, reactive, watch } from "vue";
|
||||
import { ref, reactive, watch, computed } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
|
|
@ -63,6 +63,16 @@ const props = defineProps({
|
|||
positionHolderInfo: { type: Object, default: () => ({}) },
|
||||
});
|
||||
|
||||
const titlePopup = computed(() => {
|
||||
return props.actionType === "ADD"
|
||||
? "เพิ่มอัตรากำลัง"
|
||||
: props.actionType === "EDIT"
|
||||
? "แก้ไขอัตรากำลัง"
|
||||
: props.actionType === "COPY"
|
||||
? "คัดลอกอัตรากำลัง"
|
||||
: "";
|
||||
});
|
||||
|
||||
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
||||
const isEdit = ref<boolean>(false); //การแก้ไข
|
||||
const modalAdd = ref<boolean>(false); //เพิ่ม แก้้ไขตำแหน่ง
|
||||
|
|
@ -582,12 +592,7 @@ watch(
|
|||
<template>
|
||||
<q-dialog v-model="props.modal" persistent>
|
||||
<q-card style="min-width: 80vw">
|
||||
<DialogHeader
|
||||
:tittle="
|
||||
props.actionType === 'ADD' ? 'เพิ่มอัตรากำลัง' : 'แก้ไขอัตรากำลัง'
|
||||
"
|
||||
:close="close"
|
||||
/>
|
||||
<DialogHeader :tittle="titlePopup" :close="close" />
|
||||
<q-separator />
|
||||
<q-form greedy @submit.prevent @validation-success="onSubmit">
|
||||
<q-card-section class="q-pa-sm fixed-height">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue