Вывод на экран

This commit is contained in:
iriska-gri committed 2023-10-23 17:04:52 +03:00
1 parent b437bfa7b0
commit 30f0dee390
7 files changed
+56 -27

No files matched your search

+21 -3
View File
@@ -52,7 +52,10 @@
<v-row class="flex-grow-1 ma-0 mx-1">
<v-col class="pt-0">
<v-card class="h-100 flex-column">
{{t_daily}} kk
<!-- <my-helper :pretext = ''/> -->
<v-row v-for="x in stat" :key="x">
<v-col>
<v-card
@@ -62,7 +65,7 @@
elevation="0"
>
<v-card class="h-100 text-center g text-numeral bg-main_theme">
<v-card-title class="statstyle py-0 text-overline font-weight-bold bg-main_theme">
{{x.status}}
@@ -153,7 +156,7 @@
import { axiosApiInstance } from '@/utils/axios-api'
import CalendarFull from '@/components/UI/Calendar-full.vue'
import NewsListHome from '@/components/news-list-home.vue'
import {getfromserver} from '@/utils/universal_functions'
export default {
components: {
@@ -166,12 +169,14 @@
setup(){
const t_baseCriteria = ref([])
const t_daily = ref('')
onMounted(() => {
proba()
proba(),
dailyfun()
})
const appStore = useAppStore()
@@ -204,7 +209,19 @@
.then(data => {
t_baseCriteria.value = data.data.results
})
}
function dailyfun(){
// getfromserver(`api/general_vacation/dailyload/`, t_daily.value)
axiosApiInstance.get('api/general_vacation/dailyload/')
.then(data => {
console.log(data.data);
t_daily.value = data.data
})
}
return {
accountStore,
stat,
@@ -212,6 +229,7 @@
onlines,
appStore,
proba,
t_daily
}
}
}