DetailView ตามแผน

This commit is contained in:
oat_dev 2024-04-19 14:33:48 +07:00
parent 7f0411e710
commit 3689cbae28

View file

@ -6,7 +6,7 @@ import http from "@/plugins/http";
import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin";
import IndicatorByPlan from "@/modules/14_KPI/components/indicatorByPlan/indicatorByPlan.vue";
import IndicatorByPlan from "@/modules/14_KPI/components/indicatorByPlan/IndicatorByPlan.vue";
const $q = useQuasar();
const router = useRouter();
@ -22,7 +22,25 @@ const {
} = useCounterMixin();
const title = ref<string>(route.params.id ? "แก้ไข" : "เพิ่ม");
onMounted(() => {});
async function fetchData() {
showLoader();
await http
.get(config.API.kpiPlan)
.then(async (res) => {
console.log(res.data.result);
console.log("test");
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
onMounted(async () => {
await fetchData();
});
</script>
<template>
<div class="toptitle text-dark col-12 row items-center">