ลบ วัน ปัจุบัน ออก
This commit is contained in:
parent
33db8e63dc
commit
bfecec80a8
2 changed files with 11 additions and 5 deletions
|
|
@ -97,7 +97,7 @@
|
||||||
autoApply
|
autoApply
|
||||||
:enableTimePicker="false"
|
:enableTimePicker="false"
|
||||||
week-start="0"
|
week-start="0"
|
||||||
:max-date="new Date()"
|
:max-date="calculateMaxDate()"
|
||||||
:disabled="!edit"
|
:disabled="!edit"
|
||||||
@update:model-value="handleDate"
|
@update:model-value="handleDate"
|
||||||
>
|
>
|
||||||
|
|
@ -1020,8 +1020,14 @@ const fetchDataComponent = async (modelData: Date) => {
|
||||||
await props.fetchDataProfile();
|
await props.fetchDataProfile();
|
||||||
await fetchData();
|
await fetchData();
|
||||||
};
|
};
|
||||||
|
const calculateMaxDate = () => {
|
||||||
|
const today = new Date();
|
||||||
|
|
||||||
|
today.setDate(today.getDate() - 1);
|
||||||
|
return today;
|
||||||
|
}
|
||||||
const calRetire = async (birth: Date) => {
|
const calRetire = async (birth: Date) => {
|
||||||
|
console.log(birth)
|
||||||
const body = {
|
const body = {
|
||||||
birthDate: dateToISO(birth),
|
birthDate: dateToISO(birth),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -91,13 +91,13 @@ const getData = async () => {
|
||||||
let list: DataInbox[] = [];
|
let list: DataInbox[] = [];
|
||||||
response.map((e: ResponseInbox) => {
|
response.map((e: ResponseInbox) => {
|
||||||
list.push({
|
list.push({
|
||||||
no: e.id ?? "",
|
no: e.receiverUserId ?? "",
|
||||||
sender:
|
sender:
|
||||||
e.createdFullName == "" || e.createdFullName == null
|
e.createdFullName == "" || e.createdFullName == null
|
||||||
? "เจ้าหน้าที่"
|
? "เจ้าหน้าที่"
|
||||||
: e.createdFullName,
|
: e.createdFullName,
|
||||||
subject: e.subject ?? "",
|
subject: e.subject ?? "",
|
||||||
timereceive: new Date(e.createdAt),
|
timereceive: new Date(e.receiveDate),
|
||||||
body: e.body ?? "",
|
body: e.body ?? "",
|
||||||
payload: e.payload,
|
payload: e.payload,
|
||||||
ratingModel: 0,
|
ratingModel: 0,
|
||||||
|
|
@ -199,7 +199,7 @@ await http
|
||||||
/> -->
|
/> -->
|
||||||
|
|
||||||
<q-icon
|
<q-icon
|
||||||
v-if="contact.payload !== ''"
|
v-if="contact.payload !== null "
|
||||||
class="q-mt-md"
|
class="q-mt-md"
|
||||||
name="mdi-paperclip"
|
name="mdi-paperclip"
|
||||||
color="grey-5"
|
color="grey-5"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue