validateForm เพิ่มเรื่องร้องเรียน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-10-18 14:41:11 +07:00
parent dd89933261
commit b00a946c64
8 changed files with 302 additions and 62 deletions

View file

@ -8,8 +8,9 @@ import { useOrderStore } from "../../stroes/OrderStore";
const router = useRouter();
const OrderStore = useOrderStore();
const { fecthOrder } = OrderStore;
const { fecthOrder } = OrderStore; // function stores
// table
const columns = ref<QTableProps["columns"]>([
{
name: "subject",
@ -74,13 +75,13 @@ const visibleColumns = ref<string[]>([
"signer",
"statusorder",
]);
const filterTable = ref<string>("");
onMounted(async () => {
await fecthListOrder();
});
// API
async function fecthListOrder() {
const listData = [
{
@ -108,9 +109,10 @@ async function fecthListOrder() {
statusorder: "เสร็จสิ้นแล้ว",
},
];
await fecthOrder(listData);
await fecthOrder(listData); // stores
}
// redirect
function redirectToPageadd() {
router.push(`/discipline-order/add`);
}