แก้ไขคำผิด
This commit is contained in:
parent
d226498322
commit
e3365235c6
9 changed files with 68 additions and 52 deletions
|
|
@ -21,7 +21,7 @@ onMounted(() => {
|
|||
|
||||
<template>
|
||||
<div class="toptitle text-dark col-12 row items-center">
|
||||
ข้อมูลตำแหน่งข้าราชการฯ
|
||||
ข้อมูลตำแหน่งข้าราชการ ฯ
|
||||
</div>
|
||||
|
||||
<q-card flat bordered>
|
||||
|
|
|
|||
|
|
@ -18,6 +18,10 @@ import type {
|
|||
} from "@/modules/06_retirement/interface/response/Main";
|
||||
import type { QTableProps } from "quasar";
|
||||
import PopupPersonal from "@/components/Dialogs/PopupPersonal.vue";
|
||||
import type { DataProfile } from "@/modules/05_placement/interface/index/Main";
|
||||
|
||||
/** importComponents*/
|
||||
import CardProfile from "@/components/CardProfile.vue";
|
||||
|
||||
const avatar = ref<string>("");
|
||||
const modalPersonal = ref<boolean>(false);
|
||||
|
|
@ -42,6 +46,8 @@ const { statusText } = RetirementData;
|
|||
|
||||
/** ตัวแปร */
|
||||
const roleUser = ref<string>("");
|
||||
const dataProfile = ref<DataProfile>();
|
||||
|
||||
const id = ref<string>(route.params.id.toString());
|
||||
const myForm = ref<QForm | null>(null);
|
||||
const myFormConfirm = ref<QForm | null>(null);
|
||||
|
|
@ -166,7 +172,7 @@ const fetchData = async (id: string) => {
|
|||
.get(config.API.resingByid(id))
|
||||
.then((res: any) => {
|
||||
const data = res.data.result;
|
||||
console.log(data);
|
||||
dataProfile.value = data as DataProfile;
|
||||
|
||||
let list: TypeFile[] = [];
|
||||
if (data.docs.length > 0) {
|
||||
|
|
@ -190,7 +196,7 @@ const fetchData = async (id: string) => {
|
|||
location.value = data.location ?? "";
|
||||
status.value = data.status ?? "";
|
||||
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
||||
getAvatar(data.profileId);
|
||||
// getAvatar(data.profileId);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -200,19 +206,19 @@ const fetchData = async (id: string) => {
|
|||
});
|
||||
};
|
||||
|
||||
function getAvatar(id: string) {
|
||||
if (id) {
|
||||
http
|
||||
.get(config.API.profileAvaId(id))
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
const dataList = res.data.result;
|
||||
avatar.value = dataList.avatar;
|
||||
})
|
||||
.catch((e) => {})
|
||||
.finally(() => {});
|
||||
}
|
||||
}
|
||||
// function getAvatar(id: string) {
|
||||
// if (id) {
|
||||
// http
|
||||
// .get(config.API.profileAvaId(id))
|
||||
// .then((res) => {
|
||||
// console.log(res);
|
||||
// const dataList = res.data.result;
|
||||
// avatar.value = dataList.avatar;
|
||||
// })
|
||||
// .catch((e) => {})
|
||||
// .finally(() => {});
|
||||
// }
|
||||
// }
|
||||
|
||||
// const downloadFile = (response: any, filename: string) => {
|
||||
// const link = document.createElement("a");
|
||||
|
|
@ -318,16 +324,19 @@ const saveConditions = () => {
|
|||
if (myForm.value !== null) {
|
||||
myForm.value.validate().then((success) => {
|
||||
if (success) {
|
||||
dialogMessage(
|
||||
$q,
|
||||
"ต้องการแก้ไขข้อมูลหรือไม่?",
|
||||
"แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย",
|
||||
"mdi-help-circle-outline",
|
||||
"ตกลง",
|
||||
"public",
|
||||
async () => await dataSave(),
|
||||
undefined
|
||||
);
|
||||
dialogConfirm($q, () => {
|
||||
dataSave();
|
||||
});
|
||||
// dialogMessage(
|
||||
// $q,
|
||||
// "ต้องการแก้ไขข้อมูลหรือไม่?",
|
||||
// "แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย",
|
||||
// "mdi-help-circle-outline",
|
||||
// "ตกลง",
|
||||
// "public",
|
||||
// async () => await dataSave(),
|
||||
// undefined
|
||||
// );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -343,16 +352,19 @@ const conditionSave = () => {
|
|||
if (myForm.value !== null) {
|
||||
myForm.value.validate().then((success) => {
|
||||
if (success) {
|
||||
dialogMessage(
|
||||
$q,
|
||||
"ต้องการแก้ไขข้อมูลหรือไม่?",
|
||||
"แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย",
|
||||
"mdi-help-circle-outline",
|
||||
"ตกลง",
|
||||
"public",
|
||||
async () => await saveData(),
|
||||
undefined
|
||||
);
|
||||
dialogConfirm($q, () => {
|
||||
saveData();
|
||||
});
|
||||
// dialogMessage(
|
||||
// $q,
|
||||
// "ต้องการแก้ไขข้อมูลหรือไม่?",
|
||||
// "แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย",
|
||||
// "mdi-help-circle-outline",
|
||||
// "ตกลง",
|
||||
// "public",
|
||||
// async () => ,
|
||||
// undefined
|
||||
// );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -448,11 +460,6 @@ const downloadFile = (response: any, filename: string) => {
|
|||
document.body.removeChild(link);
|
||||
};
|
||||
|
||||
function onclickViewinfo(id: string) {
|
||||
modalPersonal.value = true;
|
||||
personId.value = id;
|
||||
}
|
||||
|
||||
function updatemodalPersonal(modal: boolean) {
|
||||
modalPersonal.value = modal;
|
||||
}
|
||||
|
|
@ -463,7 +470,7 @@ function uploadFiles() {
|
|||
showLoader();
|
||||
http
|
||||
.put(config.API.investigateRelevantUploadFile(id.value), Data)
|
||||
.then((res) => {
|
||||
.then(() => {
|
||||
success($q, "อัปโหลดไฟล์สำเร็จ");
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
@ -520,7 +527,10 @@ function confirmRemove(fileId: string) {
|
|||
รายละเอียดการลาออกของ
|
||||
{{ dataDetail.firstName + " " + dataDetail.lastName }}
|
||||
</div>
|
||||
<q-card bordered class="row col-12 text-dark">
|
||||
|
||||
<CardProfile :data="dataProfile as DataProfile" />
|
||||
|
||||
<!-- <q-card bordered class="row col-12 text-dark">
|
||||
<div class="bg-grey-1 q-pa-sm col-12 row items-center text-primary">
|
||||
<div class="q-pl-sm text-weight-bold text-subtitle2">
|
||||
{{ dataDetail.firstName + " " + dataDetail.lastName }}
|
||||
|
|
@ -577,7 +587,7 @@ function confirmRemove(fileId: string) {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</q-card>
|
||||
</q-card> -->
|
||||
|
||||
<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">
|
||||
|
|
@ -661,6 +671,7 @@ function confirmRemove(fileId: string) {
|
|||
</div>
|
||||
</div>
|
||||
</q-card>
|
||||
|
||||
<q-card v-if="rows.length > 0" 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">
|
||||
<div class="q-pl-sm text-weight-bold text-dark">เอกสารเพิ่มเติม</div>
|
||||
|
|
@ -932,6 +943,7 @@ function confirmRemove(fileId: string) {
|
|||
</div>
|
||||
</div>
|
||||
</q-card>
|
||||
|
||||
<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">
|
||||
<div class="q-pl-sm text-weight-bold text-dark">
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ export const useRetirementDataStore = defineStore("retirement", () => {
|
|||
return "ส่งรายชื่อไปออกคำสั่ง";
|
||||
case "DONE":
|
||||
return "ออกคำสั่งเสร็จแล้ว";
|
||||
case "CANCEL":
|
||||
return "ยกเลิกการลาออก";
|
||||
|
||||
default:
|
||||
return "-";
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ onMounted(() => {
|
|||
<template>
|
||||
<div class="row items-center">
|
||||
<div class="toptitle text-dark row items-center q-py-xs">
|
||||
รายการเลื่อนเงินเดือนข้าราชการฯ
|
||||
รายการเลื่อนเงินเดือนข้าราชการ ฯ
|
||||
</div>
|
||||
<q-space />
|
||||
<datepicker
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ onMounted(() => {
|
|||
<!-- Card ข้อมูลข้าราชการฯ -->
|
||||
<q-card flat bordered style="border: 1px solid #d6dee1">
|
||||
<div class="col-12 text-weight-bold bg-grey-1 q-py-sm q-px-md">
|
||||
ข้อมูลข้าราชการฯ
|
||||
ข้อมูลข้าราชการ ฯ
|
||||
</div>
|
||||
<div class="col-12"><q-separator /></div>
|
||||
<div class="row q-pa-md q-col-gutter-md">
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ watch(
|
|||
<template>
|
||||
<q-dialog v-model="modal" persistent>
|
||||
<q-card class="col-12" style="width: 60%">
|
||||
<Header :tittle="'เลือกข้าราชการฯ'" :close="closeDialog" />
|
||||
<Header :tittle="'เลือกข้าราชการ ฯ'" :close="closeDialog" />
|
||||
<q-separator />
|
||||
|
||||
<q-card-section>
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ const { showLoader, hideLoader, messageError, dialogMessageNotify } =
|
|||
|
||||
const node = ref<any>([]);
|
||||
const expanded = ref<string[]>([]);
|
||||
const expandedDialog = ref<string[]>([]);
|
||||
|
||||
const filter = ref<string>("");
|
||||
const filterMain = ref<string>("");
|
||||
const splitterModel = ref<number>(60);
|
||||
|
|
@ -553,7 +555,7 @@ onMounted(() => {
|
|||
:nodes="node"
|
||||
node-key="orgTreeName"
|
||||
label-key="labelName"
|
||||
v-model:expanded="expanded"
|
||||
v-model:expanded="expandedDialog"
|
||||
:filter="filter"
|
||||
no-results-label="ไม่พบข้อมูลที่ค้นหา"
|
||||
no-nodes-label="ไม่มีข้อมูล"
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ function onDownload() {
|
|||
.get(config.API.developmentReportScholarship())
|
||||
.then((res) => {
|
||||
const dataList = res.data.result;
|
||||
genReportXLSX(dataList, "รายการข้าราชการฯที่ได้รับทุนการศึกษา/ฝึกอบรม");
|
||||
genReportXLSX(dataList, "รายการข้าราชการ ฯ ที่ได้รับทุนการศึกษา/ฝึกอบรม");
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue