Выведены ответственные по пожарке
This commit is contained in:
1 parent
a6843442fb
commit
568b67d959
1 file changed
+17
-1
@@ -105,6 +105,10 @@
|
||||
<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">
|
||||
<list-user
|
||||
v-for="item in responsibility"
|
||||
:author="item">
|
||||
</list-user>
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-card>
|
||||
@@ -114,12 +118,24 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
import listUser from '@/components/UI/fiousercard/listUser.vue';
|
||||
import { baseURL, axiosApiInstance } from '@/utils/axios-api'
|
||||
import { ref } from 'vue';
|
||||
|
||||
const burl = baseURL.slice(0,-1)
|
||||
const openImg = ref(false)
|
||||
const openFirstPlan = ref(false)
|
||||
const openSecondPlan = ref(false)
|
||||
const responsibility = ref([])
|
||||
|
||||
function getResponsibility() {
|
||||
axiosApiInstance.get(`api/safety/responsibility/`).then(result => {
|
||||
responsibility.value = result.data.users
|
||||
console.log(responsibility.value);
|
||||
})
|
||||
}
|
||||
|
||||
getResponsibility()
|
||||
|
||||
|
||||
</script>
|
||||
Reference in new issue
Block a user