From 0adb7ae187d0fd7cf5a15d32655c137787fcb8d0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 22 Apr 2024 17:25:58 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=82=E0=B8=AD=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B9=80=E0=B8=A1=E0=B8=B4=E0=B8=99=E0=B8=9C?= =?UTF-8?q?=E0=B8=A5=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9B=E0=B8=8F=E0=B8=B4?= =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=A3=E0=B8=B2=E0=B8=8A?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A3=E0=B8=B0=E0=B8=94=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=E0=B8=9A=E0=B8=B8=E0=B8=84=E0=B8=84=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/KPI/api.KPI.ts | 10 + src/app.config.ts | 2 + .../08_KPI/components/Tab/01_Assessment.vue | 33 +- .../components/Tab/Dialog/01_Dialog.vue | 471 ++++++++++------ src/modules/08_KPI/views/form.vue | 62 ++- src/modules/08_KPI/views/main.vue | 512 ++++++++++++++---- 6 files changed, 786 insertions(+), 304 deletions(-) create mode 100644 src/api/KPI/api.KPI.ts diff --git a/src/api/KPI/api.KPI.ts b/src/api/KPI/api.KPI.ts new file mode 100644 index 0000000..df497eb --- /dev/null +++ b/src/api/KPI/api.KPI.ts @@ -0,0 +1,10 @@ +import env from "../index"; + +const kpiPeriod = `${env.API_URI}/kpi/period`; +const kpiEvaluation = `${env.API_URI}/kpi/user/evaluation`; +const kpiPlan = `${env.API_URI}/kpi/plan`; +export default { + kpiPeriod, + kpiEvaluation, + kpiPlan, +}; diff --git a/src/app.config.ts b/src/app.config.ts index 4d711c9..a625236 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -10,6 +10,7 @@ import evaluate from "./api/evaluate/api.evaluate"; import support from "./api/support/api.support"; import org from "./api/org/api.org"; import scholarship from "./api/scholarship/api.scholarship"; +import KPI from "./api/KPI/api.KPI"; const API = { ...testtest, @@ -21,6 +22,7 @@ const API = { ...support, ...org, ...scholarship, + ...KPI, }; export default { diff --git a/src/modules/08_KPI/components/Tab/01_Assessment.vue b/src/modules/08_KPI/components/Tab/01_Assessment.vue index 1d4c17e..952a336 100644 --- a/src/modules/08_KPI/components/Tab/01_Assessment.vue +++ b/src/modules/08_KPI/components/Tab/01_Assessment.vue @@ -36,7 +36,10 @@ onMounted(() => { }); @@ -272,17 +399,17 @@ function onSubmit() {} background: #ebf9f7 !important; color: #1bb19ab8 !important; } -.no-shadow{ - box-shadow:none !important; +.no-shadow { + box-shadow: none !important; } -.lineRight{ - border-right: 1px solid #EDEDED !important; +.lineRight { + border-right: 1px solid #ededed !important; } -.lineTop{ - border-top: 1px solid #EDEDED !important; +.lineTop { + border-top: 1px solid #ededed !important; } -.card-box{ - border: 1px solid #EDEDED !important; +.card-box { + border: 1px solid #ededed !important; border-radius: 8px; } diff --git a/src/modules/08_KPI/views/form.vue b/src/modules/08_KPI/views/form.vue index 9750935..cc3645c 100644 --- a/src/modules/08_KPI/views/form.vue +++ b/src/modules/08_KPI/views/form.vue @@ -1,18 +1,19 @@ @@ -77,18 +99,18 @@ onMounted(() => { >
- +
- - - -
+ class="absolute" + style="left: 2%; top: 50%; transform: translateY(-50%)" + > + + + +
-
+
{{ formProfile.fullName ? formProfile.fullName : "-" @@ -119,10 +141,9 @@ onMounted(() => {
-
-
+
@@ -178,8 +199,7 @@ onMounted(() => {
diff --git a/src/modules/08_KPI/views/main.vue b/src/modules/08_KPI/views/main.vue index e92b50b..6e003f9 100644 --- a/src/modules/08_KPI/views/main.vue +++ b/src/modules/08_KPI/views/main.vue @@ -1,101 +1,260 @@ @@ -118,29 +277,73 @@ onMounted(async () => {
- - - เพิ่มข้อมูล - +
+ + + + + + + + เพิ่มข้อมูล + +
+
- + > --> {
- - - - +
+ + + + + +
+ + + + + + + +
+
+ + + + + +
+ +
+ +
+
+
+ + + บันทึกข้อมูล + +
+
+