Page ตัวชี้วัด
This commit is contained in:
parent
233c577299
commit
546c56add7
5 changed files with 134 additions and 7 deletions
41
src/modules/14_KPI/components/indicatorByPlan/DetailView.vue
Normal file
41
src/modules/14_KPI/components/indicatorByPlan/DetailView.vue
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, reactive, onMounted } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
const $q = useQuasar();
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const {
|
||||
dialogConfirm,
|
||||
showLoader,
|
||||
hideLoader,
|
||||
messageError,
|
||||
success,
|
||||
date2Thai,
|
||||
calculateDurationYmd,
|
||||
} = useCounterMixin();
|
||||
const title = ref<string>(route.params.id ? "แก้ไข" : "เพิ่ม");
|
||||
|
||||
onMounted(() => {});
|
||||
</script>
|
||||
<template>
|
||||
<div class="toptitle text-dark col-12 row items-center">
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
dense
|
||||
class="q-mr-sm"
|
||||
icon="mdi-arrow-left"
|
||||
color="primary"
|
||||
@click="router.go(-1)"
|
||||
/>
|
||||
{{ `${title}คัวชี้วัดตามแผนปฏิบัติราชการประจำปี` }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
41
src/modules/14_KPI/components/indicatorByRole/DetailView.vue
Normal file
41
src/modules/14_KPI/components/indicatorByRole/DetailView.vue
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, reactive, onMounted } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
const $q = useQuasar();
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const {
|
||||
dialogConfirm,
|
||||
showLoader,
|
||||
hideLoader,
|
||||
messageError,
|
||||
success,
|
||||
date2Thai,
|
||||
calculateDurationYmd,
|
||||
} = useCounterMixin();
|
||||
const title = ref<string>(route.params.id ? "แก้ไข" : "เพิ่ม");
|
||||
|
||||
onMounted(() => {});
|
||||
</script>
|
||||
<template>
|
||||
<div class="toptitle text-dark col-12 row items-center">
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
dense
|
||||
class="q-mr-sm"
|
||||
icon="mdi-arrow-left"
|
||||
color="primary"
|
||||
@click="router.go(-1)"
|
||||
/>
|
||||
{{ `${title}คัวชี้วัดตามหน้าที่ความรับผิดชอบ` }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
|
|
@ -1,10 +1,15 @@
|
|||
const roundPage = () => import("@/modules/14_KPI/views/round.vue");
|
||||
const IndicatorByPlan = () =>
|
||||
import("@/modules/14_KPI/views/indicatorByPlan.vue");
|
||||
const IndicatorByPlanDetail = () =>
|
||||
import("@/modules/14_KPI/components/indicatorByPlan/DetailView.vue");
|
||||
const IndicatorByRole = () =>
|
||||
import("@/modules/14_KPI/views/indicatorByRole.vue");
|
||||
const IndicatorByRoleDetail = () =>
|
||||
import("@/modules/14_KPI/components/indicatorByRole/DetailView.vue");
|
||||
const competencyPage = () => import("@/modules/14_KPI/views/competency.vue");
|
||||
const competencyAddPage = () => import("@/modules/14_KPI/components/competency/AddPage.vue");
|
||||
const competencyAddPage = () =>
|
||||
import("@/modules/14_KPI/components/competency/AddPage.vue");
|
||||
|
||||
export default [
|
||||
{
|
||||
|
|
@ -27,6 +32,26 @@ export default [
|
|||
Role: "evaluateKPI",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/KPI-indicator-plan/add",
|
||||
name: "KPIIndicatorByPlan/Add",
|
||||
component: IndicatorByPlanDetail,
|
||||
meta: {
|
||||
Auth: true,
|
||||
Key: [1.1],
|
||||
Role: "evaluateKPI",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/KPI-indicator-plan/:id",
|
||||
name: "KPIIndicatorByPlanByid",
|
||||
component: IndicatorByPlanDetail,
|
||||
meta: {
|
||||
Auth: true,
|
||||
Key: [1.1],
|
||||
Role: "evaluateKPI",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/KPI-indicator-role",
|
||||
name: "KPIIndicatorByRole",
|
||||
|
|
@ -37,6 +62,26 @@ export default [
|
|||
Role: "evaluateKPI",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/KPI-indicator-role/add",
|
||||
name: "KPIIndicatorByRoleAdd",
|
||||
component: IndicatorByRoleDetail,
|
||||
meta: {
|
||||
Auth: true,
|
||||
Key: [1.1],
|
||||
Role: "evaluateKPI",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/KPI-indicator-role/:id",
|
||||
name: "KPIIndicatorByRoleByid",
|
||||
component: IndicatorByRoleDetail,
|
||||
meta: {
|
||||
Auth: true,
|
||||
Key: [1.1],
|
||||
Role: "evaluateKPI",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/KPI-competency",
|
||||
name: "KPICompetency",
|
||||
|
|
|
|||
|
|
@ -89,9 +89,9 @@ function fetchList() {
|
|||
}
|
||||
|
||||
function onClickAddOrView(status: boolean = false, id: string = "") {
|
||||
// status
|
||||
// ? router.push(`/development/scholarship/${id}`)
|
||||
// : router.push("/development/scholarship/add");
|
||||
status
|
||||
? router.push(`/KPI-indicator-plan/${id}`)
|
||||
: router.push("/KPI-indicator-plan/add");
|
||||
}
|
||||
|
||||
function onClickDelete(id: number) {
|
||||
|
|
|
|||
|
|
@ -89,9 +89,9 @@ function fetchList() {
|
|||
}
|
||||
|
||||
function onClickAddOrView(status: boolean = false, id: string = "") {
|
||||
// status
|
||||
// ? router.push(`/development/scholarship/${id}`)
|
||||
// : router.push("/development/scholarship/add");
|
||||
status
|
||||
? router.push(`/KPI-indicator-role/${id}`)
|
||||
: router.push("/KPI-indicator-role/add");
|
||||
}
|
||||
|
||||
function onClickDelete(id: number) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue