แก้ไขชื่อไฟล์ อัพเดท route
This commit is contained in:
parent
ce65ff556c
commit
8db325f75c
3 changed files with 15 additions and 9 deletions
|
|
@ -224,7 +224,9 @@ import type { DataOption } from "@/modules/05_placement/interface/index/Main";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { usePlacementDataStore } from "@/modules/05_placement/store";
|
import { usePlacementDataStore } from "@/modules/05_placement/store";
|
||||||
import router from "@/router";
|
import router from "@/router";
|
||||||
|
import { useQuasar } from "quasar";
|
||||||
|
|
||||||
|
const $q = useQuasar(); //ใช้ noti quasar
|
||||||
const DataStore = usePlacementDataStore();
|
const DataStore = usePlacementDataStore();
|
||||||
const pagination = ref({
|
const pagination = ref({
|
||||||
sortBy: "desc",
|
sortBy: "desc",
|
||||||
|
|
@ -499,10 +501,10 @@ const OriginalDataFetch = async () => {
|
||||||
UpdataData.value = OriginalData.value;
|
UpdataData.value = OriginalData.value;
|
||||||
};
|
};
|
||||||
|
|
||||||
// ดูรายการสอบแข่งขัน หน้าต่อไป
|
// ดูรายการหน้าต่อไป
|
||||||
const redirectToPage = (id?: number) => {
|
const redirectToPage = (id?: number) => {
|
||||||
// router.push({ name: 'placementDetail'});
|
// router.push({ name: 'placementDetail'});
|
||||||
router.push(`/orderPlacement/detail`);
|
// router.push(`/orderPlacement/detail`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const clickDelete = (id: string) => {
|
const clickDelete = (id: string) => {
|
||||||
|
|
@ -539,7 +541,7 @@ const clickDelete = (id: string) => {
|
||||||
// };
|
// };
|
||||||
|
|
||||||
const clickAdd = () => {
|
const clickAdd = () => {
|
||||||
router.push({ name: "addOrderReplace" });
|
router.push({ name: "addOrderPlacement" });
|
||||||
};
|
};
|
||||||
|
|
||||||
// เลือกปีงบประมาณ
|
// เลือกปีงบประมาณ
|
||||||
|
|
@ -10,10 +10,14 @@ const MainOther = () =>
|
||||||
import("@/modules/05_placement/components/exams_other/Main.vue");
|
import("@/modules/05_placement/components/exams_other/Main.vue");
|
||||||
const Placement2Detail = () =>
|
const Placement2Detail = () =>
|
||||||
import("@/modules/05_placement/components/exams_other/Detail.vue");
|
import("@/modules/05_placement/components/exams_other/Detail.vue");
|
||||||
const addOrderReplace = () =>
|
const addOrderPlacement = () =>
|
||||||
import("@/modules/05_placement/components/OrderReplace/addOrderReplace.vue");
|
import(
|
||||||
|
"@/modules/05_placement/components/OrderPlacement/addOrderPlacement.vue"
|
||||||
|
);
|
||||||
const MainOrderPlacement = () =>
|
const MainOrderPlacement = () =>
|
||||||
import("@/modules/05_placement/components/OrderReplace/MainOrderReplace.vue");
|
import(
|
||||||
|
"@/modules/05_placement/components/OrderPlacement/MainOrderPlacement.vue"
|
||||||
|
);
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
path: "/placement/Sorkorcho",
|
path: "/placement/Sorkorcho",
|
||||||
|
|
@ -66,9 +70,9 @@ export default [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/placement/addOrderReplace",
|
path: "/placement/addOrderPlacement",
|
||||||
name: "addOrderReplace",
|
name: "addOrderPlacement",
|
||||||
component: addOrderReplace,
|
component: addOrderPlacement,
|
||||||
meta: {
|
meta: {
|
||||||
Auth: true,
|
Auth: true,
|
||||||
Key: [8],
|
Key: [8],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue