@@ -2001,7 +2001,7 @@ onMounted(async () => {
3
- การพัฒนาผู้ทดลองปฏิบัติบัติหน้าที่ราชการ
+ การพัฒนาผู้ทดลองปฏิบัติหน้าที่ราชการ
diff --git a/src/modules/11_probation/store/probation.ts b/src/modules/11_probation/store/probation.ts
index 2f46d37..56ec9d4 100644
--- a/src/modules/11_probation/store/probation.ts
+++ b/src/modules/11_probation/store/probation.ts
@@ -16,7 +16,7 @@ export const useProbationStore = defineStore("probationStore", () => {
const behavior_no1 = [
{ id: "1", label: "ให้บริการประชาชนหรือผู้รับบริการด้วยอัธยาศัยดี" },
- { id: "2", label: "มีความรับผิดชอบในการปฏิบัติบัติงาน" },
+ { id: "2", label: "มีความรับผิดชอบในการปฏิบัติงาน" },
{
id: "3",
label:
@@ -24,17 +24,17 @@ export const useProbationStore = defineStore("probationStore", () => {
},
{
id: "4",
- label: "ตั้งใจปฏิบัติบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร",
+ label: "ตั้งใจปฏิบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร",
},
];
const behavior_no2 = [
{
id: "1",
- label: "อุทิศตนและเสียสละเวลาในการปฏิบัติบัติงานอย่างเต็มกำลังความสามารถ",
+ label: "อุทิศตนและเสียสละเวลาในการปฏิบัติงานอย่างเต็มกำลังความสามารถ",
},
{
id: "2",
- label: "มีจิตสำนึกที่ดี ปฏิบัติบัติงานด้วยความซื่อสัตย์ สุจริต",
+ label: "มีจิตสำนึกที่ดี ปฏิบัติงานด้วยความซื่อสัตย์ สุจริต",
},
{
id: "3",
@@ -43,10 +43,10 @@ export const useProbationStore = defineStore("probationStore", () => {
},
];
const behavior_no3 = [
- { id: "1", label: "มีความรับรัผิดชอบในการรักษาเวลาทำงาน" },
+ { id: "1", label: "มีความรับผิดชอบในการรักษาเวลาทำงาน" },
{
id: "2",
- label: "แต่งกายในการปฏิบัติบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ",
+ label: "แต่งกายในการปฏิบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ",
},
{
id: "3",
@@ -60,7 +60,7 @@ export const useProbationStore = defineStore("probationStore", () => {
},
{
id: "5",
- label: "ปฏิบัติบัติหน้าที่อย่างตรงไปตรงมาโดยยึดหลักจรรยาบรรณวิชาชีพ",
+ label: "ปฏิบัติหน้าที่อย่างตรงไปตรงมาโดยยึดหลักจรรยาบรรณวิชาชีพ",
},
];
const ratingColors = ref
([
diff --git a/src/modules/11_probation/views/mainDetail.vue b/src/modules/11_probation/views/mainDetail.vue
index b61ecee..d2d15fc 100644
--- a/src/modules/11_probation/views/mainDetail.vue
+++ b/src/modules/11_probation/views/mainDetail.vue
@@ -148,7 +148,7 @@ function getList(id: string) {
http
.get(config.API.probationMain(id))
.then((res) => {
- const data = res.data.data;
+ const data = res.data.result;
rows.value = data;
rowsData.value = data;
})
diff --git a/src/modules/15_probationReport/components/01_SurveyPage.vue b/src/modules/15_probationReport/components/01_SurveyPage.vue
index f623bcc..6a06c7a 100644
--- a/src/modules/15_probationReport/components/01_SurveyPage.vue
+++ b/src/modules/15_probationReport/components/01_SurveyPage.vue
@@ -29,6 +29,7 @@ const { messageError, success, dialogConfirm, showLoader, hideLoader } = mixin;
const route = useRoute();
const assignId = ref("baa3d9f6-9d21-4c58-85f2-114abf8de25c");
+const isData = defineModel("isData", { required: true });
const status = ref(true);
const answer1 = ref("");
@@ -39,11 +40,13 @@ const classBordered = ref("");
/** ดึง ข้อมูลแบบสำรวจ */
async function getSurveyData() {
+ isData.value = true;
showLoader();
await http
.get(config.API.summaryDetail())
.then(async (res: any) => {
const data = await res.data.result.data;
+ isData.value = true;
assignId.value = res.data.result.assignId;
store.assignId = res.data.result.assignId;
if (data !== null) {
@@ -55,7 +58,8 @@ async function getSurveyData() {
hideLoader();
})
.catch((e) => {
- messageError($q, e);
+ // messageError($q, e);
+ isData.value = false;
hideLoader();
});
}
diff --git a/src/modules/15_probationReport/components/02_ResultPage.vue b/src/modules/15_probationReport/components/02_ResultPage.vue
index 553f2c5..c3d12be 100644
--- a/src/modules/15_probationReport/components/02_ResultPage.vue
+++ b/src/modules/15_probationReport/components/02_ResultPage.vue
@@ -229,7 +229,7 @@ onMounted(async () => {
2
- การพัฒนาผู้ทดลองปฏิบัติบัติหน้าที่ราชการ
+ การพัฒนาผู้ทดลองปฏิบัติหน้าที่ราชการ
+import { onMounted, ref } from "vue";
+
import { useRouter } from "vue-router";
+import http from "@/plugins/http";
+import config from "@/app.config";
import { useProbationReport } from "@/modules/15_probationReport/store";
@@ -8,6 +12,8 @@ import ResultPage from "@/modules/15_probationReport/components/02_ResultPage.vu
const store = useProbationReport();
const router = useRouter();
+
+const isData = ref(true);
@@ -25,8 +31,19 @@ const router = useRouter();
/>
ผลการทดลองปฏิบัติหน้าที่ราชการและแบบสำรวจความคิดเห็น
+
-
+
+
+ ไม่พบผลการประเมินการทดลองปฏิบัติหน้าที่ราชการนี้
+
+
+
-
-
-
+
+
+
+
+
diff --git a/src/stores/mixin.ts b/src/stores/mixin.ts
index dcc87b0..84e1479 100644
--- a/src/stores/mixin.ts
+++ b/src/stores/mixin.ts
@@ -1031,28 +1031,28 @@ export const useCounterMixin = defineStore("mixin", () => {
if (obj) {
let name =
obj.child4 != null && obj.child3 != null
- ? obj.child4 + "/"
+ ? obj.child4 + " "
: obj.child4 != null
? obj.child4
: "";
name +=
obj.child3 != null && obj.child2 != null
- ? obj.child3 + "/"
+ ? obj.child3 + " "
: obj.child3 !== null
? obj.child3
: "";
name +=
obj.child2 != null && obj.child1 != null
- ? obj.child2 + "/"
+ ? obj.child2 + " "
: obj.child2 != null
? obj.child2
: "";
name +=
obj.child1 != null && obj.root != null
- ? obj.child1 + "/"
+ ? obj.child1 + " "
: obj.child1 != null
? obj.child1
: "";
@@ -1106,28 +1106,28 @@ export const useCounterMixin = defineStore("mixin", () => {
if (obj) {
let name =
obj.child4Old != null && obj.child3Old != null
- ? obj.child4Old + "/"
+ ? obj.child4Old + " "
: obj.child4Old != null
? obj.child4Old
: "";
name +=
obj.child3Old != null && obj.child2Old != null
- ? obj.child3Old + "/"
+ ? obj.child3Old + " "
: obj.child3Old !== null
? obj.child3Old
: "";
name +=
obj.child2Old != null && obj.child1Old != null
- ? obj.child2Old + "/"
+ ? obj.child2Old + " "
: obj.child2Old != null
? obj.child2Old
: "";
name +=
obj.child1Old != null && obj.rootOld != null
- ? obj.child1Old + "/"
+ ? obj.child1Old + " "
: obj.child1Old != null
? obj.child1Old
: "";
@@ -1136,8 +1136,6 @@ export const useCounterMixin = defineStore("mixin", () => {
} else {
return "";
}
-
-
}
function onSearchDataTable(keyword: string, data: any[], columns: any[]) {
@@ -1198,6 +1196,6 @@ export const useCounterMixin = defineStore("mixin", () => {
findPosMasterNoOld,
findOrgNameOld,
findPosMasterNo,
- onSearchDataTable
+ onSearchDataTable,
};
});
diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue
index d32c6ec..c478c0c 100644
--- a/src/views/MainLayout.vue
+++ b/src/views/MainLayout.vue
@@ -236,13 +236,7 @@ function onInfo() {
// landing page redirect
const landingPageUrl = ref(getLandingUrl());
function getLandingUrl() {
- if (window.location.hostname === "bmasso.bma.go.th") {
- return `${configParam.landingPageUrl}/landing?mode=dev`;
- } else if (window.location.hostname === "bma-ehr-user.frappet.com") {
- return `${configParam.landingPageUrl}/landing?mode=prod`;
- } else {
- return `${configParam.landingPageUrl}/landing?mode=dev`;
- }
+ return `${configParam.landingPageUrl}/landing`;
}