fix:interface
This commit is contained in:
parent
a79a5858b6
commit
c6c1fe93c1
4 changed files with 147 additions and 76 deletions
|
|
@ -1,15 +1,16 @@
|
|||
import { ref } from "vue";
|
||||
import { defineStore } from "pinia";
|
||||
import type { Options } from "@/modules/22_issues/interface/Main";
|
||||
|
||||
export const useIssueStore = defineStore("issue", () => {
|
||||
const systemOptions = ref<any[]>([
|
||||
const systemOptions = ref<Options[]>([
|
||||
{ label: "ทั้งหมด", value: "" },
|
||||
{ label: "ระบบบริหารจัดการ", value: "MGT" },
|
||||
{ label: "ระบบผู้ใช้งาน", value: "USER" },
|
||||
{ label: "ระบบลงเวลา", value: "CHECKIN" },
|
||||
]);
|
||||
|
||||
const statusOptions = ref<any[]>([
|
||||
const statusOptions = ref<Options[]>([
|
||||
{ label: "ทั้งหมด", value: "" },
|
||||
{ label: "ใหม่", value: "NEW" },
|
||||
{ label: "กำลังดำเนินการ", value: "IN_PROGRESS" },
|
||||
|
|
@ -29,7 +30,7 @@ export const useIssueStore = defineStore("issue", () => {
|
|||
case "CLOSED":
|
||||
return "ปิดแล้ว";
|
||||
default:
|
||||
return status;
|
||||
return "-";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -42,6 +43,8 @@ export const useIssueStore = defineStore("issue", () => {
|
|||
return "ระบบผู้ใช้งาน";
|
||||
case "CHECKIN":
|
||||
return "ระบบลงเวลา";
|
||||
default:
|
||||
return "-";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue