fix commit

This commit is contained in:
Alex committed 2024-03-18 09:54:36 +03:00
1 parent 5ac653d8f1
commit 7f4f8a6b16
2 files changed
+7 -5

No files matched your search

@@ -61,14 +61,16 @@
</v-row>
<v-row class="ma-0 overflow-auto h-0">
<v-card class="overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
<v-card-title>{{ responsibilityData.name.replace(/\.[^/.]+$/, "") }}</v-card-title>
<v-card-title>{{ responsibilityData.name }}</v-card-title>
<v-container
v-for="file in responsibilityData.files"
:fluid="true"
class="py-0">
<v-card-actions :key="file.id">
<v-card-text>{{ file.file_name }}</v-card-text>
<v-card-text>{{ file.file_name.replace(/\.[^/.]+$/, "") }}</v-card-text>
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(burl + file.url), loading=true"></v-btn>
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(burl + file.file_name, file.file_name)"></v-btn>
<!-- @click="downloadItem(burl + file.file_name, file.file_name)" -->
</v-card-actions>
</v-container>
</v-card>
@@ -76,7 +78,7 @@
</v-card>
</v-col>
<v-col>
<v-card class="h-100 flex-column d-flex gap">
<!-- <v-card class="h-100 flex-column d-flex gap">
<v-row class="ma-0 overflow-auto h-0">
<v-card v-show="showFile" class="mr-2 flex-grow-1 flex-shrink-1 h-100 pa-2 overflow-auto">
<v-container v-if="loading">
@@ -95,7 +97,7 @@
block
@click="showFile = false">Закрыть</v-btn>
</v-card-actions>
</v-card>
</v-card> -->
</v-col>
</v-row>
</v-window-item>
@@ -141,7 +143,6 @@ function getSafety() {
function getResponsibility() {
axiosApiInstance.get(`api/safety/committee_files/`).then(result => {
responsibilityData.value = result.data
console.log(responsibilityData.value);
})
}
@@ -131,6 +131,7 @@ const responsibility = ref([])
function getResponsibility() {
axiosApiInstance.get(`api/safety/responsibility/`).then(result => {
responsibility.value = result.data.users
console.log(responsibility.value);
})
}