updated format code & eslint rule
This commit is contained in:
parent
67c6810def
commit
8a31554f38
102 changed files with 6271 additions and 6164 deletions
|
|
@ -1,15 +1,16 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref } from 'vue'
|
||||
import { ref } from "vue";
|
||||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import type { DataOption } from "@/modules/07_appealComplain/interface/index/main";
|
||||
import type { QTableProps } from "quasar";
|
||||
import type { RowList, MainList } from '@/modules/07_appealComplain/interface/response/mainType'
|
||||
import type {
|
||||
RowList,
|
||||
MainList,
|
||||
} from "@/modules/07_appealComplain/interface/response/mainType";
|
||||
export const useAppealComplainStore = defineStore("appealComplainStore", () => {
|
||||
|
||||
|
||||
const mixin = useCounterMixin()
|
||||
const { date2Thai } = mixin
|
||||
const mixin = useCounterMixin();
|
||||
const { date2Thai } = mixin;
|
||||
|
||||
const rows = ref<RowList[]>([]);
|
||||
const visibleColumns = ref<string[]>([]);
|
||||
|
|
@ -53,11 +54,11 @@ export const useAppealComplainStore = defineStore("appealComplainStore", () => {
|
|||
rows.value = dataList;
|
||||
}
|
||||
|
||||
/**
|
||||
* แปลงข้อมูลที่รับมา เป็น text
|
||||
* @param val status
|
||||
* @returns ส่งค่าที่แปลง ออกไป
|
||||
*/
|
||||
/**
|
||||
* แปลงข้อมูลที่รับมา เป็น text
|
||||
* @param val status
|
||||
* @returns ส่งค่าที่แปลง ออกไป
|
||||
*/
|
||||
const typeConvert = (val: string) => {
|
||||
switch (val) {
|
||||
case "APPEAL":
|
||||
|
|
@ -74,7 +75,7 @@ export const useAppealComplainStore = defineStore("appealComplainStore", () => {
|
|||
* @param val status
|
||||
* @returns ส่งค่าที่แปลง ออกไป
|
||||
*/
|
||||
function statusTothai(val: string){
|
||||
function statusTothai(val: string) {
|
||||
switch (val) {
|
||||
case "NEW":
|
||||
return "ใหม่";
|
||||
|
|
@ -93,7 +94,7 @@ export const useAppealComplainStore = defineStore("appealComplainStore", () => {
|
|||
default:
|
||||
return "-";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
visibleColumns,
|
||||
|
|
@ -102,7 +103,6 @@ export const useAppealComplainStore = defineStore("appealComplainStore", () => {
|
|||
rows,
|
||||
typeOptions,
|
||||
statusOptions,
|
||||
statusTothai
|
||||
|
||||
statusTothai,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue