แก้ไขคำผิด

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-23 13:10:14 +07:00
parent d226498322
commit e3365235c6
9 changed files with 68 additions and 52 deletions

View file

@ -66,7 +66,7 @@ const menuList = readonly<any[]>([
}, },
{ {
key: 2.0, key: 2.0,
label: "ข้อมูลตำแหน่งข้าราชการฯ", label: "ข้อมูลตำแหน่งข้าราชการ ฯ",
path: "masterPosition", path: "masterPosition",
}, },
{ {
@ -507,7 +507,7 @@ const menuList = readonly<any[]>([
role: "salary", role: "salary",
children: [ children: [
{ {
label: "ผังบัญชีเงินเดือนข้าราชการฯ", label: "ผังบัญชีเงินเดือนข้าราชการ ฯ",
path: "salaryChart", path: "salaryChart",
role: "salary", role: "salary",
}, },
@ -522,7 +522,7 @@ const menuList = readonly<any[]>([
role: "salary", role: "salary",
}, },
{ {
label: "เลื่อนเงินเดือนข้าราชการฯ", label: "เลื่อนเงินเดือนข้าราชการ ฯ",
path: "salaryLists", path: "salaryLists",
role: "salary", role: "salary",
}, },

View file

@ -21,7 +21,7 @@ onMounted(() => {
<template> <template>
<div class="toptitle text-dark col-12 row items-center"> <div class="toptitle text-dark col-12 row items-center">
อมลตำแหนงขาราชการ อมลตำแหนงขาราชการ
</div> </div>
<q-card flat bordered> <q-card flat bordered>

View file

@ -18,6 +18,10 @@ import type {
} from "@/modules/06_retirement/interface/response/Main"; } from "@/modules/06_retirement/interface/response/Main";
import type { QTableProps } from "quasar"; import type { QTableProps } from "quasar";
import PopupPersonal from "@/components/Dialogs/PopupPersonal.vue"; 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 avatar = ref<string>("");
const modalPersonal = ref<boolean>(false); const modalPersonal = ref<boolean>(false);
@ -42,6 +46,8 @@ const { statusText } = RetirementData;
/** ตัวแปร */ /** ตัวแปร */
const roleUser = ref<string>(""); const roleUser = ref<string>("");
const dataProfile = ref<DataProfile>();
const id = ref<string>(route.params.id.toString()); const id = ref<string>(route.params.id.toString());
const myForm = ref<QForm | null>(null); const myForm = ref<QForm | null>(null);
const myFormConfirm = ref<QForm | null>(null); const myFormConfirm = ref<QForm | null>(null);
@ -166,7 +172,7 @@ const fetchData = async (id: string) => {
.get(config.API.resingByid(id)) .get(config.API.resingByid(id))
.then((res: any) => { .then((res: any) => {
const data = res.data.result; const data = res.data.result;
console.log(data); dataProfile.value = data as DataProfile;
let list: TypeFile[] = []; let list: TypeFile[] = [];
if (data.docs.length > 0) { if (data.docs.length > 0) {
@ -190,7 +196,7 @@ const fetchData = async (id: string) => {
location.value = data.location ?? ""; location.value = data.location ?? "";
status.value = data.status ?? ""; status.value = data.status ?? "";
remarkHorizontal.value = data.remarkHorizontal ?? "-"; remarkHorizontal.value = data.remarkHorizontal ?? "-";
getAvatar(data.profileId); // getAvatar(data.profileId);
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); messageError($q, e);
@ -200,19 +206,19 @@ const fetchData = async (id: string) => {
}); });
}; };
function getAvatar(id: string) { // function getAvatar(id: string) {
if (id) { // if (id) {
http // http
.get(config.API.profileAvaId(id)) // .get(config.API.profileAvaId(id))
.then((res) => { // .then((res) => {
console.log(res); // console.log(res);
const dataList = res.data.result; // const dataList = res.data.result;
avatar.value = dataList.avatar; // avatar.value = dataList.avatar;
}) // })
.catch((e) => {}) // .catch((e) => {})
.finally(() => {}); // .finally(() => {});
} // }
} // }
// const downloadFile = (response: any, filename: string) => { // const downloadFile = (response: any, filename: string) => {
// const link = document.createElement("a"); // const link = document.createElement("a");
@ -318,16 +324,19 @@ const saveConditions = () => {
if (myForm.value !== null) { if (myForm.value !== null) {
myForm.value.validate().then((success) => { myForm.value.validate().then((success) => {
if (success) { if (success) {
dialogMessage( dialogConfirm($q, () => {
$q, dataSave();
"ต้องการแก้ไขข้อมูลหรือไม่?", });
"แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย", // dialogMessage(
"mdi-help-circle-outline", // $q,
"ตกลง", // "?",
"public", // "",
async () => await dataSave(), // "mdi-help-circle-outline",
undefined // "",
); // "public",
// async () => await dataSave(),
// undefined
// );
} }
}); });
} }
@ -343,16 +352,19 @@ const conditionSave = () => {
if (myForm.value !== null) { if (myForm.value !== null) {
myForm.value.validate().then((success) => { myForm.value.validate().then((success) => {
if (success) { if (success) {
dialogMessage( dialogConfirm($q, () => {
$q, saveData();
"ต้องการแก้ไขข้อมูลหรือไม่?", });
"แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย", // dialogMessage(
"mdi-help-circle-outline", // $q,
"ตกลง", // "?",
"public", // "",
async () => await saveData(), // "mdi-help-circle-outline",
undefined // "",
); // "public",
// async () => ,
// undefined
// );
} }
}); });
} }
@ -448,11 +460,6 @@ const downloadFile = (response: any, filename: string) => {
document.body.removeChild(link); document.body.removeChild(link);
}; };
function onclickViewinfo(id: string) {
modalPersonal.value = true;
personId.value = id;
}
function updatemodalPersonal(modal: boolean) { function updatemodalPersonal(modal: boolean) {
modalPersonal.value = modal; modalPersonal.value = modal;
} }
@ -463,7 +470,7 @@ function uploadFiles() {
showLoader(); showLoader();
http http
.put(config.API.investigateRelevantUploadFile(id.value), Data) .put(config.API.investigateRelevantUploadFile(id.value), Data)
.then((res) => { .then(() => {
success($q, "อัปโหลดไฟล์สำเร็จ"); success($q, "อัปโหลดไฟล์สำเร็จ");
}) })
.catch((e) => { .catch((e) => {
@ -520,7 +527,10 @@ function confirmRemove(fileId: string) {
รายละเอยดการลาออกของ รายละเอยดการลาออกของ
{{ dataDetail.firstName + " " + dataDetail.lastName }} {{ dataDetail.firstName + " " + dataDetail.lastName }}
</div> </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="bg-grey-1 q-pa-sm col-12 row items-center text-primary">
<div class="q-pl-sm text-weight-bold text-subtitle2"> <div class="q-pl-sm text-weight-bold text-subtitle2">
{{ dataDetail.firstName + " " + dataDetail.lastName }} {{ dataDetail.firstName + " " + dataDetail.lastName }}
@ -577,7 +587,7 @@ function confirmRemove(fileId: string) {
</div> </div>
</div> </div>
</div> </div>
</q-card> </q-card> -->
<q-card bordered class="row col-12 text-dark q-mt-sm"> <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="bg-grey-1 q-pa-sm col-12 row items-center text-primary">
@ -661,6 +671,7 @@ function confirmRemove(fileId: string) {
</div> </div>
</div> </div>
</q-card> </q-card>
<q-card v-if="rows.length > 0" bordered class="row col-12 text-dark q-mt-sm"> <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="bg-grey-1 q-pa-sm col-12 row items-center text-primary">
<div class="q-pl-sm text-weight-bold text-dark">เอกสารเพมเต</div> <div class="q-pl-sm text-weight-bold text-dark">เอกสารเพมเต</div>
@ -932,6 +943,7 @@ function confirmRemove(fileId: string) {
</div> </div>
</div> </div>
</q-card> </q-card>
<q-card bordered class="row col-12 text-dark q-mt-sm"> <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="bg-grey-1 q-pa-sm col-12 row items-center text-primary">
<div class="q-pl-sm text-weight-bold text-dark"> <div class="q-pl-sm text-weight-bold text-dark">

View file

@ -15,6 +15,8 @@ export const useRetirementDataStore = defineStore("retirement", () => {
return "ส่งรายชื่อไปออกคำสั่ง"; return "ส่งรายชื่อไปออกคำสั่ง";
case "DONE": case "DONE":
return "ออกคำสั่งเสร็จแล้ว"; return "ออกคำสั่งเสร็จแล้ว";
case "CANCEL":
return "ยกเลิกการลาออก";
default: default:
return "-"; return "-";

View file

@ -366,7 +366,7 @@ onMounted(() => {
<template> <template>
<div class="row items-center"> <div class="row items-center">
<div class="toptitle text-dark row items-center q-py-xs"> <div class="toptitle text-dark row items-center q-py-xs">
รายการเลอนเงนเดอนขาราชการ รายการเลอนเงนเดอนขาราชการ
</div> </div>
<q-space /> <q-space />
<datepicker <datepicker

View file

@ -134,7 +134,7 @@ onMounted(() => {
<!-- Card อมลขาราชการฯ --> <!-- Card อมลขาราชการฯ -->
<q-card flat bordered style="border: 1px solid #d6dee1"> <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 class="col-12 text-weight-bold bg-grey-1 q-py-sm q-px-md">
อมลขาราชการ อมลขาราชการ
</div> </div>
<div class="col-12"><q-separator /></div> <div class="col-12"><q-separator /></div>
<div class="row q-pa-md q-col-gutter-md"> <div class="row q-pa-md q-col-gutter-md">

View file

@ -238,7 +238,7 @@ watch(
<template> <template>
<q-dialog v-model="modal" persistent> <q-dialog v-model="modal" persistent>
<q-card class="col-12" style="width: 60%"> <q-card class="col-12" style="width: 60%">
<Header :tittle="'เลือกข้าราชการฯ'" :close="closeDialog" /> <Header :tittle="'เลือกข้าราชการ ฯ'" :close="closeDialog" />
<q-separator /> <q-separator />
<q-card-section> <q-card-section>

View file

@ -33,6 +33,8 @@ const { showLoader, hideLoader, messageError, dialogMessageNotify } =
const node = ref<any>([]); const node = ref<any>([]);
const expanded = ref<string[]>([]); const expanded = ref<string[]>([]);
const expandedDialog = ref<string[]>([]);
const filter = ref<string>(""); const filter = ref<string>("");
const filterMain = ref<string>(""); const filterMain = ref<string>("");
const splitterModel = ref<number>(60); const splitterModel = ref<number>(60);
@ -553,7 +555,7 @@ onMounted(() => {
:nodes="node" :nodes="node"
node-key="orgTreeName" node-key="orgTreeName"
label-key="labelName" label-key="labelName"
v-model:expanded="expanded" v-model:expanded="expandedDialog"
:filter="filter" :filter="filter"
no-results-label="ไม่พบข้อมูลที่ค้นหา" no-results-label="ไม่พบข้อมูลที่ค้นหา"
no-nodes-label="ไม่มีข้อมูล" no-nodes-label="ไม่มีข้อมูล"

View file

@ -184,7 +184,7 @@ function onDownload() {
.get(config.API.developmentReportScholarship()) .get(config.API.developmentReportScholarship())
.then((res) => { .then((res) => {
const dataList = res.data.result; const dataList = res.data.result;
genReportXLSX(dataList, "รายการข้าราชการที่ได้รับทุนการศึกษา/ฝึกอบรม"); genReportXLSX(dataList, "รายการข้าราชการที่ได้รับทุนการศึกษา/ฝึกอบรม");
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); messageError($q, e);