智慧园区前端大屏
linwe
2024-10-30 8c9d027e68d2407d8425f6db26b725efa213df90
src/views/survey/components/box/dataContent.vue
@@ -10,16 +10,38 @@
-->
<script setup>
import publicContent from './publicContent.vue'
// import { ref, reactive } from 'vue'
import { getPage } from '../../../../api/indParkInfo'
var parkQy = ref([])
var searchQuery = ref('')
onMounted(() => {
    getPages()
})
function getPages() {
    getPage().then(res => {
        parkQy = res.data.data.records
        console.log(res)
    }).catch(err => {
        console.log(err)
    })
}
</script>
<template>
    <!-- <public-content>
        <template #content> -->
    <div class="data-content">
        <div v-for="item in 5">
        <div v-for="item in parkQy" :key="item.id">
            <div class="data-content-item">
                <div> 测试企业111111</div>
                <el-button size="small" type="primary">化工企业</el-button>
                <div> {{ item.name }}</div>
                <el-button size="small" type="primary">{{ item.categoryName }}</el-button>
            </div>
        </div>