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.
|
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>
|
||||
<v-row class="justify-center">
|
||||
|
||||
<v-col cols="12"
|
||||
class="text-h6 text-grey text-center d-flex align-baseline align-self-center text--lighten-1 font-weight-light"
|
||||
>
|
||||
|
||||
<!-- :rules="[val => (!!val && val.length > 0) || 'Добавьте файл']" -->
|
||||
<v-row class="justify-center align-center ma-3">
|
||||
|
||||
<v-col cols="1" class="px-0 pt-5">
|
||||
|
||||
<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>
|
||||
<my-helper :pretext="info.mess"/>
|
||||
<v-icon icon="mdi-file-excel"
|
||||
|
||||
color="green-darken-3"
|
||||
|
||||
@click="excelOp"/>
|
||||
|
||||
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
cols="10"
|
||||
class="text-h6 text-grey text-center d-flex align-baseline align-self-center text--lighten-1 font-weight-light px-0"
|
||||
>
|
||||
|
||||
<v-file-input
|
||||
|
||||
accept=".xlsx"
|
||||
v-model="dailyfiles"
|
||||
variant="underlined"
|
||||
density="compact"
|
||||
label="Выберите файл"
|
||||
hide-details
|
||||
class="mr-2"/>
|
||||
|
||||
|
||||
|
||||
|
||||
</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-row>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -48,6 +64,7 @@ export default {
|
||||
const visiting = ref({})
|
||||
const info = ref({})
|
||||
const t_dailyRound = ref('')
|
||||
const alert = ref(false)
|
||||
const excelOp = () => {
|
||||
axiosApiInstance.get(`api/general_vacation/dailyroundup/`).then(result => {
|
||||
let link = document.createElement("a")
|
||||
@@ -68,6 +85,7 @@ export default {
|
||||
})
|
||||
showInfo.value = true
|
||||
dailyfiles.value = ''
|
||||
alert.value = true
|
||||
|
||||
|
||||
}
|
||||
@@ -94,7 +112,8 @@ export default {
|
||||
info,
|
||||
detailRound,
|
||||
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">
|
||||
<div>
|
||||
<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>
|
||||
</v-main>
|
||||
<v-navigation-drawer v-if="accountStore.cod2user"
|
||||
|
||||
@@ -98,20 +98,21 @@
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
icon="mdi-download"
|
||||
|
||||
color="teal-darken-2"
|
||||
v-bind="props"
|
||||
>
|
||||
Загрузить
|
||||
</v-btn>
|
||||
variant="plain"
|
||||
v-bind="props"/>
|
||||
|
||||
</template>
|
||||
<v-card>
|
||||
<v-card-title>
|
||||
<span class="text-h5">Загрузить файл</span>
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<v-container>
|
||||
|
||||
<load-round/>
|
||||
</v-container>
|
||||
|
||||
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -157,7 +158,7 @@
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<my-helper :pretext="t_daily.length"/>
|
||||
<!-- <my-helper :pretext="t_daily.length"/> -->
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
@@ -1,134 +1,22 @@
|
||||
<template>
|
||||
<v-container class="my-auto">
|
||||
<v-row justify="center">
|
||||
<!-- <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>
|
||||
|
||||
<load-round/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
import {getfromserver} from '@/utils/universal_functions'
|
||||
import { axiosApiInstance } from '@/utils/axios-api'
|
||||
import LoadRound from '@/components/load-round.vue'
|
||||
|
||||
|
||||
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()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const onPickFile = () => {
|
||||
|
||||
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 = ''
|
||||
|
||||
|
||||
}
|
||||
components: {
|
||||
LoadRound
|
||||
},
|
||||
|
||||
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>
|
||||
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
Reference in new issue
Block a user