Merge branch 'develop' into dev-tee

This commit is contained in:
setthawutttty 2024-01-04 16:05:40 +07:00
commit dd2496f1f4
50 changed files with 8517 additions and 12165 deletions

View file

@ -133,24 +133,24 @@ async function updateFilePDF(url: any, urlDownload: string) {
urlDownloadFile.value = urlDownload;
}
/** function เช็คการยื่นข้อประเมิน*/
async function fetchCheckStatus() {
showLoader();
await http
.get(config.API.evaluationCheckStatus())
.then((res) => {
const data = res.data.result;
const id =
route.params.type === "expert" ? data.expertId : data.specialExpertId;
router.push(`/evaluate/detail/${route.params.type}/${id}`);
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
// /** function */
// async function fetchCheckStatus() {
// showLoader();
// await http
// .get(config.API.evaluationCheckStatus())
// .then((res) => {
// const data = res.data.result;
// const id =
// route.params.type === "expert" ? data.expertId : data.specialExpertId;
// router.push(`/evaluate/detail/${route.params.type}/${id}`);
// })
// .catch((err) => {
// messageError($q, err);
// })
// .finally(() => {
// hideLoader();
// });
// }
async function fetchCheckStep(id: string) {
showLoadStatus.value = false;
@ -302,8 +302,9 @@ async function saveStep1() {
await http
.post(config.API.evaluationCheckspec(), form)
.then(() => {
fetchCheckStatus();
.then((res) => {
const id = res.data.result.id;
router.push(`/evaluate/detail/${route.params.type}/${id}`);
})
.catch((err) => {
messageError($q, err);

View file

@ -66,8 +66,8 @@ const columns = ref<QTableProps["columns"]>([
},
]);
const pagination = ref({
sortBy: "",
descending: true,
// sortBy: "",
descending: false,
page: props.page,
rowsPerPage: props.pageSize,
});