รายการคำสั่ง ==> API

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-12 17:11:00 +07:00
parent 71be6d095f
commit 15b33b147a
14 changed files with 568 additions and 145 deletions

View file

@ -3,6 +3,7 @@ import { defineStore } from "pinia";
export const useCommandDetail = defineStore("commandDetailStore", () => {
const readonly = ref<boolean>(false);
const isChangeData = ref<boolean>(false);
const classInput = (val: boolean) => {
return {
@ -14,5 +15,6 @@ export const useCommandDetail = defineStore("commandDetailStore", () => {
return {
classInput,
readonly,
};
});

View file

@ -1,12 +1,18 @@
import { defineStore } from "pinia";
import { ref } from "vue";
import type { DataListCommand } from "@/modules/18_command/interface/response/Main";
export const useCommandListStore = defineStore("commandListStore", () => {
const tabsMain = ref<string>("list_draft");
const rows = ref<any[]>([]);
const tabsMain = ref<string>("DRAFT");
const rows = ref<DataListCommand[]>([]);
const total = ref<number>(0);
const maxPage = ref<number>(0);
return {
tabsMain,
rows,
total,
maxPage,
};
});