แก้ รายละเอียดการประเมินบุคคล
This commit is contained in:
parent
5f0d1eb6cc
commit
0ebce96c89
3 changed files with 51 additions and 10 deletions
|
|
@ -93,10 +93,12 @@ const listDirector = ref<any>([]);
|
||||||
|
|
||||||
async function onClickAdd() {
|
async function onClickAdd() {
|
||||||
modalAddDirector.value = true;
|
modalAddDirector.value = true;
|
||||||
|
getList()
|
||||||
}
|
}
|
||||||
|
|
||||||
function onClickClose() {
|
function onClickClose() {
|
||||||
modalAddDirector.value = false;
|
modalAddDirector.value = false;
|
||||||
|
props.fetchdata()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -128,7 +130,6 @@ function returnDirector(data: any) {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
props.fetchdata();
|
|
||||||
onClickClose();
|
onClickClose();
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
|
|
@ -166,7 +167,6 @@ async function getList() {
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.data,
|
() => props.data,
|
||||||
() => {
|
() => {
|
||||||
|
|
@ -186,9 +186,6 @@ watch(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
getList();
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,28 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
sort: (a: string, b: string) =>
|
sort: (a: string, b: string) =>
|
||||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "tittle",
|
||||||
|
align: "left",
|
||||||
|
label: "หัวข้อการประชุม",
|
||||||
|
sortable: true,
|
||||||
|
field: "tittle",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
sort: (a: string, b: string) =>
|
||||||
|
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "round",
|
||||||
|
align: "left",
|
||||||
|
label: "ครั้งที่",
|
||||||
|
sortable: true,
|
||||||
|
field: "round",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
sort: (a: string, b: string) =>
|
||||||
|
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "result",
|
name: "result",
|
||||||
align: "left",
|
align: "left",
|
||||||
|
|
@ -97,10 +119,12 @@ const listMeet = ref<any>([]);
|
||||||
|
|
||||||
function onClickAdd() {
|
function onClickAdd() {
|
||||||
modalAdd.value = true;
|
modalAdd.value = true;
|
||||||
|
getList()
|
||||||
}
|
}
|
||||||
|
|
||||||
function onClickClose() {
|
function onClickClose() {
|
||||||
modalAdd.value = false;
|
modalAdd.value = false;
|
||||||
|
props.fetchdata()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -132,7 +156,6 @@ function returnData(data: any) {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
props.fetchdata();
|
|
||||||
onClickClose();
|
onClickClose();
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
|
|
@ -154,7 +177,7 @@ async function getList() {
|
||||||
lastUpdateUserId: item.lastUpdateUserId,
|
lastUpdateUserId: item.lastUpdateUserId,
|
||||||
createdFullName: item.createdFullName,
|
createdFullName: item.createdFullName,
|
||||||
lastUpdateFullName: item.lastUpdateFullName,
|
lastUpdateFullName: item.lastUpdateFullName,
|
||||||
title: item.tittle,
|
tittle: item.tittle,
|
||||||
round: item.round,
|
round: item.round,
|
||||||
date: `${date2Thai(item.dateStart as Date, false, true)} - ${date2Thai(
|
date: `${date2Thai(item.dateStart as Date, false, true)} - ${date2Thai(
|
||||||
item.dateEnd as Date,
|
item.dateEnd as Date,
|
||||||
|
|
@ -185,6 +208,8 @@ watch(
|
||||||
true
|
true
|
||||||
)}`,
|
)}`,
|
||||||
dateStart: item.dateStart,
|
dateStart: item.dateStart,
|
||||||
|
tittle: item.tittle ? item.tittle : '-',
|
||||||
|
round: item.round ? item.round : '-',
|
||||||
dateEnd: item.dateEnd,
|
dateEnd: item.dateEnd,
|
||||||
result: item.result,
|
result: item.result,
|
||||||
timePeriod: item.duration,
|
timePeriod: item.duration,
|
||||||
|
|
@ -193,9 +218,6 @@ watch(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
onMounted(async () => {
|
|
||||||
await getList();
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<q-card bordered class="row col-12" style="border: 1px solid #d6dee1">
|
<q-card bordered class="row col-12" style="border: 1px solid #d6dee1">
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,28 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
sort: (a: string, b: string) =>
|
sort: (a: string, b: string) =>
|
||||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "tittle",
|
||||||
|
align: "left",
|
||||||
|
label: "หัวข้อการประชุม",
|
||||||
|
sortable: true,
|
||||||
|
field: "tittle",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
sort: (a: string, b: string) =>
|
||||||
|
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "round",
|
||||||
|
align: "left",
|
||||||
|
label: "ครั้งที่",
|
||||||
|
sortable: true,
|
||||||
|
field: "round",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
sort: (a: string, b: string) =>
|
||||||
|
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "result",
|
name: "result",
|
||||||
align: "left",
|
align: "left",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue