Merge branch 'develop' into dev-tee
This commit is contained in:
commit
8a42bf96cb
3 changed files with 14 additions and 7 deletions
|
|
@ -189,7 +189,7 @@ const ProbationMainFilter = () => {
|
||||||
};
|
};
|
||||||
const dataUpdate = ref<any>([]);
|
const dataUpdate = ref<any>([]);
|
||||||
const updateRows = (body: any) => {
|
const updateRows = (body: any) => {
|
||||||
console.log(body.value);
|
// console.log(body.value);
|
||||||
if (body.value !== "ทั้งหมด") {
|
if (body.value !== "ทั้งหมด") {
|
||||||
const filteredRows = dataUpdate.value.filter(
|
const filteredRows = dataUpdate.value.filter(
|
||||||
(item: any) => item.probation_status === body.value
|
(item: any) => item.probation_status === body.value
|
||||||
|
|
@ -207,10 +207,6 @@ const getpersonalList = async () => {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.data;
|
const data = res.data.data;
|
||||||
fillterStatus.value = data;
|
fillterStatus.value = data;
|
||||||
console.log(
|
|
||||||
"🚀 ~ file: MainProbation.vue:193 ~ .then ~ fillterStatus:",
|
|
||||||
fillterStatus
|
|
||||||
);
|
|
||||||
rows.value = data.map((item: FormMainProbation) => ({
|
rows.value = data.map((item: FormMainProbation) => ({
|
||||||
personal_id: item.personal_id,
|
personal_id: item.personal_id,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
|
|
@ -282,7 +278,7 @@ const findlist = async (id: string) => {
|
||||||
response2.forEach((e: any) =>
|
response2.forEach((e: any) =>
|
||||||
probationlist.value.push({ ...e, probation: false })
|
probationlist.value.push({ ...e, probation: false })
|
||||||
);
|
);
|
||||||
console.log(probationlist.value);
|
// console.log(probationlist.value);
|
||||||
rows2.value = probationlist.value.map((e: any) => ({
|
rows2.value = probationlist.value.map((e: any) => ({
|
||||||
id: e.id,
|
id: e.id,
|
||||||
fullname: e.fullname,
|
fullname: e.fullname,
|
||||||
|
|
|
||||||
|
|
@ -353,6 +353,17 @@ export const useCounterMixin = defineStore("mixin", () => {
|
||||||
onlycancel: true,
|
onlycancel: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
} else if (e.response.data.successful === false) {
|
||||||
|
q.dialog({
|
||||||
|
component: CustomComponent,
|
||||||
|
componentProps: {
|
||||||
|
title: `พบข้อผิดพลาด`,
|
||||||
|
message: e.response.data.message,
|
||||||
|
icon: "warning",
|
||||||
|
color: "red",
|
||||||
|
onlycancel: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
q.dialog({
|
q.dialog({
|
||||||
component: CustomComponent,
|
component: CustomComponent,
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ const getDataNotification = async () => {
|
||||||
? "เจ้าหน้าที่"[0]
|
? "เจ้าหน้าที่"[0]
|
||||||
: e.createdFullName[0],
|
: e.createdFullName[0],
|
||||||
body: e.body ?? "",
|
body: e.body ?? "",
|
||||||
timereceive: new Date(e.createdAt),
|
timereceive: new Date(e.receiveDate),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
notiList.value = list;
|
notiList.value = list;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue