update route registry-employee

This commit is contained in:
AnandaTon 2023-07-07 09:29:17 +07:00
parent bdc7ab8df3
commit ed1c7cc5b4
3 changed files with 12 additions and 3 deletions

View file

@ -568,6 +568,14 @@ const clickAdd = () => {
router.push({ name: "OrderplacementDetail" }); router.push({ name: "OrderplacementDetail" });
}; };
// const viewDetail = (id: string, status: string) => {
// if (status == "checkPayment") {
// router.push(`${route.fullPath}/payment/${id}`);
// } else {
// router.push(`${route.fullPath}/profile/${id}`);
// }
// };
// //
const fiscalyear = ref<number | null>(0); const fiscalyear = ref<number | null>(0);
const fiscalyearOP = reactive<DataOption[]>([{ id: 0, name: "ทั้งหมด" }]); const fiscalyearOP = reactive<DataOption[]>([{ id: 0, name: "ทั้งหมด" }]);

View file

@ -8,7 +8,7 @@ const Main = () => import("@/modules/08_registryEmployee/views/Main.vue");
export default [ export default [
{ {
path: "/registryEmployee", path: "/registry-employee",
name: "registryEmployee", name: "registryEmployee",
component: Main, component: Main,
meta: { meta: {

View file

@ -112,7 +112,7 @@
dense dense
> >
<q-menu transition-show="jump-down" transition-hide="jump-up"> <q-menu transition-show="jump-down" transition-hide="jump-up">
<q-list dense style="min-width: 100px"> <q-list dense style="min-width: 150px">
<q-item <q-item
clickable clickable
v-close-popup v-close-popup
@ -166,6 +166,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted } from "vue"; import { ref, onMounted } from "vue";
import router from "@/router";
import { useQuasar } from "quasar"; import { useQuasar } from "quasar";
import { useCounterMixin } from "@/stores/mixin"; import { useCounterMixin } from "@/stores/mixin";
import type { QInput, QForm } from "quasar"; import type { QInput, QForm } from "quasar";
@ -528,7 +529,7 @@ const clickClose = async () => {
}; };
const clickAdd = () => { const clickAdd = () => {
modal.value = true; router.push({ name: "" });
}; };
const clickDelete = (id: string) => { const clickDelete = (id: string) => {