From a57724d07fdd33880e6201208ee14f8ca7775f8c Mon Sep 17 00:00:00 2001 From: waruneeta Date: Sat, 23 Dec 2023 20:05:57 +0700 Subject: [PATCH] reply message --- src/api/00_dashboard/api.message.ts | 4 +- src/components/Dialogs/PopupReplyInbox.vue | 111 +++++++++++++++++++++ src/views/Dashboard.vue | 28 +++++- 3 files changed, 139 insertions(+), 4 deletions(-) create mode 100644 src/components/Dialogs/PopupReplyInbox.vue diff --git a/src/api/00_dashboard/api.message.ts b/src/api/00_dashboard/api.message.ts index a157d61fb..fefbcc22a 100644 --- a/src/api/00_dashboard/api.message.ts +++ b/src/api/00_dashboard/api.message.ts @@ -4,10 +4,12 @@ import env from "../index"; const message = `${env.API_PLACEMENT_URI}/message`; +const reply = `${env.API_PLACEMENT_URI}/placement/noti`; export default { msgNotificate: `${message}/my-notifications`, msgInbox: `${message}/my-inboxes`, msgId: (id: string) => `${message}/my-notifications/${id}`, - msgInboxDelete:(id:string) => `${message}/my-inboxes/${id}`, + msgInboxDelete: (id: string) => `${message}/my-inboxes/${id}`, + replyMessage: (id: string) => `${reply}/${id}`, }; diff --git a/src/components/Dialogs/PopupReplyInbox.vue b/src/components/Dialogs/PopupReplyInbox.vue new file mode 100644 index 000000000..1eed8b25b --- /dev/null +++ b/src/components/Dialogs/PopupReplyInbox.vue @@ -0,0 +1,111 @@ + + + diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index dce973290..db03e7a44 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -6,6 +6,7 @@ import { useCounterMixin } from "@/stores/mixin"; import http from "@/plugins/http"; import config from "@/app.config"; +import PopupReplyInbox from "@/components/Dialogs/PopupReplyInbox.vue"; import type { ResponseInbox, DataInbox, @@ -94,6 +95,16 @@ const removeData = async (id: string) => { const fileOpen = (url: string) => { window.open(url, "_blank"); }; + +// Dialog Reply +const modalReply = ref(false); +function dialogRepleOpen() { + modalReply.value = true; +} + +function modalReplyClose() { + modalReply.value = false; +} @@ -197,7 +208,7 @@ const fileOpen = (url: string) => { bordered :style="$q.screen.gt.xs ? 'height: 80vh' : 'height: auto;'" > -
+
@@ -225,14 +236,25 @@ const fileOpen = (url: string) => { date2Thai(d.timereceive) }}
- + --> + @click="dialogRepleOpen()" + > + ตอบกลับข้อความ + + + +