P-28-feat:create display user-list resp
This commit is contained in:
1 parent
77f11e8ff3
commit
6a2786897a
2 files changed
+26
-19
No files matched your search
@@ -4,6 +4,7 @@
|
||||
<v-window-item class="gap h-100" value="mainInfo">
|
||||
<MainInfoSafety
|
||||
:formainpage="safetyData.mainpage_file"
|
||||
:responsibility="safetyData.type_resp"
|
||||
></MainInfoSafety>
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="document">
|
||||
@@ -17,7 +18,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { ref, onMounted, onUpdated } from "vue";
|
||||
|
||||
import { pagecounter } from "@/utils/universal_functions";
|
||||
import PatternTabs from "@/components/UI/PatternTabs.vue";
|
||||
@@ -52,7 +53,8 @@ export default {
|
||||
});
|
||||
};
|
||||
|
||||
getSafety();
|
||||
onMounted(() => getSafety())
|
||||
onUpdated(() => getSafety())
|
||||
|
||||
return {
|
||||
safetyData,
|
||||
|
||||
@@ -18,19 +18,30 @@
|
||||
</v-col>
|
||||
<v-col class="w100">
|
||||
<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-card class="pa-1 overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||
|
||||
<div v-for="x in responsibility">
|
||||
|
||||
<v-expansion-panels multiple flat>
|
||||
<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
|
||||
v-for="item in x.resp.employee"
|
||||
:key=item
|
||||
:author="item">
|
||||
</list-user>
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-card>
|
||||
@@ -76,17 +87,11 @@ import { ref } from 'vue';
|
||||
import VuePdfEmbed from 'vue-pdf-embed';
|
||||
import { saveAs } from 'file-saver';
|
||||
|
||||
defineProps(
|
||||
{
|
||||
formainpage: Object,
|
||||
responsibility: Array,
|
||||
require:true
|
||||
},
|
||||
// {
|
||||
|
||||
// require: true
|
||||
// },
|
||||
)
|
||||
defineProps({
|
||||
formainpage: Object,
|
||||
responsibility: Array,
|
||||
require:true
|
||||
})
|
||||
|
||||
const downloadFile = (url, fileName) => {
|
||||
axiosApiInstance.get(url, { responseType: 'blob' })
|
||||
|
||||
Reference in new issue
Block a user