no message
This commit is contained in:
parent
09f12e3ace
commit
346ba79606
2 changed files with 23 additions and 22 deletions
|
|
@ -133,24 +133,24 @@ async function updateFilePDF(url: any, urlDownload: string) {
|
||||||
urlDownloadFile.value = urlDownload;
|
urlDownloadFile.value = urlDownload;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** function เช็คการยื่นข้อประเมิน*/
|
// /** function เช็คการยื่นข้อประเมิน*/
|
||||||
async function fetchCheckStatus() {
|
// async function fetchCheckStatus() {
|
||||||
showLoader();
|
// showLoader();
|
||||||
await http
|
// await http
|
||||||
.get(config.API.evaluationCheckStatus())
|
// .get(config.API.evaluationCheckStatus())
|
||||||
.then((res) => {
|
// .then((res) => {
|
||||||
const data = res.data.result;
|
// const data = res.data.result;
|
||||||
const id =
|
// const id =
|
||||||
route.params.type === "expert" ? data.expertId : data.specialExpertId;
|
// route.params.type === "expert" ? data.expertId : data.specialExpertId;
|
||||||
router.push(`/evaluate/detail/${route.params.type}/${id}`);
|
// router.push(`/evaluate/detail/${route.params.type}/${id}`);
|
||||||
})
|
// })
|
||||||
.catch((err) => {
|
// .catch((err) => {
|
||||||
messageError($q, err);
|
// messageError($q, err);
|
||||||
})
|
// })
|
||||||
.finally(() => {
|
// .finally(() => {
|
||||||
hideLoader();
|
// hideLoader();
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
async function fetchCheckStep(id: string) {
|
async function fetchCheckStep(id: string) {
|
||||||
showLoadStatus.value = false;
|
showLoadStatus.value = false;
|
||||||
|
|
@ -302,8 +302,9 @@ async function saveStep1() {
|
||||||
|
|
||||||
await http
|
await http
|
||||||
.post(config.API.evaluationCheckspec(), form)
|
.post(config.API.evaluationCheckspec(), form)
|
||||||
.then(() => {
|
.then((res) => {
|
||||||
fetchCheckStatus();
|
const id = res.data.result.id;
|
||||||
|
router.push(`/evaluate/detail/${route.params.type}/${id}`);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
|
|
|
||||||
|
|
@ -66,8 +66,8 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
const pagination = ref({
|
const pagination = ref({
|
||||||
sortBy: "",
|
// sortBy: "",
|
||||||
descending: true,
|
descending: false,
|
||||||
page: props.page,
|
page: props.page,
|
||||||
rowsPerPage: props.pageSize,
|
rowsPerPage: props.pageSize,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue