รายการคำสั่ง ==> API
This commit is contained in:
parent
71be6d095f
commit
15b33b147a
14 changed files with 568 additions and 145 deletions
|
|
@ -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,
|
||||
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue