hh
This commit is contained in:
1 parent
c8baded90b
commit
b8b135ba19
8 files changed
+92
-159
No files matched your search
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 490 KiB After Width: | Height: | Size: 726 KiB |
@@ -0,0 +1,25 @@
|
|||||||
|
<template>
|
||||||
|
<v-alert
|
||||||
|
v-model="alert"
|
||||||
|
border="start"
|
||||||
|
variant="tonal"
|
||||||
|
closable
|
||||||
|
close-label="Close Alert"
|
||||||
|
color="deep-purple-accent-4"
|
||||||
|
title="Closable Alert"
|
||||||
|
>
|
||||||
|
Aenean imperdiet. Quisque id odio. Cras dapibus. Pellentesque ut neque. Cras dapibus.
|
||||||
|
|
||||||
|
Vivamus consectetuer hendrerit lacus. Sed mollis, eros et ultrices tempus, mauris ipsum aliquam libero, non adipiscing dolor urna a orci. Sed mollis, eros et ultrices tempus, mauris ipsum aliquam libero, non adipiscing dolor urna a orci. Curabitur blandit mollis lacus. Curabitur ligula sapien, tincidunt non, euismod vitae, posuere imperdiet, leo.
|
||||||
|
</v-alert>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -1,39 +1,55 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-row class="justify-center">
|
|
||||||
|
<!-- :rules="[val => (!!val && val.length > 0) || 'Добавьте файл']" -->
|
||||||
<v-col cols="12"
|
<v-row class="justify-center align-center ma-3">
|
||||||
class="text-h6 text-grey text-center d-flex align-baseline align-self-center text--lighten-1 font-weight-light"
|
|
||||||
>
|
<v-col cols="1" class="px-0 pt-5">
|
||||||
|
|
||||||
<v-btn
|
<my-helper :pretext="info.mess"/>
|
||||||
|
<v-icon icon="mdi-file-excel"
|
||||||
class="mr-2"
|
|
||||||
color="modal_btn"
|
color="green-darken-3"
|
||||||
@click="excelOp"
|
|
||||||
>
|
@click="excelOp"/>
|
||||||
Скачать
|
|
||||||
</v-btn>
|
|
||||||
|
</v-col>
|
||||||
<!-- <v-spacer></v-spacer> -->
|
|
||||||
<v-file-input
|
<v-col
|
||||||
:rules="[val => (!!val && val.length > 0) || 'Добавьте файл']"
|
cols="10"
|
||||||
accept=".xlsx"
|
class="text-h6 text-grey text-center d-flex align-baseline align-self-center text--lighten-1 font-weight-light px-0"
|
||||||
v-model="dailyfiles"
|
>
|
||||||
variant="underlined"
|
|
||||||
density="compact"
|
<v-file-input
|
||||||
label="Выберите файл"
|
|
||||||
class="mr-2"></v-file-input>
|
accept=".xlsx"
|
||||||
|
v-model="dailyfiles"
|
||||||
<!-- <v-spacer></v-spacer> -->
|
variant="underlined"
|
||||||
<v-btn
|
density="compact"
|
||||||
color="modal_btn"
|
label="Выберите файл"
|
||||||
@click="onPickFile">
|
hide-details
|
||||||
Загрузить
|
class="mr-2"/>
|
||||||
</v-btn>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="1" class="px-0 pb-0 pt-7">
|
||||||
|
<v-icon icon="mdi-download"
|
||||||
|
|
||||||
|
color="blue-grey-darken-2"
|
||||||
|
|
||||||
|
@click="onPickFile"/>
|
||||||
|
<!-- <v-btn
|
||||||
|
icon="mdi-download"
|
||||||
|
|
||||||
|
color="blue-grey-darken-4"
|
||||||
|
variant="plain"
|
||||||
|
@click="onPickFile"/> -->
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -48,6 +64,7 @@ export default {
|
|||||||
const visiting = ref({})
|
const visiting = ref({})
|
||||||
const info = ref({})
|
const info = ref({})
|
||||||
const t_dailyRound = ref('')
|
const t_dailyRound = ref('')
|
||||||
|
const alert = ref(false)
|
||||||
const excelOp = () => {
|
const excelOp = () => {
|
||||||
axiosApiInstance.get(`api/general_vacation/dailyroundup/`).then(result => {
|
axiosApiInstance.get(`api/general_vacation/dailyroundup/`).then(result => {
|
||||||
let link = document.createElement("a")
|
let link = document.createElement("a")
|
||||||
@@ -68,6 +85,7 @@ export default {
|
|||||||
})
|
})
|
||||||
showInfo.value = true
|
showInfo.value = true
|
||||||
dailyfiles.value = ''
|
dailyfiles.value = ''
|
||||||
|
alert.value = true
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -94,7 +112,8 @@ export default {
|
|||||||
info,
|
info,
|
||||||
detailRound,
|
detailRound,
|
||||||
t_dailyRound,
|
t_dailyRound,
|
||||||
showInfo
|
showInfo,
|
||||||
|
alert
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -267,7 +267,7 @@
|
|||||||
<v-main v-else class="d-flex justify-center align-center text-h3 bg-teal-lighten-2">
|
<v-main v-else class="d-flex justify-center align-center text-h3 bg-teal-lighten-2">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-center">Добро пожаловать на портал МИ ФНС по ЦОД № 2</p>
|
<p class="text-center">Добро пожаловать на портал МИ ФНС по ЦОД № 2</p>
|
||||||
<p class="mt-3 text-subtitle-1 text-center">Авторизуйтесь, для получения доступа к контенту портала</p>
|
<p class="mt-3 text-subtitle-1 text-center">Авторизуйтесь для получения доступа к контенту портала</p>
|
||||||
</div>
|
</div>
|
||||||
</v-main>
|
</v-main>
|
||||||
<v-navigation-drawer v-if="accountStore.cod2user"
|
<v-navigation-drawer v-if="accountStore.cod2user"
|
||||||
|
|||||||
@@ -98,20 +98,21 @@
|
|||||||
>
|
>
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-btn
|
<v-btn
|
||||||
|
icon="mdi-download"
|
||||||
|
|
||||||
color="teal-darken-2"
|
color="teal-darken-2"
|
||||||
v-bind="props"
|
variant="plain"
|
||||||
>
|
v-bind="props"/>
|
||||||
Загрузить
|
|
||||||
</v-btn>
|
|
||||||
</template>
|
</template>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>
|
<v-card-title>
|
||||||
<span class="text-h5">Загрузить файл</span>
|
<span class="text-h5">Загрузить файл</span>
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-container>
|
|
||||||
<load-round/>
|
<load-round/>
|
||||||
</v-container>
|
|
||||||
|
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
@@ -157,7 +158,7 @@
|
|||||||
</v-btn>
|
</v-btn>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<my-helper :pretext="t_daily.length"/>
|
<!-- <my-helper :pretext="t_daily.length"/> -->
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|||||||
@@ -1,134 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-container class="my-auto">
|
|
||||||
<v-row justify="center">
|
<load-round/>
|
||||||
<!-- <v-alert
|
|
||||||
class="d-flex align-self-center"
|
|
||||||
v-model="showInfo"
|
|
||||||
:border="'start'"
|
|
||||||
variant="tonal"
|
|
||||||
type="info"
|
|
||||||
max-width="max-content"
|
|
||||||
closable>{{ info.mess }}
|
|
||||||
</v-alert> -->
|
|
||||||
<!-- v-if="!showInfo" -->
|
|
||||||
<v-col cols="7"
|
|
||||||
class="text-h6 text-grey text-center d-flex align-baseline align-self-center text--lighten-1 font-weight-light"
|
|
||||||
>
|
|
||||||
{{t_dailyRound}}
|
|
||||||
|
|
||||||
<v-btn class="mr-2" @click="detailRound">
|
|
||||||
Уточнение
|
|
||||||
</v-btn>
|
|
||||||
<v-btn
|
|
||||||
|
|
||||||
class="mr-2"
|
|
||||||
color="modal_btn"
|
|
||||||
@click="excelOp"
|
|
||||||
>
|
|
||||||
Скачать
|
|
||||||
</v-btn>
|
|
||||||
|
|
||||||
<!-- <v-spacer></v-spacer> -->
|
|
||||||
<v-file-input
|
|
||||||
:rules="[val => (!!val && val.length > 0) || 'Добавьте файл']"
|
|
||||||
accept=".xlsx"
|
|
||||||
v-model="dailyfiles"
|
|
||||||
variant="underlined"
|
|
||||||
density="compact"
|
|
||||||
label="Выберите файл"
|
|
||||||
class="mr-2"></v-file-input>
|
|
||||||
|
|
||||||
<!-- <v-spacer></v-spacer> -->
|
|
||||||
<v-btn
|
|
||||||
color="modal_btn"
|
|
||||||
@click="onPickFile">
|
|
||||||
Загрузить
|
|
||||||
</v-btn>
|
|
||||||
|
|
||||||
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
<v-row justify="center">
|
|
||||||
<v-col cols="2">
|
|
||||||
<v-alert
|
|
||||||
v-model="showInfo"
|
|
||||||
:border="'start'"
|
|
||||||
variant="tonal"
|
|
||||||
type="info"
|
|
||||||
width="max-content"
|
|
||||||
closable>
|
|
||||||
{{ info.mess }}
|
|
||||||
</v-alert>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
</v-container>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { ref } from 'vue'
|
import LoadRound from '@/components/load-round.vue'
|
||||||
import { baseURL } from '@/utils/axios-api'
|
|
||||||
import {getfromserver} from '@/utils/universal_functions'
|
|
||||||
import { axiosApiInstance } from '@/utils/axios-api'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
setup(){
|
|
||||||
const dailyfiles = ref('')
|
|
||||||
const visiting = ref({})
|
|
||||||
const info = ref({})
|
|
||||||
const t_dailyRound = ref('')
|
|
||||||
const excelOp = () => {
|
|
||||||
axiosApiInstance.get(`api/general_vacation/dailyroundup/`).then(result => {
|
|
||||||
let link = document.createElement("a")
|
|
||||||
link.href = baseURL+result.data.path
|
|
||||||
link.click()
|
|
||||||
link.remove()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
components: {
|
||||||
const onPickFile = () => {
|
LoadRound
|
||||||
|
},
|
||||||
const sdata = new FormData()
|
|
||||||
sdata.append('dailyfiles', dailyfiles.value[0])
|
|
||||||
axiosApiInstance.post(`api/general_vacation/dailyroundup/`, sdata).then(result => {
|
|
||||||
info.value = result.data
|
|
||||||
console.log(result.data, '----------------')
|
|
||||||
})
|
|
||||||
showInfo.value = true
|
|
||||||
dailyfiles.value = ''
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
const detailRound = () => {
|
|
||||||
|
|
||||||
axiosApiInstance.get(`api/general_vacation/dailyload/?id=6`)
|
|
||||||
.then(data => {
|
|
||||||
console.log(data.data);
|
|
||||||
|
|
||||||
t_dailyRound.value = data.data
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
const showInfo = ref(false)
|
|
||||||
|
|
||||||
return {
|
|
||||||
visiting,
|
|
||||||
excelOp,
|
|
||||||
baseURL,
|
|
||||||
dailyfiles,
|
|
||||||
onPickFile,
|
|
||||||
info,
|
|
||||||
detailRound,
|
|
||||||
t_dailyRound,
|
|
||||||
showInfo
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
Binary file not shown.
Reference in new issue
Block a user