P-28-feat:create display user-list resp
This commit is contained in:
1 parent
77f11e8ff3
commit
6a2786897a
2 files changed
+23
-16
No files matched your search
@@ -4,6 +4,7 @@
|
|||||||
<v-window-item class="gap h-100" value="mainInfo">
|
<v-window-item class="gap h-100" value="mainInfo">
|
||||||
<MainInfoSafety
|
<MainInfoSafety
|
||||||
:formainpage="safetyData.mainpage_file"
|
:formainpage="safetyData.mainpage_file"
|
||||||
|
:responsibility="safetyData.type_resp"
|
||||||
></MainInfoSafety>
|
></MainInfoSafety>
|
||||||
</v-window-item>
|
</v-window-item>
|
||||||
<v-window-item class="gap h-100" value="document">
|
<v-window-item class="gap h-100" value="document">
|
||||||
@@ -17,7 +18,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { ref } from "vue";
|
import { ref, onMounted, onUpdated } from "vue";
|
||||||
|
|
||||||
import { pagecounter } from "@/utils/universal_functions";
|
import { pagecounter } from "@/utils/universal_functions";
|
||||||
import PatternTabs from "@/components/UI/PatternTabs.vue";
|
import PatternTabs from "@/components/UI/PatternTabs.vue";
|
||||||
@@ -52,7 +53,8 @@ export default {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
getSafety();
|
onMounted(() => getSafety())
|
||||||
|
onUpdated(() => getSafety())
|
||||||
|
|
||||||
return {
|
return {
|
||||||
safetyData,
|
safetyData,
|
||||||
|
|||||||
@@ -18,19 +18,30 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="w100">
|
<v-col class="w100">
|
||||||
<v-card class="h-100 d-flex flex-column">
|
<v-card class="h-100 d-flex flex-column">
|
||||||
<v-card-title class="text-wrap">Ответственные за противопожарную безопасность</v-card-title>
|
<!-- <v-card-title class="text-wrap">Ответственные за противопожарную безопасность</v-card-title> -->
|
||||||
<v-row class="ma-0 overflow-auto h-0">
|
<v-row class="ma-0 overflow-auto h-0">
|
||||||
<v-card class="pa-1 overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
<v-card class="pa-1 overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||||
|
<v-expansion-panels multiple flat>
|
||||||
<div v-for="x in responsibility">
|
<v-expansion-panel v-for="item in responsibility" elevation=0>
|
||||||
|
<v-expansion-panel-title class="font-weight-medium">
|
||||||
|
{{ item.resp.name }}
|
||||||
|
</v-expansion-panel-title>
|
||||||
|
<v-expansion-panel-text>
|
||||||
|
<list-user
|
||||||
|
v-for="user in item.resp.employee"
|
||||||
|
:key=user
|
||||||
|
:author="user">
|
||||||
|
</list-user>
|
||||||
|
</v-expansion-panel-text>
|
||||||
|
</v-expansion-panel>
|
||||||
|
</v-expansion-panels>
|
||||||
|
<!-- <div v-for="x in responsibility">
|
||||||
<list-user
|
<list-user
|
||||||
v-for="item in x.resp.employee"
|
v-for="item in x.resp.employee"
|
||||||
:key=item
|
:key=item
|
||||||
:author="item">
|
:author="item">
|
||||||
</list-user>
|
</list-user>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
@@ -76,17 +87,11 @@ import { ref } from 'vue';
|
|||||||
import VuePdfEmbed from 'vue-pdf-embed';
|
import VuePdfEmbed from 'vue-pdf-embed';
|
||||||
import { saveAs } from 'file-saver';
|
import { saveAs } from 'file-saver';
|
||||||
|
|
||||||
defineProps(
|
defineProps({
|
||||||
{
|
|
||||||
formainpage: Object,
|
formainpage: Object,
|
||||||
responsibility: Array,
|
responsibility: Array,
|
||||||
require:true
|
require:true
|
||||||
},
|
})
|
||||||
// {
|
|
||||||
|
|
||||||
// require: true
|
|
||||||
// },
|
|
||||||
)
|
|
||||||
|
|
||||||
const downloadFile = (url, fileName) => {
|
const downloadFile = (url, fileName) => {
|
||||||
axiosApiInstance.get(url, { responseType: 'blob' })
|
axiosApiInstance.get(url, { responseType: 'blob' })
|
||||||
|
|||||||
Reference in new issue
Block a user