ปรับ store ทดลองงาน, แก้คำผิด
This commit is contained in:
parent
989c439261
commit
5dd7290a0a
16 changed files with 3133 additions and 2251 deletions
|
|
@ -1,8 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, onMounted, watch } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/store";
|
||||
import { useAssignDataStore } from "@/modules/05_placement/storeAssign";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/storeProbation";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import http from "@/plugins/http";
|
||||
|
|
@ -28,8 +27,7 @@ const {
|
|||
} = mixin;
|
||||
const route = useRoute();
|
||||
const assignId = ref<string>(route.params.form.toString());
|
||||
const assignStore = useAssignDataStore();
|
||||
const { assign } = assignStore;
|
||||
const { assign } = probationStore;
|
||||
const personalId = ref<string>(route.params.personalId.toString());
|
||||
|
||||
const edit = () => {
|
||||
|
|
@ -55,51 +53,9 @@ const props = defineProps({
|
|||
action: String,
|
||||
});
|
||||
|
||||
const list2_1 = [
|
||||
{ id: "1", label: "ให้บริการประชาชนหรือผู้รับบริการด้วยอัธยาศัยดี" },
|
||||
{ id: "2", label: "มีความรับผิดชอบในการปฏิบัติบัติงาน" },
|
||||
{
|
||||
id: "3",
|
||||
label:
|
||||
"ให้บริการประชาชนหรือผู้รับบริการด้วยความรวดเร็ว เอาใจใส่เป็นมาตรฐานเดียวกัน",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
label: "ตั้งใจปฏิบัติบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร",
|
||||
},
|
||||
];
|
||||
const list2_2 = [
|
||||
{
|
||||
id: "1",
|
||||
label: "อุทิศตนและเสียสละเวลาในการปฏิบัติบัติงานอย่างเต็มกำลังความสามารถ",
|
||||
},
|
||||
{ id: "2", label: "มีจิตสำนึกที่ดี ปฏิบัติบัติงานด้วยความซื่อสัตย์ สุจริต" },
|
||||
{
|
||||
id: "3",
|
||||
label:
|
||||
"ยึดมั่นในสถาบันบัพระมหากษัตริย์ และไม่กระทำการใด ๆ อันจะก่อให้เกิดความเสียหายต่อประเทศชาติ",
|
||||
},
|
||||
];
|
||||
const list2_3 = [
|
||||
{ id: "1", label: "มีความรับรัผิดชอบในการรักษาเวลาทำงาน" },
|
||||
{
|
||||
id: "2",
|
||||
label: "แต่งกายในการปฏิบัติบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
label: "ไม่กระทำการใด ๆ อันอาจก่อให้เกิดความเสียหายแก่ชื่อเสียงของหน่วยงาน",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
label:
|
||||
"ไม่กระทำการใด ๆ อันเป็นการเสื่อมเกียรติและศักดิ์ศรีของความเป็นข้าราชการ",
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
label: "ปฏิบัติบัติหน้าที่อย่างตรงไปตรงมาโดยยึกหลักจรรยาบรรณวิชาชีพ",
|
||||
},
|
||||
];
|
||||
const list2_1 = probationStore.behavior_no1;
|
||||
const list2_2 = probationStore.behavior_no2;
|
||||
const list2_3 = probationStore.behavior_no3;
|
||||
|
||||
onMounted(async () => {
|
||||
if (props.tab && props.action == "edit") {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, defineAsyncComponent, onMounted, watch, computed } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/store";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/storeProbation";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import http from "@/plugins/http";
|
||||
|
|
@ -41,51 +41,10 @@ const props = defineProps({
|
|||
tab: String,
|
||||
});
|
||||
|
||||
const list2_1 = [
|
||||
{ id: "1", label: "ให้บริการประชาชนหรือผู้รับบริการด้วยอัธยาศัยดี" },
|
||||
{ id: "2", label: "มีความรับผิดชอบในการปฏิบัติบัติงาน" },
|
||||
{
|
||||
id: "3",
|
||||
label:
|
||||
"ให้บริการประชาชนหรือผู้รับบริการด้วยความรวดเร็ว เอาใจใส่เป็นมาตรฐานเดียวกัน",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
label: "ตั้งใจปฏิบัติบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร",
|
||||
},
|
||||
];
|
||||
const list2_2 = [
|
||||
{
|
||||
id: "1",
|
||||
label: "อุทิศตนและเสียสละเวลาในการปฏิบัติบัติงานอย่างเต็มกำลังความสามารถ",
|
||||
},
|
||||
{ id: "2", label: "มีจิตสำนึกที่ดี ปฏิบัติบัติงานด้วยความซื่อสัตย์ สุจริต" },
|
||||
{
|
||||
id: "3",
|
||||
label:
|
||||
"ยึดมั่นในสถาบันบัพระมหากษัตริย์ และไม่กระทำการใด ๆ อันจะก่อให้เกิดความเสียหายต่อประเทศชาติ",
|
||||
},
|
||||
];
|
||||
const list2_3 = [
|
||||
{ id: "1", label: "มีความรับรัผิดชอบในการรักษาเวลาทำงาน" },
|
||||
{
|
||||
id: "2",
|
||||
label: "แต่งกายในการปฏิบัติบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
label: "ไม่กระทำการใด ๆ อันอาจก่อให้เกิดความเสียหายแก่ชื่อเสียงของหน่วยงาน",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
label:
|
||||
"ไม่กระทำการใด ๆ อันเป็นการเสื่อมเกียรติและศักดิ์ศรีของความเป็นข้าราชการ",
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
label: "ปฏิบัติบัติหน้าที่อย่างตรงไปตรงมาโดยยึกหลักจรรยาบรรณวิชาชีพ",
|
||||
},
|
||||
];
|
||||
const list2_1 = probationStore.behavior_no1;
|
||||
const list2_2 = probationStore.behavior_no2;
|
||||
const list2_3 = probationStore.behavior_no3;
|
||||
|
||||
onMounted(async () => {
|
||||
fecthAssign(assignId.value);
|
||||
});
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,8 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, onMounted, watch } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/store";
|
||||
import { useAssignDataStore } from "@/modules/05_placement/storeAssign";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/storeProbation";
|
||||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
|
|
@ -17,8 +16,7 @@ const routeName = router.currentRoute.value.name;
|
|||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const probationStore = useProbationDataStore();
|
||||
const assignStore = useAssignDataStore();
|
||||
const { fecthAssignoutput, assign } = assignStore;
|
||||
const { fecthAssignoutput, assign } = probationStore;
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
|
|
@ -110,15 +108,15 @@ const fecthFormdata = async () => {
|
|||
});
|
||||
};
|
||||
const fectFormfull = async () => {
|
||||
Autherise.value = assignStore.director.name;
|
||||
list1_1.value = assignStore.assignOutput;
|
||||
evaluate_expenct_level.value = await assignStore.assignOutput.map(
|
||||
Autherise.value = probationStore.director.name;
|
||||
list1_1.value = probationStore.assignOutput;
|
||||
evaluate_expenct_level.value = await probationStore.assignOutput.map(
|
||||
(e: any) => ({
|
||||
id: e.id,
|
||||
labal: e.output_desc,
|
||||
})
|
||||
);
|
||||
evaluate_ouptut.value = await assignStore.assignOutput.map((e: any) => ({
|
||||
evaluate_ouptut.value = await probationStore.assignOutput.map((e: any) => ({
|
||||
id: e.id,
|
||||
}));
|
||||
checkArray.value = list1_1.value.length;
|
||||
|
|
@ -199,51 +197,11 @@ const list1_2 = [
|
|||
{ id: "", label: "" },
|
||||
{ id: "", label: "" },
|
||||
];
|
||||
const list2_1 = [
|
||||
{ id: "1", label: "ให้บริการประชาชนหรือผู้รับบริการด้วยอัธยาศัยดี" },
|
||||
{ id: "2", label: "มีความรับผิดชอบในการปฏิบัติบัติงาน" },
|
||||
{
|
||||
id: "3",
|
||||
label:
|
||||
"ให้บริการประชาชนหรือผู้รับบริการด้วยความรวดเร็ว เอาใจใส่เป็นมาตรฐานเดียวกัน",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
label: "ตั้งใจปฏิบัติบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร",
|
||||
},
|
||||
];
|
||||
const list2_2 = [
|
||||
{
|
||||
id: "1",
|
||||
label: "อุทิศตนและเสียสละเวลาในการปฏิบัติบัติงานอย่างเต็มกำลังความสามารถ",
|
||||
},
|
||||
{ id: "2", label: "มีจิตสำนึกที่ดี ปฏิบัติบัติงานด้วยความซื่อสัตย์ สุจริต" },
|
||||
{
|
||||
id: "3",
|
||||
label:
|
||||
"ยึดมั่นในสถาบันบัพระมหากษัตริย์ และไม่กระทำการใด ๆ อันจะก่อให้เกิดความเสียหายต่อประเทศชาติ",
|
||||
},
|
||||
];
|
||||
const list2_3 = [
|
||||
{ id: "1", label: "มีความรับรัผิดชอบในการรักษาเวลาทำงาน" },
|
||||
{
|
||||
id: "2",
|
||||
label: "แต่งกายในการปฏิบัติบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
label: "ไม่กระทำการใด ๆ อันอาจก่อให้เกิดความเสียหายแก่ชื่อเสียงของหน่วยงาน",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
label:
|
||||
"ไม่กระทำการใด ๆ อันเป็นการเสื่อมเกียรติและศักดิ์ศรีของความเป็นข้าราชการ",
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
label: "ปฏิบัติบัติหน้าที่อย่างตรงไปตรงมาโดยยึกหลักจรรยาบรรณวิชาชีพ",
|
||||
},
|
||||
];
|
||||
|
||||
const list2_1 = probationStore.behavior_no1;
|
||||
const list2_2 = probationStore.behavior_no2;
|
||||
const list2_3 = probationStore.behavior_no3;
|
||||
|
||||
const option = ref<any>([]);
|
||||
|
||||
// part 1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, onMounted, watch, computed } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/store";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/storeProbation";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
// import { formatDate } from "@fullcalendar/core";
|
||||
|
||||
|
|
@ -84,51 +84,11 @@ const list1_1 = ref<any>([
|
|||
// { id: "5", label: "ผลผลิตของงานที่คาดหวัง 5" },
|
||||
]);
|
||||
const list1_2 = [{ id: "", label: "" }];
|
||||
const list2_1 = [
|
||||
{ id: "1", label: "ให้บริการประชาชนหรือผู้รับบริการด้วยอัธยาศัยดี" },
|
||||
{ id: "2", label: "มีความรับผิดชอบในการปฏิบัติบัติงาน" },
|
||||
{
|
||||
id: "3",
|
||||
label:
|
||||
"ให้บริการประชาชนหรือผู้รับบริการด้วยความรวดเร็ว เอาใจใส่เป็นมาตรฐานเดียวกัน",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
label: "ตั้งใจปฏิบัติบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร",
|
||||
},
|
||||
];
|
||||
const list2_2 = [
|
||||
{
|
||||
id: "1",
|
||||
label: "อุทิศตนและเสียสละเวลาในการปฏิบัติบัติงานอย่างเต็มกำลังความสามารถ",
|
||||
},
|
||||
{ id: "2", label: "มีจิตสำนึกที่ดี ปฏิบัติบัติงานด้วยความซื่อสัตย์ สุจริต" },
|
||||
{
|
||||
id: "3",
|
||||
label:
|
||||
"ยึดมั่นในสถาบันบัพระมหากษัตริย์ และไม่กระทำการใด ๆ อันจะก่อให้เกิดความเสียหายต่อประเทศชาติ",
|
||||
},
|
||||
];
|
||||
const list2_3 = [
|
||||
{ id: "1", label: "มีความรับรัผิดชอบในการรักษาเวลาทำงาน" },
|
||||
{
|
||||
id: "2",
|
||||
label: "แต่งกายในการปฏิบัติบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
label: "ไม่กระทำการใด ๆ อันอาจก่อให้เกิดความเสียหายแก่ชื่อเสียงของหน่วยงาน",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
label:
|
||||
"ไม่กระทำการใด ๆ อันเป็นการเสื่อมเกียรติและศักดิ์ศรีของความเป็นข้าราชการ",
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
label: "ปฏิบัติบัติหน้าที่อย่างตรงไปตรงมาโดยยึกหลักจรรยาบรรณวิชาชีพ",
|
||||
},
|
||||
];
|
||||
|
||||
const list2_1 = probationStore.behavior_no1;
|
||||
const list2_2 = probationStore.behavior_no2;
|
||||
const list2_3 = probationStore.behavior_no3;
|
||||
|
||||
const option = ref<any>([]);
|
||||
|
||||
const dateToday = ref<Date>(new Date("10-10-2023"));
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { ref, defineAsyncComponent, watch, onMounted, onUpdated } from "vue";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { useAssignDataStore } from "@/modules/05_placement/storeAssign";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/storeProbation";
|
||||
const Header = defineAsyncComponent(
|
||||
() =>
|
||||
import(
|
||||
|
|
@ -22,8 +22,8 @@ import config from "@/app.config";
|
|||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const $q = useQuasar();
|
||||
const assignStore = useAssignDataStore();
|
||||
const { fecthdataAssign } = assignStore;
|
||||
const probationStore = useProbationDataStore();
|
||||
const { fecthdataAssign } = probationStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, hideLoader, messageError } = mixin;
|
||||
const assignId = ref<string>(route.params.form.toString());
|
||||
|
|
@ -65,7 +65,7 @@ const downloadFile = (response: any, filename: string) => {
|
|||
document.body.removeChild(link);
|
||||
};
|
||||
const FileDownload = async (type: string) => {
|
||||
let numTab = assignStore.evaluate.find(
|
||||
let numTab = probationStore.evaluate.find(
|
||||
(e: any) => e.no === dataArrayNumber.value
|
||||
);
|
||||
//ผู้ดูเเล
|
||||
|
|
@ -91,7 +91,7 @@ const FileDownload = async (type: string) => {
|
|||
//ผุ้บังคับ
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.reportEvaluateRecord2(type, numTab.id), {
|
||||
.get(config.API.reportEvaluateRecord1(type, numTab.id), {
|
||||
responseType: "blob",
|
||||
})
|
||||
.then(async (res) => {
|
||||
|
|
@ -117,10 +117,10 @@ const addData = () => {
|
|||
|
||||
<template>
|
||||
<Header
|
||||
v-if="assignStore.tabs.length > 0"
|
||||
v-if="probationStore.tabs.length > 0"
|
||||
:change-tab="changeTab"
|
||||
:add-data="addData"
|
||||
:loop="assignStore.tabs.length"
|
||||
:loop="probationStore.tabs.length"
|
||||
:FileDownload="FileDownload"
|
||||
/>
|
||||
<q-tab-panels
|
||||
|
|
@ -130,17 +130,17 @@ const addData = () => {
|
|||
vertical
|
||||
transition-prev="jump-up"
|
||||
transition-next="jump-up"
|
||||
v-if="assignStore.tabs.length > 0"
|
||||
v-if="probationStore.tabs.length > 0"
|
||||
class="mt"
|
||||
>
|
||||
<q-tab-panel
|
||||
v-for="item in assignStore.evaluate"
|
||||
v-for="item in probationStore.evaluate"
|
||||
:name="`save${item.no}`"
|
||||
:key="item.no"
|
||||
>
|
||||
<FormSaveResult
|
||||
:tab="tab"
|
||||
:data="assignStore.evaluate.find((x: any) => x.no === dataArrayNumber)"
|
||||
:data="probationStore.evaluate.find((x: any) => x.no === dataArrayNumber)"
|
||||
action="edit"
|
||||
/>
|
||||
</q-tab-panel>
|
||||
|
|
@ -148,13 +148,13 @@ const addData = () => {
|
|||
<!-- <q-page-container>
|
||||
<FormSaveResult
|
||||
:tab="tab"
|
||||
:data="assignStore.evaluate.find((x: any) => x.no === dataArrayNumber)"
|
||||
:data="probationStore.evaluate.find((x: any) => x.no === dataArrayNumber)"
|
||||
action="edit"
|
||||
/>
|
||||
</q-page-container> -->
|
||||
</q-tab-panels>
|
||||
|
||||
<div class="q-gutter-md" v-else-if="assignStore.tabs.length == 0">
|
||||
<div class="q-gutter-md" v-else-if="probationStore.tabs.length == 0">
|
||||
<div class="flex justify-center items-center q-my-md q-gutter-md">
|
||||
<q-btn
|
||||
outline
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import config from "@/app.config";
|
|||
import { useQuasar } from "quasar";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useAssignDataStore } from "@/modules/05_placement/storeAssign";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/storeProbation";
|
||||
|
||||
const Header = defineAsyncComponent(
|
||||
() =>
|
||||
|
|
@ -25,8 +25,8 @@ const route = useRoute();
|
|||
const mixin = useCounterMixin();
|
||||
const $q = useQuasar();
|
||||
const { showLoader, hideLoader, messageError } = mixin;
|
||||
const assignStore = useAssignDataStore();
|
||||
const { fecthdataAssign } = assignStore;
|
||||
const probationStore = useProbationDataStore();
|
||||
// const { fecthdataAssign } = probationStore;
|
||||
const assignId = ref<string>(route.params.form.toString());
|
||||
const personalId = ref<string>(route.params.personalId.toString());
|
||||
const fullname = ref<string>("");
|
||||
|
|
@ -49,8 +49,8 @@ const fecthAssign = async (id: string) => {
|
|||
await http
|
||||
.get(config.API.createformCommader(id))
|
||||
.then(async (res: any) => {
|
||||
await fecthdataAssign(res.data.data);
|
||||
evaluate.value = assignStore.evaluate;
|
||||
// await fecthdataAssign(res.data.data);
|
||||
evaluate.value = probationStore.evaluate;
|
||||
tabs.value = evaluate.value;
|
||||
fullname.value = res.data.data.experimentee ? res.data.data.experimentee.name : "";
|
||||
dataArrayNumber.value = 1;
|
||||
|
|
@ -119,13 +119,13 @@ const addData = () => {
|
|||
class="mt"
|
||||
>
|
||||
<q-tab-panel
|
||||
v-for="item in assignStore.evaluate"
|
||||
v-for="item in probationStore.evaluate"
|
||||
:name="`save${item.no}`"
|
||||
:key="item.no"
|
||||
>
|
||||
<FormEvaluate
|
||||
:tab="tab"
|
||||
:data="assignStore.evaluate.find((x: any) => x.no === dataArrayNumber)"
|
||||
:data="probationStore.evaluate.find((x: any) => x.no === dataArrayNumber)"
|
||||
action="edit"
|
||||
/>
|
||||
</q-tab-panel>
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import config from "@/app.config";
|
|||
import { useQuasar } from "quasar";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useAssignDataStore } from "@/modules/05_placement/storeAssign";
|
||||
const assignStore = useAssignDataStore();
|
||||
const { fecthdataAssign } = assignStore;
|
||||
import { useProbationDataStore } from "@/modules/05_placement/storeProbation";
|
||||
const probationStore = useProbationDataStore();
|
||||
// const { fecthdataAssign } = probationStore;
|
||||
|
||||
const Header = defineAsyncComponent(
|
||||
() =>
|
||||
|
|
@ -45,8 +45,8 @@ const fecthAssign = async (id: string) => {
|
|||
await http
|
||||
.get(config.API.createformChairman(id))
|
||||
.then(async (res: any) => {
|
||||
await fecthdataAssign(res.data.data);
|
||||
evaluate.value = assignStore.evaluate;
|
||||
// await fecthdataAssign(res.data.data);
|
||||
evaluate.value = probationStore.evaluate;
|
||||
fullname.value = res.data.data.experimentee ? res.data.data.experimentee.name : "";
|
||||
tabs.value = evaluate.value;
|
||||
dataArrayNumber.value = 1;
|
||||
|
|
@ -119,7 +119,7 @@ const changeTab = (tabVal: string) => {
|
|||
v-if="tabs.length > 0"
|
||||
class="mt"
|
||||
><q-tab-panel
|
||||
v-for="item in assignStore.evaluate"
|
||||
v-for="item in probationStore.evaluate"
|
||||
:name="`save${item.no}`"
|
||||
:key="item.no"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<script setup lang="ts">
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { ref, defineAsyncComponent, onMounted } from "vue";
|
||||
import { useAssignDataStore } from "@/modules/05_placement/storeAssign";
|
||||
const DataStore = useAssignDataStore();
|
||||
import { useProbationDataStore } from "@/modules/05_placement/storeProbation";
|
||||
const DataStore = useProbationDataStore();
|
||||
|
||||
const ProbationFormAssign = defineAsyncComponent(
|
||||
() => import("@/modules/05_placement/components/probation/FormAssign.vue")
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { useRouter, useRoute } from "vue-router";
|
|||
import { ref, useAttrs, onMounted } from "vue";
|
||||
import type { QTableProps } from "quasar";
|
||||
import type { FormProbationDetail } from "@/modules/05_placement/interface/request/Main";
|
||||
import type { FormProbationPersonal } from "@/modules/05_placement/interface/request/Main";
|
||||
// import type { FormProbationPersonal } from "@/modules/05_placement/interface/request/Main";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { date, useQuasar } from "quasar";
|
||||
import http from "@/plugins/http";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { ref, onMounted, watch } from "vue";
|
|||
import { QForm, useQuasar } from "quasar";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/store";
|
||||
import { useProbationDataStore } from "@/modules/05_placement/storeProbation";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import criterion from "@/modules/05_placement/components/Other/Criterion.vue"
|
||||
|
|
|
|||
|
|
@ -286,29 +286,7 @@ export const useOrderPlacementDataStore = defineStore("placementOrder", () => {
|
|||
DataMainOrder,
|
||||
};
|
||||
});
|
||||
export const useProbationDataStore = defineStore("probationDataStore", () => {
|
||||
const ratingColors = ref<string[]>([
|
||||
"light-blue-3",
|
||||
"light-blue-6",
|
||||
"blue",
|
||||
"blue-9",
|
||||
"blue-10",
|
||||
]);
|
||||
const orderId = ref<string>("");
|
||||
|
||||
const stepOrder = ref<number>(2);
|
||||
|
||||
const setOrderId = (val: string) => (orderId.value = val);
|
||||
const setStepOrder = (val: number) => (stepOrder.value = val);
|
||||
|
||||
return {
|
||||
ratingColors,
|
||||
orderId,
|
||||
stepOrder,
|
||||
setOrderId,
|
||||
setStepOrder,
|
||||
};
|
||||
});
|
||||
export const useTransferDataStore = defineStore("transferDataStore", () => {
|
||||
const statusText = (val: string) => {
|
||||
switch (val) {
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref } from "vue";
|
||||
|
||||
export const useAssignDataStore = defineStore("assign", () => {
|
||||
const assign = ref<any>([])
|
||||
const evaluate = ref<any>([])
|
||||
const tabs = ref<any>([]);
|
||||
const mainTab = ref<string>('tab1')
|
||||
|
||||
|
||||
const assignOutput = ref<any>([])
|
||||
const director = ref<any>([])
|
||||
|
||||
const fecthdataAssign = async (data: any) => {
|
||||
assign.value = await data.assign
|
||||
evaluate.value = await data.evaluate
|
||||
tabs.value = await data.evaluate
|
||||
}
|
||||
const fecthAssignoutput = (data: any) => {
|
||||
assignOutput.value = data.assign_output
|
||||
director.value = data.director
|
||||
|
||||
|
||||
}
|
||||
return {
|
||||
fecthdataAssign,
|
||||
fecthAssignoutput,
|
||||
assign,
|
||||
evaluate,
|
||||
tabs,
|
||||
assignOutput,
|
||||
director,
|
||||
mainTab,
|
||||
};
|
||||
});
|
||||
101
src/modules/05_placement/storeProbation.ts
Normal file
101
src/modules/05_placement/storeProbation.ts
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref } from "vue";
|
||||
|
||||
export const useProbationDataStore = defineStore("probationStore", () => {
|
||||
const assign = ref<any>([])
|
||||
const evaluate = ref<any>([])
|
||||
const tabs = ref<any>([]);
|
||||
const mainTab = ref<string>('tab1')
|
||||
|
||||
const assignOutput = ref<any>([])
|
||||
const director = ref<any>([])
|
||||
|
||||
const fecthdataAssign = async (data: any) => {
|
||||
assign.value = await data.assign
|
||||
evaluate.value = await data.evaluate
|
||||
tabs.value = await data.evaluate
|
||||
}
|
||||
const fecthAssignoutput = (data: any) => {
|
||||
assignOutput.value = data.assign_output
|
||||
director.value = data.director
|
||||
}
|
||||
|
||||
const ratingColors = ref<string[]>([
|
||||
"light-blue-3",
|
||||
"light-blue-6",
|
||||
"blue",
|
||||
"blue-9",
|
||||
"blue-10",
|
||||
]);
|
||||
const orderId = ref<string>("");
|
||||
|
||||
const stepOrder = ref<number>(2);
|
||||
|
||||
const setOrderId = (val: string) => (orderId.value = val);
|
||||
const setStepOrder = (val: number) => (stepOrder.value = val);
|
||||
|
||||
const behavior_no1 = [
|
||||
{ id: "1", label: "ให้บริการประชาชนหรือผู้รับบริการด้วยอัธยาศัยดี" },
|
||||
{ id: "2", label: "มีความรับผิดชอบในการปฏิบัติบัติงาน" },
|
||||
{
|
||||
id: "3",
|
||||
label:
|
||||
"ให้บริการประชาชนหรือผู้รับบริการด้วยความรวดเร็ว เอาใจใส่เป็นมาตรฐานเดียวกัน",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
label: "ตั้งใจปฏิบัติบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร",
|
||||
},
|
||||
];
|
||||
const behavior_no2 = [
|
||||
{
|
||||
id: "1",
|
||||
label: "อุทิศตนและเสียสละเวลาในการปฏิบัติบัติงานอย่างเต็มกำลังความสามารถ",
|
||||
},
|
||||
{ id: "2", label: "มีจิตสำนึกที่ดี ปฏิบัติบัติงานด้วยความซื่อสัตย์ สุจริต" },
|
||||
{
|
||||
id: "3",
|
||||
label:
|
||||
"ยึดมั่นในสถาบันบัพระมหากษัตริย์ และไม่กระทำการใด ๆ อันจะก่อให้เกิดความเสียหายต่อประเทศชาติ",
|
||||
},
|
||||
];
|
||||
const behavior_no3 = [
|
||||
{ id: "1", label: "มีความรับรัผิดชอบในการรักษาเวลาทำงาน" },
|
||||
{
|
||||
id: "2",
|
||||
label: "แต่งกายในการปฏิบัติบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
label: "ไม่กระทำการใด ๆ อันอาจก่อให้เกิดความเสียหายแก่ชื่อเสียงของหน่วยงาน",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
label:
|
||||
"ไม่กระทำการใด ๆ อันเป็นการเสื่อมเกียรติและศักดิ์ศรีของความเป็นข้าราชการ",
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
label: "ปฏิบัติบัติหน้าที่อย่างตรงไปตรงมาโดยยึดหลักจรรยาบรรณวิชาชีพ",
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
fecthdataAssign,
|
||||
fecthAssignoutput,
|
||||
assign,
|
||||
evaluate,
|
||||
tabs,
|
||||
assignOutput,
|
||||
director,
|
||||
mainTab,
|
||||
ratingColors,
|
||||
orderId,
|
||||
stepOrder,
|
||||
setOrderId,
|
||||
setStepOrder,
|
||||
behavior_no1,
|
||||
behavior_no2,
|
||||
behavior_no3
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue