updated format code & eslint rule

This commit is contained in:
Warunee Tamkoo 2024-09-02 14:01:01 +07:00
parent 67c6810def
commit 8a31554f38
102 changed files with 6271 additions and 6164 deletions

View file

@ -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,
};
});