แก้หัว popup

This commit is contained in:
setthawutttty 2025-07-22 15:00:01 +07:00
parent 7834db2fbe
commit 14da947953
4 changed files with 18 additions and 4 deletions

View file

@ -44,6 +44,7 @@ const props = defineProps({
fecthList: { type: Function, requreid: true },
rows: { type: Array as PropType<ResponseItems[]>, requreid: true },
mainTabs: { type: String, requreid: true },
cancel: { type: Boolean, default: false },
});
//Table
@ -235,7 +236,10 @@ watch(
<template>
<q-dialog v-model="props.modal" persistent>
<q-card style="min-width: 80%">
<DialogHeader tittle="ส่งไปออกคำสั่งลาออก" :close="closeModal" />
<DialogHeader
:tittle="`ส่งไปออกคำสั่ง${cancel ? 'ยกเลิกการ' : ''}ลาออก`"
:close="closeModal"
/>
<q-separator />
<q-card-section>
<div class="row col-12 q-col-gutter-sm">

View file

@ -308,7 +308,7 @@ onMounted(async () => {
color="primary"
icon="mdi-account-arrow-right"
>
<q-tooltip>งไปออกคำสงลาออก</q-tooltip>
<q-tooltip>{{ `ส่งไปออกคำสั่ง${stroeResign.mainTabs == '2'?"ยกเลิกการ":''}ลาออก` }}</q-tooltip>
</q-btn>
</div>
<q-space />
@ -432,6 +432,7 @@ onMounted(async () => {
:rows="rowsSendToCommand"
:fecth-list="fecthlist"
:main-tabs="stroeResign.mainTabs"
:cancel="stroeResign.mainTabs == '2' ? true : false"
/>
</template>
<style scoped lang="scss"></style>

View file

@ -42,6 +42,7 @@ const props = defineProps({
fecthList: { type: Function, requreid: true },
rows: { type: Array as PropType<ResponseItems[]>, requreid: true },
mainTabs: { type: String, requreid: true },
cancel: { type: Boolean, default: false },
});
const filterKeyword = defineModel<string>("filterKeyword", { required: true });
@ -210,7 +211,10 @@ watch(
<template>
<q-dialog v-model="props.modal" persistent>
<q-card style="min-width: 80%">
<DialogHeader tittle="ส่งไปออกคำสั่งลาออก" :close="closeModal" />
<DialogHeader
:tittle="`ส่งไปออกคำสั่ง${props.cancel ? 'ยกเลิกการ' : ''}ลาออก`"
:close="closeModal"
/>
<q-separator />
<q-card-section>
<div class="row col-12 q-col-gutter-sm">

View file

@ -304,7 +304,11 @@ onMounted(async () => {
color="primary"
icon="mdi-account-arrow-right"
>
<q-tooltip>งไปออกคำสงลาออก</q-tooltip>
<q-tooltip>{{
`ส่งไปออกคำสั่ง${
stroeResign.mainTabsEMP == "2" ? "ยกเลิกการ" : ""
}ลาออก`
}}</q-tooltip>
</q-btn>
</div>
<q-space />
@ -417,6 +421,7 @@ onMounted(async () => {
:rows="rowsSendToCommand"
:fecth-list="fecthlist"
:main-tabs="stroeResign.mainTabsEMP"
:cancel="stroeResign.mainTabsEMP == '2' ? true : false"
/>
</template>
<style scoped lang="scss"></style>