หน้า view แบบ มอบหมายงาน
This commit is contained in:
parent
1cbf5e3f06
commit
b40a617c5a
4 changed files with 337 additions and 84 deletions
|
|
@ -55,19 +55,39 @@
|
|||
<div class="col-12 text-detail">
|
||||
<q-icon
|
||||
size="20px"
|
||||
v-if="probation_status == 'PENDING'"
|
||||
v-if="probation_status === 'PENDING'"
|
||||
name="mdi-timer-sand"
|
||||
color="deep-orange"
|
||||
/>
|
||||
<q-icon
|
||||
size="20px"
|
||||
v-else-if="probation_status == 'ไม่ผ่านการทดลอง'"
|
||||
v-else-if="probation_status === 'NO-PASS'"
|
||||
name="mdi-close"
|
||||
color="red"
|
||||
/>
|
||||
<q-icon
|
||||
size="20px"
|
||||
v-else-if="probation_status === 'PROCESS'"
|
||||
name="mdi-timer-sand"
|
||||
color="deep-orange"
|
||||
/>
|
||||
<q-icon
|
||||
size="20px"
|
||||
v-else-if="probation_status === 'PASS'"
|
||||
name="mdi-check"
|
||||
color="teal"
|
||||
/>
|
||||
<q-icon size="20px" v-else name="mdi-check" color="teal" />
|
||||
{{
|
||||
probation_status == "PENDING" ? "อยู่ในระหว่างการทดลองงาน" : ""
|
||||
probation_status === "PENDING"
|
||||
? "รอมอบหมายงาน"
|
||||
: probation_status === "NO-PASS"
|
||||
? "ไม่ผ่านการทดลองงาน"
|
||||
: probation_status === "PROCESS"
|
||||
? "อยู่ในระหว่างการทดลองงาน"
|
||||
: probation_status === "PASS"
|
||||
? "ผ่านการทดลองงาน"
|
||||
: ""
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -204,7 +224,7 @@ import config from "@/app.config";
|
|||
|
||||
const $q = useQuasar(); //ใช้ noti quasar
|
||||
const mixin = useCounterMixin();
|
||||
const { messageError, success, showLoader, hideLoader,date2Thai } = mixin;
|
||||
const { messageError, success, showLoader, hideLoader, date2Thai } = mixin;
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const personalId = ref<string>(route.params.id as string);
|
||||
|
|
@ -311,7 +331,7 @@ const getAssignList = async () => {
|
|||
console.log("LIST ===>", res.data.data);
|
||||
const data = res.data.data;
|
||||
rows.value = data.map((item: FormProbationDetail) => ({
|
||||
id:item.id,
|
||||
id: item.id,
|
||||
round_no: item.round_no,
|
||||
date_start: date2Thai(new Date(item.date_start)),
|
||||
date_finish: date2Thai(new Date(item.date_finish)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue