floorOverview.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <script>
  2. import apiDashboard from "@/api/dashboard/apiDashboard";
  3. import Card from "@/components/common/card.vue";
  4. export default {
  5. data() {
  6. return {
  7. builtArea: 0,
  8. layersInt: 0,
  9. constructionPeriod: 0,
  10. serviceLife: 0,
  11. companyNum: 0,
  12. }
  13. },
  14. components: {
  15. Card
  16. },
  17. mounted() {
  18. this.getData()
  19. },
  20. methods: {
  21. getData() {
  22. return apiDashboard.getFloorOverview(this.queryData).then(res=>{
  23. this.builtArea = res.builtArea
  24. this.layersInt = res.layersInt
  25. this.constructionPeriod = res.constructionPeriod
  26. this.companyNum = res.companyNum
  27. this.serviceLife = res.serviceLife
  28. })
  29. }
  30. }
  31. }
  32. </script>
  33. <template>
  34. <div class="dMore-floorOverview">
  35. <Card >
  36. <template #title>
  37. <span>楼宇概览</span>
  38. </template>
  39. <div style="padding: 15px">
  40. <a-row :gutter="[12,20]">
  41. <a-col :span="12">
  42. <a-statistic class="overflowItem" title="建筑面积(m²)" :value="builtArea" />
  43. </a-col>
  44. <a-col :span="12">
  45. <a-statistic class="overflowItem" title="建筑层数(层)" :value="layersInt" />
  46. </a-col>
  47. <a-col :span="12">
  48. <a-statistic class="overflowItem" title="已使用年限(年)" :value="serviceLife" />
  49. </a-col>
  50. <!--<a-col :span="12">-->
  51. <!-- <a-statistic class="overflowItem" title="建筑年限(年)" :value="constructionPeriod" />-->
  52. <!--</a-col>-->
  53. <a-col :span="12">
  54. <a-statistic class="overflowItem" title="入驻企业数(家)" :value="companyNum" />
  55. </a-col>
  56. </a-row>
  57. </div>
  58. </Card>
  59. </div>
  60. </template>
  61. <style lang="less" scoped>
  62. .dMore-floorOverview {
  63. .overflowItem {
  64. display: inline-block;
  65. width: 70%;
  66. padding: 2% 0;
  67. text-align: left;
  68. margin-left: 25%;
  69. }
  70. }
  71. </style>