From 21687e3714074a1f20c26c129c581e5b176671fd Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Tue, 1 Oct 2024 11:57:26 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=95=E0=B9=88=E0=B8=AD=20API=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=AD=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.development.ts | 4 + .../14_IDP/component/DialogDevelop.vue | 149 +++++++++++- src/modules/14_IDP/store.ts | 2 +- src/modules/14_IDP/views/main.vue | 226 +++++++----------- 4 files changed, 232 insertions(+), 149 deletions(-) diff --git a/src/api/api.development.ts b/src/api/api.development.ts index 94606b1..c1f9521 100644 --- a/src/api/api.development.ts +++ b/src/api/api.development.ts @@ -2,6 +2,7 @@ import env from "./index"; const development = `${env.API_URI}/development`; const urlFile = `${env.API_URI}/salary`; +const orgProfile = `${env.API_URI}/org/profile`; export default { // portfolio @@ -12,4 +13,7 @@ export default { `${urlFile}/file/${name}/${group}/${id}`, fileByFile: (name: string, group: string, id: string, fileName: string) => `${urlFile}/file/${name}/${group}/${id}/${fileName}`, + + + developmentRequest:`${orgProfile}/development-request` }; diff --git a/src/modules/14_IDP/component/DialogDevelop.vue b/src/modules/14_IDP/component/DialogDevelop.vue index b69f1d4..dcac47e 100644 --- a/src/modules/14_IDP/component/DialogDevelop.vue +++ b/src/modules/14_IDP/component/DialogDevelop.vue @@ -1,7 +1,10 @@ + + + เพิ่มข้อมูล @@ -396,12 +343,20 @@ onMounted(async () => { + { v-for="col in props.cols" :key="col.name" :props="props" - class="vertical-top" + class="vertical-top cursor-pointer" + @click=" + col.name === 'document' ? '' : onDetail(props.row.id) + " >
{{ @@ -470,7 +428,7 @@ onMounted(async () => {
-
+
{ />
-
-
- - {{ - props.row.achievement10 - ? `- ${props.row.achievement10} (10)` - : "" - }} - - - {{ - props.row.achievement5 - ? `- ${props.row.achievement5} (5)` - : "" - }} - - - {{ - props.row.achievement0 - ? `- ${props.row.achievement10} (0)` - : "" - }} - -
-
{{ col.value ? col.value : "-" }}
@@ -556,6 +489,11 @@ onMounted(async () => {
- +