Merge branch 'razrab'
This commit is contained in:
commit
c066354892
10 files changed
+150
-40
No files matched your search
@@ -101,7 +101,7 @@
|
||||
</v-list-item>
|
||||
</v-window-item>
|
||||
</v-window>
|
||||
<v-divider class="border-opacity-50" color="teal-darken-4"></v-divider>
|
||||
<v-divider></v-divider>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</v-card>
|
||||
<v-card
|
||||
v-else class="h-100 w-100 d-flex justify-center flex-column"
|
||||
>
|
||||
:image="`${burl}/media/newsimage/2023/09/28/sea.jpg`">
|
||||
|
||||
<!-- <v-img
|
||||
:src="`${burl}/media/newsimage/2023/09/28/sea.jpg`"
|
||||
@@ -60,25 +60,26 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row >
|
||||
<v-col class="fiction flex-column d-flex align-self-center">
|
||||
<v-card-text class="flex-column align-self-center " v-if="changeData">
|
||||
<v-row>
|
||||
<v-col class="pr-0 pl-5">
|
||||
<!-- <v-col class="fiction flex-column d-flex align-self-center"> -->
|
||||
<v-card-text class="d-flex flex-column align-self-center " v-if="changeData">
|
||||
<!-- <v-row> -->
|
||||
<!-- <v-col class="pr-0"> -->
|
||||
<v-file-input
|
||||
|
||||
accept=".xlsx"
|
||||
v-model="dailyfiles"
|
||||
variant="underlined"
|
||||
density="compact"
|
||||
label="Выберите файл"
|
||||
label="Выберите ф-л"
|
||||
hide-details
|
||||
class="pt-2"
|
||||
class="pt-2 ml-0 text-white"
|
||||
/>
|
||||
</v-col>
|
||||
<!-- </v-col> -->
|
||||
|
||||
<v-col class="text-center">
|
||||
<!-- <v-col class="text-center"> -->
|
||||
<v-btn
|
||||
icon="mdi-google-play"
|
||||
class="align-self-center"
|
||||
icon="mdi-google-play text-white"
|
||||
size="x-large"
|
||||
variant="text"
|
||||
color="teal-darken-4"
|
||||
@@ -86,15 +87,15 @@
|
||||
@click="onPickFile"
|
||||
/>
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
<!-- </v-col> -->
|
||||
<!-- </v-row> -->
|
||||
</v-card-text>
|
||||
<v-card-text v-else>
|
||||
|
||||
<v-row class="text-h5 text-white text-center h-75" align-content="center">Данные не загружены </v-row>
|
||||
<v-row class="text-h5 text-white text-center h-100" align-content="center">Данные не загружены </v-row>
|
||||
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<!-- </v-col> -->
|
||||
</v-row>
|
||||
<!-- </v-img> -->
|
||||
|
||||
|
||||
@@ -1,7 +1,107 @@
|
||||
<template>
|
||||
|
||||
<!-- :rules="[val => (!!val && val.length > 0) || 'Добавьте файл']" -->
|
||||
<v-row class="justify-center align-center ma-3">
|
||||
<v-row>
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-row class="flex-grow-0 mhight">
|
||||
<v-col class=" flex-column d-flex">
|
||||
<v-row class="flex-grow-0 align-self-end">
|
||||
<v-col>
|
||||
<v-icon
|
||||
class="pt-2"
|
||||
icon="mdi-file-excel"
|
||||
color="green-darken-3"
|
||||
@click="excelOp('round')"
|
||||
/>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
<v-row>
|
||||
|
||||
<v-col>
|
||||
<v-file-input
|
||||
accept=".xlsx"
|
||||
v-model="dailyfiles"
|
||||
variant="underlined"
|
||||
density="compact"
|
||||
label="Выберите файл"
|
||||
hide-details
|
||||
class="mr-2"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="flex-grow-0 align-self-center mb-2">
|
||||
<v-icon
|
||||
icon="mdi-download"
|
||||
color="blue-grey-darken-2"
|
||||
@click="onPickFile"
|
||||
/>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
|
||||
|
||||
|
||||
</v-col>
|
||||
|
||||
<v-col class=" flex-column d-flex">
|
||||
<v-row class="flex-grow-0 align-self-end">
|
||||
<v-col>
|
||||
<v-icon
|
||||
class="pt-2"
|
||||
icon="mdi-file-excel"
|
||||
color="green-darken-3"
|
||||
@click="excelOp('vacation')"
|
||||
/>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
<v-row>
|
||||
|
||||
<v-col>
|
||||
<v-file-input
|
||||
accept=".xlsx"
|
||||
v-model="dailyfiles"
|
||||
variant="underlined"
|
||||
density="compact"
|
||||
label="Выберите файл"
|
||||
hide-details
|
||||
class="mr-2"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="flex-grow-0 align-self-center mb-2">
|
||||
<v-icon
|
||||
icon="mdi-download"
|
||||
color="blue-grey-darken-2"
|
||||
@click="onPickFile"
|
||||
/>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
|
||||
|
||||
|
||||
</v-col>
|
||||
<v-col></v-col>
|
||||
<v-col></v-col>
|
||||
<v-col></v-col>
|
||||
<v-col></v-col>
|
||||
</v-row>
|
||||
<!-- <v-row>
|
||||
<v-col v-for="(x) in 6" :key=x class=" flex-column d-flex">
|
||||
{{x}}
|
||||
</v-col>
|
||||
</v-row> -->
|
||||
</v-col>
|
||||
</v-row>
|
||||
<!-- <v-row class="flex-grow-0">
|
||||
<v-col class="bg-red">
|
||||
1
|
||||
</v-col>
|
||||
<v-col class="bg-yellow">
|
||||
2
|
||||
</v-col>
|
||||
</v-row> -->
|
||||
|
||||
|
||||
<!-- <v-row class="justify-center align-center ma-3">
|
||||
|
||||
<v-col cols="1" class="px-0 pt-5">
|
||||
|
||||
@@ -40,15 +140,10 @@
|
||||
color="blue-grey-darken-2"
|
||||
|
||||
@click="onPickFile"/>
|
||||
<!-- <v-btn
|
||||
icon="mdi-download"
|
||||
|
||||
color="blue-grey-darken-4"
|
||||
variant="plain"
|
||||
@click="onPickFile"/> -->
|
||||
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-row> -->
|
||||
|
||||
</template>
|
||||
|
||||
@@ -65,8 +160,8 @@ export default {
|
||||
const info = ref({})
|
||||
const t_dailyRound = ref('')
|
||||
const alert = ref(false)
|
||||
const excelOp = () => {
|
||||
axiosApiInstance.get(`api/general_vacation/dailyroundup/`).then(result => {
|
||||
const excelOp = (ex) => {
|
||||
axiosApiInstance.get(`api/general_vacation/dailyroundup/?excel=${ex}`).then(result => {
|
||||
let link = document.createElement("a")
|
||||
link.href = baseURL+result.data.path
|
||||
link.click()
|
||||
@@ -74,6 +169,10 @@ export default {
|
||||
})
|
||||
}
|
||||
|
||||
// const excelVacation = () => {
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -123,5 +222,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
.mhight {
|
||||
height: 150px;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user