update
This commit is contained in:
+29
-31
@@ -17,11 +17,11 @@
|
||||
<div class="flex flex-col flex-col-reverse pb-[10vw]">
|
||||
<ul
|
||||
class="space-y-[2vw] md:space-y-[0.5vw] mt-[0.5vw] border-b"
|
||||
v-for="(ticket, index) in tickets"
|
||||
v-for="ticket in tickets"
|
||||
:key="ticket.id"
|
||||
>
|
||||
|
||||
<li class="flex justify-between pt-[1.5vw] md:pt-0">
|
||||
<li class="flex justify-between items-center pt-[1.5vw] md:pt-0">
|
||||
|
||||
|
||||
<p
|
||||
@@ -29,15 +29,12 @@
|
||||
class="basis-2/6 text-[3.59vw] md:text-[0.938vw] text-[#383E43]">
|
||||
{{ ticket.subject }}
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
<p class="basis-2/6 flexBox relative text-[3.19vw] md:text-[0.833vw] text-[#878787]">
|
||||
<span v-show="num === index"
|
||||
v-for="(item, num) in jalali" :key="num"
|
||||
>{{item[2]}} / {{item[1]}} / {{item[0]}}</span>
|
||||
{{ jDate(ticket.createdAt) }}
|
||||
</p>
|
||||
|
||||
|
||||
<div class="basis-2/6 flex items-center justify-end gap-[1vw]">
|
||||
<button
|
||||
@click="openTicket(ticket.id)"
|
||||
@@ -45,11 +42,11 @@
|
||||
>
|
||||
مشاوره
|
||||
</button>
|
||||
<button
|
||||
<!-- <button
|
||||
class="text-[2.518vw] md:text-[0.658vw] bg-[#2ED5731A] text-[#2ED573] h-[8.462vw] md:h-[2.135vw] w-[20.769vw] md:w-[5.625vw] rounded-[2.051vw] md:rounded-[0.521vw]"
|
||||
>
|
||||
پاسخ داده شده
|
||||
</button>
|
||||
</button> -->
|
||||
</div>
|
||||
</li>
|
||||
<div class="chatBox">
|
||||
@@ -75,14 +72,11 @@
|
||||
<p class="text-[3.59vw] md:text-[1.055vw]">
|
||||
{{ message.createdBy && "کاربر مهمان" }} {{ }}
|
||||
</p>
|
||||
<!-- <p class="text-[#878787] text-[2.836vw] md:text-[0.741vw] mt-[0.5vw]">
|
||||
{{ message.createdAt }}
|
||||
</p> -->
|
||||
<p class="text-[#878787] text-[2.836vw] md:text-[0.741vw] mt-[0.5vw]">
|
||||
<span v-show="num === index"
|
||||
v-for="(item, num) in jalali" :key="num"
|
||||
>{{item[2]}} / {{item[1]}} / {{item[0]}}</span>
|
||||
<p class="text-[#878787] text-[2.836vw] md:text-[0.741vw] mt-[0.5vw]">
|
||||
{{ jDate(message.createdAt) }}
|
||||
</p>
|
||||
|
||||
|
||||
<p class="text-[3.19vw] md:text-[0.833vw] mt-[5vw] md:mt-[2vw]">
|
||||
{{ message.content }}
|
||||
</p>
|
||||
@@ -129,26 +123,29 @@
|
||||
v-show="ticket.status === 'active'"
|
||||
>
|
||||
<li class="flex justify-between items-center pt-[1.5vw] md:pt-0">
|
||||
|
||||
<p
|
||||
@click="openTicket(ticket.id)"
|
||||
class="text-[3.59vw] md:text-[0.938vw] text-[#383E43]">
|
||||
class="basis-2/6 text-[3.59vw] md:text-[0.938vw] text-[#383E43]">
|
||||
{{ ticket.subject }}
|
||||
</p>
|
||||
<p class="text-[3.19vw] md:text-[0.833vw] text-[#878787]">
|
||||
{{ ticket.createdAt }}
|
||||
|
||||
<p class="basis-2/6 flexBox relative text-[3.19vw] md:text-[0.833vw] text-[#878787]">
|
||||
{{ jDate(ticket.createdAt) }}
|
||||
</p>
|
||||
<div class="flex items-center gap-[1vw]">
|
||||
|
||||
<div class="basis-2/6 flex items-center justify-end gap-[1vw]">
|
||||
<button
|
||||
@click="openTicket(ticket.id)"
|
||||
class="hidden md:block text-[0.741vw] bg-[#F5F5F5] text-[#878787] h-[2.135vw] w-[3.646vw] rounded-[0.521vw]"
|
||||
>
|
||||
مشاوره
|
||||
</button>
|
||||
<button
|
||||
<!-- <button
|
||||
class="text-[2.518vw] md:text-[0.658vw] bg-[#2ED5731A] text-[#2ED573] h-[8.462vw] md:h-[2.135vw] w-[20.769vw] md:w-[5.625vw] rounded-[2.051vw] md:rounded-[0.521vw]"
|
||||
>
|
||||
پاسخ داده شده
|
||||
</button>
|
||||
</button> -->
|
||||
</div>
|
||||
</li>
|
||||
<div class="chatBox">
|
||||
@@ -222,23 +219,23 @@
|
||||
|
||||
<li class="flex justify-between items-center pt-[1.5vw] md:pt-0">
|
||||
|
||||
<p class="text-[3.59vw] md:text-[0.938vw] text-[#383E43]">
|
||||
<p class="basis-2/6 text-[3.59vw] md:text-[0.938vw] text-[#383E43]">
|
||||
{{ ticket.subject }}
|
||||
</p>
|
||||
<p class="text-[3.19vw] md:text-[0.833vw] text-[#878787]">
|
||||
{{ ticket.createdAt }}
|
||||
<p class="basis-2/6 flexBox relative text-[3.19vw] md:text-[0.833vw] text-[#878787]">
|
||||
{{ jDate(ticket.createdAt) }}
|
||||
</p>
|
||||
<div class="flex items-center gap-[1vw]">
|
||||
<div class="basis-2/6 flex items-center justify-end flex items-center gap-[1vw]">
|
||||
<button
|
||||
class="hidden md:block text-[0.741vw] bg-[#F5F5F5] text-[#878787] h-[2.135vw] w-[3.646vw] rounded-[0.521vw]"
|
||||
>
|
||||
مشاوره
|
||||
</button>
|
||||
<button
|
||||
<!-- <button
|
||||
class="text-[2.518vw] md:text-[0.658vw] bg-[#2ED5731A] text-[#2ED573] h-[8.462vw] md:h-[2.135vw] w-[20.769vw] md:w-[5.625vw] rounded-[2.051vw] md:rounded-[0.521vw]"
|
||||
>
|
||||
پاسخ داده شده
|
||||
</button>
|
||||
</button> -->
|
||||
</div>
|
||||
</li>
|
||||
<div class="chatBox">
|
||||
@@ -422,10 +419,11 @@ const sendTicket = async () => {
|
||||
subject: subject.value,
|
||||
},
|
||||
});
|
||||
// load()
|
||||
load()
|
||||
addTicketForm.value = false;
|
||||
subject.value = null;
|
||||
location.reload()
|
||||
toast.success('تیکت جدید با موفقیت ثبت شد')
|
||||
// location.reload()
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user