api review
This commit is contained in:
parent
8a79a051fc
commit
d052184c12
2 changed files with 26 additions and 15 deletions
|
|
@ -34,6 +34,8 @@ export default {
|
||||||
`${periodExam}position/${examId}/${positionId}`,
|
`${periodExam}position/${examId}/${positionId}`,
|
||||||
periodExamPayment: (examId: string) => `${periodExam}payment/${examId}`,
|
periodExamPayment: (examId: string) => `${periodExam}payment/${examId}`,
|
||||||
candidateCard: (examId: string, positionId: string) => `${candidate}card/${examId}/${positionId}`,
|
candidateCard: (examId: string, positionId: string) => `${candidate}card/${examId}/${positionId}`,
|
||||||
|
candidateReview: (examId: string, positionId: string) =>
|
||||||
|
`${candidate}review/${examId}/${positionId}`,
|
||||||
candidate,
|
candidate,
|
||||||
candidateBill: (examId: string, positionId: string) => `${candidate}bill/${examId}/${positionId}`
|
candidateBill: (examId: string, positionId: string) => `${candidate}bill/${examId}/${positionId}`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,15 @@
|
||||||
<q-card>
|
<q-card>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="text-h6">แบบสอบถามความพึงพอใจ</div>
|
<div class="text-h6">แบบสอบถามความพึงพอใจ</div>
|
||||||
|
<q-space />
|
||||||
|
<q-btn
|
||||||
|
icon="close"
|
||||||
|
unelevated
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
v-close-popup
|
||||||
|
style="color: #ff8080; background-color: #ffdede"
|
||||||
|
/>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<q-card-section class="q-pt-none">
|
<q-card-section class="q-pt-none">
|
||||||
|
|
@ -142,6 +151,7 @@ const fetchStatus = async () => {
|
||||||
scoreC.value = data.pointC
|
scoreC.value = data.pointC
|
||||||
examResultinscore.value = data.pass
|
examResultinscore.value = data.pass
|
||||||
avatar.value = data.avatar
|
avatar.value = data.avatar
|
||||||
|
if (data.reviewPoint == null) dialog.value = true
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
// acceptTermOfUse.value = false
|
// acceptTermOfUse.value = false
|
||||||
|
|
@ -152,21 +162,20 @@ const fetchStatus = async () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const sendRating = async () => {
|
const sendRating = async () => {
|
||||||
// rating.value //คะแนน
|
loader.value = true
|
||||||
// text.value //ข้อความ
|
await http
|
||||||
// loader.value = true
|
.put(config.API.candidateReview(examId.value, positionId.value), {
|
||||||
// await http
|
reviewPoint: rating.value, //คะแนน
|
||||||
// .get(config.API.candidateCard(examId.value, positionId.value))
|
review: text.value //ข้อความ
|
||||||
// .then((res) => {
|
})
|
||||||
|
.then((res) => {})
|
||||||
// })
|
.catch(() => {
|
||||||
// .catch(() => {
|
// acceptTermOfUse.value = false
|
||||||
// // acceptTermOfUse.value = false
|
})
|
||||||
// })
|
.finally(() => {
|
||||||
// .finally(() => {
|
loader.value = false
|
||||||
// loader.value = false
|
dialog.value = false
|
||||||
dialog.value = false
|
})
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const getClass = (val: string) => {
|
const getClass = (val: string) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue