Merge branch 'develop' into devTee
This commit is contained in:
commit
1e783f0ec7
2 changed files with 22 additions and 37 deletions
|
|
@ -209,8 +209,8 @@ async function confirmApprove() {
|
||||||
),
|
),
|
||||||
data
|
data
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(async () => {
|
||||||
nextStep();
|
await nextStep();
|
||||||
modalConfirm.value = false;
|
modalConfirm.value = false;
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|
@ -337,6 +337,10 @@ async function fetchDataSigner() {
|
||||||
author.value = data.authorDoc2;
|
author.value = data.authorDoc2;
|
||||||
subject.value = data.subjectDoc2;
|
subject.value = data.subjectDoc2;
|
||||||
assignedPosition.value = data.assignedPosition;
|
assignedPosition.value = data.assignedPosition;
|
||||||
|
|
||||||
|
nameOfWork.value = data.authorDoc2;
|
||||||
|
nameOfOwner.value = data.subjectDoc2;
|
||||||
|
position.value = data.assignedPosition;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|
@ -983,7 +987,7 @@ onMounted(async () => {
|
||||||
unelevated
|
unelevated
|
||||||
label="ยืนยันผลการพิจารณา"
|
label="ยืนยันผลการพิจารณา"
|
||||||
color="public"
|
color="public"
|
||||||
@click="confirmApprove"
|
@click="modalConfirm = true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -126,27 +126,8 @@ const formData = reactive<FormRound>({
|
||||||
year: null,
|
year: null,
|
||||||
startDate: null,
|
startDate: null,
|
||||||
endDate: null,
|
endDate: null,
|
||||||
}); // form เพิ่มรอบการประเมินผลการปฏิบัติหน้าที่ราชการ
|
});
|
||||||
const itemMenu = ref<ItemsMenu[]>([
|
|
||||||
// {
|
|
||||||
// label: "เปิดรอบ",
|
|
||||||
// value: "open",
|
|
||||||
// icon: "mdi-check",
|
|
||||||
// color: "primary",
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
label: "ปิดรอบ",
|
|
||||||
value: "close",
|
|
||||||
icon: "mdi-close",
|
|
||||||
color: "orange",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "ลบรอบ",
|
|
||||||
value: "delete",
|
|
||||||
icon: "delete",
|
|
||||||
color: "red",
|
|
||||||
},
|
|
||||||
]); // itemMenu
|
|
||||||
const roundOp = ref<DataOption[]>([
|
const roundOp = ref<DataOption[]>([
|
||||||
{ id: "APR", name: "รอบที่ 1 เมษายน" },
|
{ id: "APR", name: "รอบที่ 1 เมษายน" },
|
||||||
{
|
{
|
||||||
|
|
@ -224,19 +205,20 @@ function clearFormData() {
|
||||||
*/
|
*/
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
dialogConfirm($q, async () => {
|
dialogConfirm($q, async () => {
|
||||||
|
showLoader();
|
||||||
try {
|
try {
|
||||||
const url = isStatusEdit.value
|
const url = isStatusEdit.value
|
||||||
? config.API.kpiPeriodById("12")
|
? config.API.kpiPeriodById("12")
|
||||||
: config.API.kpiPeriod;
|
: config.API.kpiPeriod;
|
||||||
const method = isStatusEdit.value ? "put" : "post";
|
const method = isStatusEdit.value ? "put" : "post";
|
||||||
await http[method](url, formData);
|
await http[method](url, formData);
|
||||||
fetchList();
|
await fetchList();
|
||||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
await success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
|
closeDialog();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
} finally {
|
} finally {
|
||||||
hideLoader();
|
hideLoader();
|
||||||
closeDialog();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -272,9 +254,9 @@ function onOpenRounde(id: string) {
|
||||||
() => {
|
() => {
|
||||||
http
|
http
|
||||||
.get(config.API.kpiPeriod + `/open/${id}`)
|
.get(config.API.kpiPeriod + `/open/${id}`)
|
||||||
.then(() => {
|
.then(async () => {
|
||||||
fetchList();
|
await fetchList();
|
||||||
success($q, "เปิดรอบสำเร็จ");
|
await success($q, "เปิดรอบสำเร็จ");
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
|
|
@ -299,9 +281,9 @@ function onCloseRounde(id: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.get(config.API.kpiPeriod + `/close/${id}`)
|
.get(config.API.kpiPeriod + `/close/${id}`)
|
||||||
.then(() => {
|
.then(async () => {
|
||||||
success($q, "ปิดรอบสำเร็จ");
|
await fetchList();
|
||||||
fetchList();
|
await success($q, "ปิดรอบสำเร็จ");
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
|
|
@ -324,9 +306,9 @@ function onDeleteRound(id: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.delete(config.API.kpiPeriodById(id))
|
.delete(config.API.kpiPeriodById(id))
|
||||||
.then(() => {
|
.then(async () => {
|
||||||
success($q, "ลบข้อมูลสำเร็จ");
|
await fetchList();
|
||||||
fetchList();
|
await success($q, "ลบข้อมูลสำเร็จ");
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
|
|
@ -532,7 +514,6 @@ onMounted(() => {
|
||||||
>
|
>
|
||||||
<q-tooltip>ลบรอบ</q-tooltip>
|
<q-tooltip>ลบรอบ</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
<div class="table_ellipsis">
|
<div class="table_ellipsis">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue