| | |
| | | } |
| | | }) |
| | | } |
| | | // ¤t=1&size=12 |
| | | |
| | | export const getPlacePractitioner = (placeId,searchKey,current,size) => { |
| | | |
| | | export const getPlacePractitioner = (placeId, searchKey, current, size) => { |
| | | return request({ |
| | | url: '/api/blade-placePractitioner/placePractitioner/page', |
| | | method: 'get', |
| | |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getPlaceList = (aoiId, buildId) => { |
| | | return request({ |
| | | url: '/api/blade-place/place/getPlaceList', |
| | | method: 'get', |
| | | params: { |
| | | aoiId, |
| | | buildId, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getStaticPlaceAndEmpNum = (aoiId, buildId) => { |
| | | return request({ |
| | | url: '/api/blade-place/place/staticPlaceAndEmpNum', |
| | | method: 'get', |
| | | params: { |
| | | aoiId, |
| | | buildId, |
| | | } |
| | | }) |
| | | } |
| | |
| | | <div class="basicTopics-info-item"> |
| | | <img src="../../../../public/img/icon/business.png" alt="" srcset=""> |
| | | <div> |
| | | <span>专题信息</span> |
| | | <span>楼栋数</span> |
| | | <div class="basicTopics-info-item-num"> |
| | | 908 |
| | | {{ staticInfo.empNum }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="basicTopics-info-item"> |
| | | <img src="../../../../public/img/icon/business.png" alt="" srcset=""> |
| | | <div> |
| | | <span>专题信息</span> |
| | | <span>单元数</span> |
| | | <div class="basicTopics-info-item-num"> |
| | | 908 |
| | | {{ staticInfo.unitNum }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="basicTopics-info-item"> |
| | | <!-- <div class="basicTopics-info-item"> |
| | | <img src="../../../../public/img/icon/business.png" alt="" srcset=""> |
| | | <div> |
| | | <span>专题信息</span> |
| | |
| | | 908 |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | <enterpriseList v-if="basicTopics"> </enterpriseList> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import enterpriseList from './enterpriseList' |
| | | |
| | | import { |
| | | getStaticPlaceAndEmpNum |
| | | } from '@/api/company/company' |
| | | |
| | | export default { |
| | | //import引入的组件需要注入到对象中才能使用 |
| | |
| | | data() { |
| | | //这里存放数据 |
| | | return { |
| | | basicTopics: false |
| | | basicTopics: false, |
| | | aoiId: '111', |
| | | buildId: '', |
| | | staticInfo: {}, |
| | | |
| | | }; |
| | | }, |
| | |
| | | methods: { |
| | | openClick() { |
| | | this.basicTopics = !this.basicTopics |
| | | }, |
| | | getStatic() { |
| | | getStaticPlaceAndEmpNum(this.aoiId, this.buildId).then(res => { |
| | | this.staticInfo = res.data.data |
| | | }) |
| | | |
| | | } |
| | | |
| | | }, |
| | |
| | | }, |
| | | //生命周期 - 挂载完成(可以访问DOM元素) |
| | | mounted() { |
| | | |
| | | this.getStatic() |
| | | }, |
| | | beforeCreate() { }, //生命周期 - 创建之前 |
| | | beforeMount() { }, //生命周期 - 挂载之前 |
| | |
| | | //@import url(); 引入公共css类 |
| | | |
| | | .buildingTable { |
| | | margin-top: 10px; |
| | | overflow: hidden; |
| | | overflow-y: auto; |
| | | } |
| | |
| | | style="width: 100%"> |
| | | <el-table-column align="center" type="index" label="序号" width="50"> |
| | | </el-table-column> |
| | | <el-table-column align="center" prop="name" label="企业名称"> |
| | | <el-table-column align="center" prop="placeName" label="企业名称"> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { |
| | | getPlaceList |
| | | } from '@/api/company/company' |
| | | export default { |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | components: {}, |
| | |
| | | return { |
| | | show: false, |
| | | tableData: [], |
| | | currentRow: null |
| | | currentRow: null, |
| | | aoiId: '111', |
| | | buildId: '' |
| | | } |
| | | }, |
| | | //监听属性 类似于data概念 |
| | |
| | | }, |
| | | handleCurrentChange(val) { |
| | | this.currentRow = val |
| | | } |
| | | }, |
| | | getPlace() { |
| | | getPlaceList(this.aoiId, this.buildId).then(res => { |
| | | this.tableData = res.data.data.records |
| | | }) |
| | | }, |
| | | }, |
| | | //生命周期 - 创建完成(可以访问当前this实例) |
| | | created() { |
| | |
| | | }, |
| | | //生命周期 - 挂载完成(可以访问DOM元素) |
| | | mounted() { |
| | | this.getPlace() |
| | | }, |
| | | beforeCreate() { }, //生命周期 - 创建之前 |
| | | beforeMount() { }, //生命周期 - 挂载之前 |