From 209f0a5fa7a93f9801e77f44f34b7f1ca664428d Mon Sep 17 00:00:00 2001
From: AnandaTon <125332905+anandaAiemvong@users.noreply.github.com>
Date: Fri, 4 Aug 2023 17:56:16 +0700
Subject: [PATCH 1/3] =?UTF-8?q?=E0=B8=95=E0=B9=88=E0=B8=AD=20Api=20insigni?=
=?UTF-8?q?a?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/07_insignia/api.insignia.ts | 10 +-
.../components/1_Proposals/addProposals.vue | 423 ++++++++++++------
.../components/1_Proposals/listProposals.vue | 79 +++-
3 files changed, 367 insertions(+), 145 deletions(-)
diff --git a/src/api/07_insignia/api.insignia.ts b/src/api/07_insignia/api.insignia.ts
index 9a2b93e20..f17086d3f 100644
--- a/src/api/07_insignia/api.insignia.ts
+++ b/src/api/07_insignia/api.insignia.ts
@@ -2,5 +2,11 @@
* api เครื่องราชอิสริยาภรณ์
*/
import env from "../index";
-
-export default {};
+const insignia = `${env.API_URI}/insignia`;
+export default {
+ getRoundInsignia: (id: string) => `${insignia}/period/${id}`,
+ listRoundInsignia: (type: string) => `${insignia}/period/${type}`,
+ editRoundInsignia: (id: string) => `${insignia}/period/${id}`,
+ RoundInsignia: (id: string) => `${insignia}/period/${id}`,
+ docRoundInsignia: (id: string) => `${insignia}/period/${id}`,
+};
diff --git a/src/modules/07_insignia/components/1_Proposals/addProposals.vue b/src/modules/07_insignia/components/1_Proposals/addProposals.vue
index 63ee7bb6a..ba6c3ec5c 100644
--- a/src/modules/07_insignia/components/1_Proposals/addProposals.vue
+++ b/src/modules/07_insignia/components/1_Proposals/addProposals.vue
@@ -13,163 +13,304 @@
/>
เพิ่มรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
-
-
-
-
-
-
-
-
-
-
- {{ year + 543 }}
-
-
- {{ parseInt(value + 543) }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ year + 543 }}
-
-
- {{ parseInt(value + 543) }}
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+
+
+ {{ parseInt(value + 543) }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+
+
+ {{ parseInt(value + 543) }}
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/src/modules/07_insignia/components/1_Proposals/listProposals.vue b/src/modules/07_insignia/components/1_Proposals/listProposals.vue
index 1969ecb05..6cdff4beb 100644
--- a/src/modules/07_insignia/components/1_Proposals/listProposals.vue
+++ b/src/modules/07_insignia/components/1_Proposals/listProposals.vue
@@ -171,12 +171,29 @@
diff --git a/src/modules/09_coin/components/1_Proposals/listProposals.vue b/src/modules/09_coin/components/1_Proposals/listProposals.vue
new file mode 100644
index 000000000..d9d5793b9
--- /dev/null
+++ b/src/modules/09_coin/components/1_Proposals/listProposals.vue
@@ -0,0 +1,468 @@
+
+
+ รายการรอบการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา
+
+
+
+
+
+
+ เพิ่มรายการรอบการเสนอขอ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/modules/09_coin/router.ts b/src/modules/09_coin/router.ts
index d555454b2..ede52ede8 100644
--- a/src/modules/09_coin/router.ts
+++ b/src/modules/09_coin/router.ts
@@ -4,6 +4,10 @@
const Main = () => import("@/modules/09_coin/views/Main.vue");
const CoinHistory = () => import("@/modules/09_coin/components/Coin.vue");
+const coinProposals = () =>
+ import("@/modules/09_coin/components/1_Proposals/listProposals.vue");
+const coinRoundAdd = () =>
+ import("@/modules/09_coin/components/1_Proposals/addProposals.vue");
export default [
{
@@ -16,6 +20,36 @@ export default [
Role: "coin",
},
},
+ {
+ path: "/coin/round-proposals",
+ name: "coinProposals",
+ component: coinProposals,
+ meta: {
+ Auth: true,
+ Key: [8.2],
+ Role: "coin",
+ },
+ },
+ {
+ path: "/coin/round-add",
+ name: "coinRoundAdd",
+ component: coinRoundAdd,
+ meta: {
+ Auth: true,
+ Key: [8.2],
+ Role: "coin",
+ },
+ },
+ {
+ path: "/coin/round-add/:id",
+ name: "coinRoundEdit",
+ component: coinRoundAdd,
+ meta: {
+ Auth: true,
+ Key: [8.2],
+ Role: "coin",
+ },
+ },
{
path: "/coin/history",
name: "coinHistory",