From eaead1fade5f7f9754d9b11bc6f74879cb237e26 Mon Sep 17 00:00:00 2001 From: AnandaTon <125332905+anandaAiemvong@users.noreply.github.com> Date: Mon, 10 Jul 2023 16:54:55 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20ui=20form=20probation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/probation/form.vue | 648 ++++++++++++++++++ src/modules/05_placement/router.ts | 12 + 2 files changed, 660 insertions(+) create mode 100644 src/modules/05_placement/components/probation/form.vue diff --git a/src/modules/05_placement/components/probation/form.vue b/src/modules/05_placement/components/probation/form.vue new file mode 100644 index 000000000..ebec3acf1 --- /dev/null +++ b/src/modules/05_placement/components/probation/form.vue @@ -0,0 +1,648 @@ + + + + + diff --git a/src/modules/05_placement/router.ts b/src/modules/05_placement/router.ts index 133d0d1fa..afcba9e5d 100644 --- a/src/modules/05_placement/router.ts +++ b/src/modules/05_placement/router.ts @@ -25,6 +25,8 @@ const mainProbation = () => const probationDetail = () => import("@/modules/05_placement/components/probation/ProbationDetail.vue"); +const probationForm = () => + import("@/modules/05_placement/components/probation/form.vue"); export default [ { path: "/placement", @@ -106,4 +108,14 @@ export default [ Role: "placement", }, }, + { + path: "/probation/form", + name: "probationForm", + component: probationForm, + meta: { + Auth: true, + Key: [6.3], + Role: "placement", + }, + }, ]; From 83923d71f3a5ccc1ce09539d704a42462a16d684 Mon Sep 17 00:00:00 2001 From: AnandaTon <125332905+anandaAiemvong@users.noreply.github.com> Date: Mon, 10 Jul 2023 17:27:17 +0700 Subject: [PATCH 2/2] Update form.vue --- .../components/probation/form.vue | 189 +++++++++++------- 1 file changed, 113 insertions(+), 76 deletions(-) diff --git a/src/modules/05_placement/components/probation/form.vue b/src/modules/05_placement/components/probation/form.vue index ebec3acf1..32d670268 100644 --- a/src/modules/05_placement/components/probation/form.vue +++ b/src/modules/05_placement/components/probation/form.vue @@ -139,12 +139,29 @@ no-dimming />
- +
+
+
+ +
+
@@ -358,28 +375,30 @@ no-dimming />
- - - -
- + +
+
+
+ +
+
@@ -485,51 +504,53 @@
{{ "เลือกผู้บังคับคับัญชา" }}
- -
- - - - - +
+ +
+ + + + + +
@@ -545,13 +566,15 @@ import { useCounterMixin } from "@/stores/mixin"; import { useDataStore } from "@/stores/data"; import { useRoute } from "vue-router"; import { useQuasar } from "quasar"; +import router from "@/router"; const $q = useQuasar(); const text1_1 = ref(null); const text1_2 = ref(null); const text2_1 = ref(null); const text2_2 = ref(null); - +const etc_text = ref(null); +const etc_text2 = ref(null); const text3_1 = ref(null); const text3_2 = ref(null); const mixin = useCounterMixin(); @@ -583,14 +606,28 @@ const model15 = ref(0); const model16 = ref(0); const model17 = ref(0); const model18 = ref(0); +const modelEtc = ref(0); const dateAutherise = ref(new Date()); -const etc = ref(null); -const etc_4 = ref(null); +const etc = ref(false); +const etc_4 = ref(false); const radio_1 = ref(null); const radio_2 = ref(null); const radio_3 = ref(null); const radio_4 = ref(null); const option = ref(["นาย ภูริณัฐ บุญขาว", "นาย พงศกร วรารักษ์"]); + +const onSubmit = () => { + $q.notify({ + color: "green-4", + textColor: "white", + icon: "cloud_done", + message: "ส่งแบบประเมินเเล้ว", + }); +}; + +const onReset = () => { + router.push({ name: "probation" }); +};