diff --git a/src/api/00_dashboard/api.message.ts b/src/api/00_dashboard/api.message.ts index 75902df05..e25ce5aff 100644 --- a/src/api/00_dashboard/api.message.ts +++ b/src/api/00_dashboard/api.message.ts @@ -8,4 +8,5 @@ const message = `${env.API_PLACEMENT_URI}/message`; export default { msgNotificate: `${message}/my-notifications`, msgInbox: `${message}/my-inboxes`, + msgId: (id: string) => `${message}/my-notifications/${id}`, }; diff --git a/src/modules/05_placement/components/probation/FormAssign.vue b/src/modules/05_placement/components/probation/FormAssign.vue index e4d34a3e9..0e6ca7a64 100644 --- a/src/modules/05_placement/components/probation/FormAssign.vue +++ b/src/modules/05_placement/components/probation/FormAssign.vue @@ -940,7 +940,7 @@ console.log(countCheckedItems); option-value="value" :outlined="status == true" v-model="monthSelect" - :label="`ระยะเวลากี่เดือน`" + :label="`ระยะเวลา (เดือน)`" />
diff --git a/src/modules/05_placement/components/probation/SummaryScore.vue b/src/modules/05_placement/components/probation/SummaryScore.vue index 3d43bd123..ea23c6195 100644 --- a/src/modules/05_placement/components/probation/SummaryScore.vue +++ b/src/modules/05_placement/components/probation/SummaryScore.vue @@ -56,8 +56,9 @@ const pass_result = ref(); const evaluate_date = ref(); const result = ref(); const result_option = ref([ - { name: "ผ่าน (สูงกว่าร้อยละ 60)", value: 1 }, - { name: "ไม่ผ่าน (ต่ำกว่าร้อยละ 60)", value: 0 }, + { name: "ไม่ต่ำกว่ามาตรฐานที่กำหนด เห็นควรให้รับราชการต่อ", value: 1 }, + { name: "ต่ำกว่ามาตรฐานที่กำหนด เห็นควรให้ออกจากราชการ", value: 2 }, + { name: "เห็นควรให้ขยายระยะเวลาทดลองปฏิบัติหน้าที่ราชการต่อไปอีก", value: 3 }, ]); const note = ref(""); diff --git a/src/modules/05_placement/components/probation/SummarySurvey.vue b/src/modules/05_placement/components/probation/SummarySurvey.vue index c541779f0..a8e9e6763 100644 --- a/src/modules/05_placement/components/probation/SummarySurvey.vue +++ b/src/modules/05_placement/components/probation/SummarySurvey.vue @@ -83,7 +83,7 @@ const save = async () => { .catch((e: any) => { messageError($q, e); }) - .finally(()=>{ + .finally(() => { getSurveyData() }) }); @@ -100,91 +100,64 @@ watch(answer3, () => { @@ -208,6 +181,7 @@ watch(answer3, () => { .q-card { box-shadow: 0px 0px 0px 0px !important; } + .border_custom { border: 2px solid #c10015; border-radius: 5px; diff --git a/src/modules/07_insignia/storeBrrow.ts b/src/modules/07_insignia/storeBrrow.ts index 0e2588c01..5b7b56d24 100644 --- a/src/modules/07_insignia/storeBrrow.ts +++ b/src/modules/07_insignia/storeBrrow.ts @@ -58,6 +58,8 @@ export const useBrrowDataStore = defineStore("insigniaBrrow", () => { })); rows.value = list listInsignia.value = list + console.log(listInsignia.value); + searchDatatable(insignia.value, employeeClass.value) } const searchDatatable = (type: string, employeeClass: string) => { @@ -70,7 +72,10 @@ export const useBrrowDataStore = defineStore("insigniaBrrow", () => { } else if (type == '' && employeeClass !== "all") { rows.value = listInsignia.value.filter((e: any) => e.profileType == employeeClass ) + } else if (type === '' && employeeClass === "all") { + rows.value = listInsignia.value } + } const status = (val: string) => { diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index b0f11fb8f..b874856d6 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -39,6 +39,7 @@ const { const DataStore = useroleUserDataStore(); const { fetchroleUser } = DataStore; +const id = ref(""); const $q = useQuasar(); const { tabData, loader } = storeToRefs(store); const { changeTab } = store; @@ -405,19 +406,20 @@ if (keycloak.tokenParsed != null) { } const deleteData = async (id: string) => { - await http; - // .delete(config.API.copyOrderId(id)) - // .then((res) => { - // // const data = res.data.result; - // // console.log(res); - // success($q, "ลบข้อมูลสำเร็จ"); - // }) - // .catch((e) => { - // messageError($q, e); - // }) - // .finally(async () => { - // // hideLoader(); - // }); + console.log("delete=", id); + showLoader(); + await http + .delete(config.API.msgId(id)) + .then((res) => { + success($q, "ลบข้อมูลสำเร็จ"); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(async () => { + getDataNotification(); + hideLoader(); + }); }; const clickDelete = (id: string) => { @@ -509,7 +511,7 @@ const clickDelete = (id: string) => { dense icon="mdi-close" class="mybtn q-mx-xs" - @click="clickDelete" + @click="clickDelete(n.id)" >