| | |
| | | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| | | --> |
| | | <script setup> |
| | | import EventBus from 'utils/bus' |
| | | import { getPage } from '@/api/indParkInfo' |
| | | import { useRouterStore } from 'store/router' |
| | | import { useRouter, useRoute } from 'vue-router' |
| | |
| | | |
| | | |
| | | function getPages () { |
| | | getPage().then(res => { |
| | | getPage({ |
| | | size: 100, |
| | | }).then(res => { |
| | | parkQy.value = res.data.data.records |
| | | // console.log(res) |
| | | }).catch(err => { |
| | | // console.log(err) |
| | | console.log(err) |
| | | }) |
| | | } |
| | | |
| | | function search () { |
| | | getPage({ name: searchQuery.value }).then(res => { |
| | | parkQy.value = res.data.data.records |
| | | console.log(res) |
| | | }).catch(err => { |
| | | console.log(err) |
| | | }) |
| | |
| | | localStorage.setItem('companyInfo', JSON.stringify(item)) |
| | | store.setLoadSub(true) |
| | | router.push({ |
| | | path: '/layout/sub/companyInfo' |
| | | path: '/layout/map/sub/companyInfo' |
| | | }) |
| | | } |
| | | |
| | |
| | | <div class="box-content w100 h100 flex f-d-c"> |
| | | <div> |
| | | <div class="search-container"> |
| | | <el-input v-model="searchQuery" placeholder="请输入企业名称" size="mini"> |
| | | <el-input v-model="searchQuery" placeholder="请输入企业名称" size="large"> |
| | | </el-input> |
| | | <el-button :color="'#0088ff'" @click="search" size="mini">搜索</el-button> |
| | | <el-button :color="'#0088ff'" @click="search" size="large">搜索</el-button> |
| | | </div> |
| | | </div> |
| | | |