| | |
| | | --> |
| | | <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> |