Two.vue 2.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
<!--
 * @Author: your name
 * @Date: 2022-04-20 09:01:12
 * @LastEditTime: 2022-04-21 17:25:36
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Right/One.vue
-->
<template>
  <div class="one-wrapper all-flex-h">
    <div class="top-title">燃气安全装置加装情况</div>
    <div class="middle">
      <div class="wrapper flex">
        <div class="left">城镇用户</div>
        <div class="center">农村用户</div>
        <div class="right">单位用户</div>
      </div>
    </div>

    <div class="bottom">
      <div class="wrapper flex">
        <div class="left"><span>{{map.cheng}}</span></div>
        <div class="center"><span>{{map.zhen}}</span></div>
        <div class="right"><span>{{map.danwei}}</span></div>
      </div>
    </div>
  </div>
</template>

<script>
  import {selectCountByUserType} from "@/api/standingBook/equipment";
export default {
  name: "",
  data() {
    return {
      map:{}
    };
  },
  created(){
    selectCountByUserType().then(response => {
      this.map = response.data[0];
    })
  },
  methods: {

  },
};
</script>
<style lang="scss" scoped>
.one-wrapper {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  padding-top: 10px;
  .top-title {
    font-size: 16px;
    padding-left: 19px;
    margin-bottom: 10px;
    font-weight: 600;
  }
  .middle,
  .bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    .wrapper {
      width: 82%;
      background: rgba(24, 144, 255, 0.1);
      border-radius: 3px;
      height: 28px;
      display: flex;
      align-items: center;
      > div {
        flex: 1;
        font-size: 13px;
        text-align: center;
      }
    }
  }
  .middle{
    font-size: 16px;
    margin-bottom:2px
  }
  .bottom {
    flex:1;
    .wrapper {
      background: #fff;
    }
  }
  // .bottom {
  //   display: flex;
  //   align-items: center;
  //   flex: 1;
  //   > div {
  //     .text {
  //       font-size: 18px;
  //     }
  //   }
  // }
}
</style>