แก้ชื่อstatusสรุปผลวินัย

This commit is contained in:
Kittapath 2023-12-01 21:50:01 +07:00
parent 959b023e05
commit fa8926e01c
2 changed files with 13 additions and 6 deletions

View file

@ -277,7 +277,12 @@ watch(
<div class="q-ma-none">แกไขผลการพจารณาทางว</div>
<q-space />
<div class="q-gutter-x-sm">
<q-btn label="ส่งไปออกคำสั่ง" color="public" @click="sentIssue" />
<q-btn
v-if="status === 'DONE'"
label="ส่งไปออกคำสั่ง"
color="public"
@click="sentIssue"
/>
</div>
</div>
<q-card flat class="col-12">

View file

@ -64,12 +64,14 @@ export const useDisciplineResultStore = defineStore(
/** function สถานะ*/
function convertStatus(val: string) {
switch (val) {
case "NEW":
return "กำลังสรุปผลการพิจารณา";
case "STOP":
return "ยุติเรื่อง";
// case "NEW":
// return "กำลังสรุปผลการพิจารณา";
// case "STOP":
// return "ยุติเรื่อง";
case "DONE":
return "เสร็จสิ้น";
return "กำลังสรุปผลการพิจารณา";
case "REPORT":
return "ส่งไปออกคำสั่ง";
}
}