123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450 |
- <template>
- <div>
- <div class="num-box">
- <!-- 物联网建筑数量 -->
- <div class="build-num">
- <div class="build-all">
- <span
- @click="$emit('click-label', 'WLWJZS')" style="cursor: pointer;"
- ><img src="@/assets/images/Vector (3).png" alt="" />
- <span >已接入物联网建筑数</span>
- </span>
- <span class="num">{{ iotList?.wlwlds }}</span>
- <span class="build-line">栋</span>
- </div>
- </div>
- <!-- 设备数 -->
- <div class="point-num">
- <div class="build-num" style="background: none; margin-bottom: 10px">
- <div class="build">
- <span
- >点位总数 <span class="num">{{ iotList?.jrsbzs }}</span> 个
- </span>
- <span
- >在线 <span class="online">{{ iotList?.jrsbzxs }}</span
- >个
- </span>
- <span
- >
- <span @click="$emit('click-label', 'GJS')" style="cursor: pointer;">告警</span>
- <span class="warning">{{
- iotList?.jrsbgjgs ? iotList?.jrsbgjgs : 0
- }}</span
- >个
- </span>
- </div>
- </div>
- <div>
- <span class="onlines on-line" style="margin: 0px 20px"> 在线</span>
- <span class="offlines on-line gj-bnt">告警</span>
- </div>
- <div class="pressure">
- <!-- 水压 -->
- <div class="pressure-num">
- <div
- class="pressure-bg"
- @click="
- toIot({
- name: '水压监测',
- zt: '',
- isShowAlarm: null,
- onLineOrder: 1,
- isShowOnLineAndAlarm: '',
- })
- "
- >
- {{ frieList.syzs ? frieList.syzs : 0
- }}<span style="margin-right: 1px"
- ><span style="margin-right: 1px">/</span></span
- >
- <span>{{ frieList.syds ? frieList.syds : 0 }}</span>
- <div style="font-size: 12px; margin-top: 5px">(个/栋)</div>
- </div>
- <ul class="pressure-list">
- <li style="font-size: 12px; margin: 6px 0 0 10px">
- {{ listNum[0] }}
- </li>
- <li
- class="pressure-line"
- @click="
- toIot({
- name: '水压监测',
- zt: '在线',
- onLineOrder: '',
- isShowAlarm: '',
- isShowOnLineAndAlarm: '',
- })
- "
- >
- <!-- 在线 -->
- <span class="onlines on-line"></span>
- <!-- <img
- class="pressure-img"
- src="../../assets/images/Ellipse 275.png"
- alt=""
- /> -->
- <span class="bumer" style="font-size: 16px; margin-left: 2px">
- {{ frieList.syzxs ? frieList.syzxs : 0
- }}<span style="margin-right: 1px">/</span>
- <span>{{ frieList.syzxlds ? frieList.syzxlds : 0 }}</span>
- <span class="unit" style="font-size: 12px">(个/栋)</span>
- </span>
- </li>
- <li
- class="pressure-line"
- @click="
- toIot({
- name: '水压监测',
- zt: '',
- isShowAlarm: '是',
- onLineOrder: 1,
- isShowOnLineAndAlarm: 1,
- })
- "
- >
- <!-- 离线 -->
- <span class="offlines on-line"></span>
- <!-- <img
- class="pressure-img"
- src="../../assets/images/Ellipse 275 (1).png"
- alt=""
- /> -->
- <span class="bumer" style="margin-left: 2px">
- {{ frieList.sygjs ? frieList.sygjs : 0
- }}<span style="margin-right: 1px">/</span>
- <span>{{ frieList.sygjlds ? frieList.sygjlds : 0 }}</span>
- <span style="font-size: 12px">(个/栋)</span>
- </span>
- <!-- <span class="unit">(个/栋)</span> -->
- </li>
- </ul>
- </div>
- <!--点气火灾 -->
- <div
- class="pressure-num"
- >
- <div class="pressure-bg" @click="
- toIot({
- name: '电气火灾监测',
- zt: '',
- isShowAlarm: null,
- onLineOrder: 1,
- isShowOnLineAndAlarm: '',
- })
- ">
- {{ frieList.dqhzzs ? frieList.dqhzzs : 0
- }}<span style="margin-right: 1px">/</span>
- <span>{{ frieList.dqhzds ? frieList.dqhzds : 0 }}</span>
- <div style="font-size: 12px; margin-top: 5px">(个/栋)</div>
- </div>
- <ul class="pressure-list">
- <li style="font-size: 12px; margin: 6px 0 0 10px">
- {{ listNum[1] }}
- </li>
- <li
- class="pressure-line"
- @click="
- toIot({
- name: '电气火灾监测',
- zt: '在线',
- isShowAlarm: '',
- onLineOrder: '',
- isShowOnLineAndAlarm: '',
- })
- "
- >
- <!-- 在线 -->
- <span class="onlines on-line"></span>
- <!-- <img
- class="pressure-img"
- src="../../assets/images/Ellipse 275.png"
- alt=""
- /> -->
- <span class="bumer" style="font-size: 16px; margin-left: 2px"
- >{{ frieList.dqhzzxs ? frieList.dqhzzxs : 0
- }}<span style="margin-right: 1px">/</span>
- <span>{{ frieList.dqhzzxlds ? frieList.dqhzzxlds : 0 }}</span>
- <span class="unit" style="font-size: 12px">(个/栋)</span>
- </span>
- </li>
- <li
- class="pressure-line"
- @click="
- toIot({
- name: '电气火灾监测',
- zt: '',
- isShowAlarm: '是',
- onLineOrder: 1,
- isShowOnLineAndAlarm: 1,
- })
- "
- >
- <!-- 离线 -->
- <span class="offlines on-line"></span>
- <!-- <img
- class="pressure-img"
- src="../../assets/images/Ellipse 275 (1).png"
- alt=""
- /> -->
- <span class="bumer" style="margin-left: 2px"
- >{{ frieList.dqhzgjs ? frieList.dqhzgjs : 0
- }}<span style="margin-right: 1px">/</span>
- <span>{{ frieList.dqhzgjlds ? frieList.dqhzgjlds : 0 }}</span>
- <span style="font-size: 12px">(个/栋)</span>
- </span>
- <!-- <span class="unit">(个/栋)</span> -->
- </li>
- </ul>
- </div>
- <!-- 生命通道 -->
- <div
- class="pressure-num"
- >
- <div class="pressure-bg"
- @click="
- toIot({
- name: '生命通道监测',
- zt: '',
- isShowAlarm: null,
- onLineOrder: 1,
- isShowOnLineAndAlarm: '',
- })
- ">
- {{ frieList.smtdzs ? frieList.smtdzs : 0
- }}<span style="margin-right: 1px"></span>
- <!-- <span>{{ frieList.smtdlds ? frieList.smtdlds : 0 }}</span> -->
- <div style="font-size: 12px; margin-top: 5px">(个)</div>
- </div>
- <ul class="pressure-list">
- <li style="font-size: 12px; margin: 6px 0 0 10px">
- {{ listNum[2] }}
- </li>
- <li
- class="pressure-line"
- @click="
- toIot({
- name: '生命通道监测',
- zt: '在线',
- onLineOrder: '',
- isShowAlarm: '',
- isShowOnLineAndAlarm: '',
- })
- "
- >
- <!-- 在线 -->
- <span class="onlines on-line"></span>
- <!-- <img
- class="pressure-img"
- src="../../assets/images/Ellipse 275.png"
- alt=""
- /> -->
- <span class="bumer" style="font-size: 16px; margin-left: 2px"
- >{{ frieList.smtdzxs ? frieList.smtdzxs : 0 }}
- <span style="margin-right: 1px">/</span>
- <span>{{ frieList.smtdzxlds ? frieList.smtdzxlds : 0 }}</span>
- <span class="unit" style="font-size: 12px">(个)</span>
- </span>
- </li>
- <li
- class="pressure-line"
- @click="
- toIot({
- name: '生命通道监测',
- zt: '',
- isShowAlarm: '是',
- onLineOrder: 1,
- isShowOnLineAndAlarm: 1,
- })
- "
- >
- <!-- 离线 -->
- <span class="offlines on-line"></span>
- <!-- <img
- class="pressure-img"
- src="../../assets/images/Ellipse 275 (1).png"
- alt=""
- /> -->
- <span class="bumer" style="margin-left: 2px"
- >{{ frieList.smtdgjs ? frieList.smtdgjs : 0 }}
- <!-- <span style="margin-right: 1px">/</span> -->
- <!-- <span>{{ frieList.smtdgjlds ? frieList.smtdgjlds : 0 }}</span> -->
- <span style="font-size: 12px">(个)</span>
- </span>
- <!-- <span class="unit">(个/栋)</span> -->
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <basic-modal top="120px" ref="feirModal1">
- <fxfbCont :qy="qy" :sbType="sbType" />
- <ZhxfModalHeader slot="title" />
- </basic-modal>
- </div>
- </template>
- <script>
- import fxfbCont from "../../Iot/components/fxfbCont.vue";
- export default {
- props: {
- frieList: Object,
- iotList: Object,
- qy: String,
- },
- components: { fxfbCont },
- data() {
- return {
- listNum: ["水压监测点位", "电气火灾监测点位", "生命通道监测点位"],
- sbType: {},
- };
- },
- mounted() {},
- methods: {
- openFrieModal1() {
- this.showModal("feirModal1");
- },
- toIot(val) {
- this.sbType = val;
- this.showModal("feirModal1");
- },
- },
- };
- </script>
- <style scoped>
- .num-box {
- width: 414px;
- display: flex;
- flex-direction: column;
- padding: 10px 12px;
- }
- .build-num {
- width: 100%;
- height: 42px;
- background: linear-gradient(
- 180deg,
- rgba(5, 134, 253, 0.18) 0%,
- rgba(0, 224, 255, 0.5) 100%
- );
- border-radius: 5px;
- }
- .build {
- height: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 12px;
- color: #fff;
- margin-left: 12px;
- }
- .build-all{
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin: 0 12px;
- margin-top: 3px;
- }
- .point-num {
- flex: 1;
- /* margin-top: 10px; */
- }
- .num {
- font-size: 30px;
- color: #ffd74b;
- margin-left: 5px;
- }
- img {
- width: 20px;
- height: 19px;
- }
- .online {
- font-size: 30px;
- color: #00ff66;
- margin-left: 5px;
- }
- .warning {
- font-size: 30px;
- color: #ff4b23;
- margin-left: 5px;
- }
- .pressure {
- margin-top: 10px;
- display: flex;
- justify-content: space-between;
- }
- .gj-bnt{
- margin-left: 12px;
- }
- .pressure-num {
- /* width: 30%; */
- height: 150px;
- /* letter-spacing: 1px; */
- font-size: 12px;
- text-align: center;
- }
- .pressure-img {
- display: inline-block !important;
- width: 8px;
- height: 8px;
- margin-left: 5px;
- }
- .pressure-list {
- font-size: 12px;
- color: #fff;
- text-align: left;
- font-family: "Abel";
- }
- .onlines::after {
- background-color: #2fde60;
- }
- .offlines::after {
- background-color: #ff4f4f;
- }
- .on-line::after {
- content: "";
- display: inline-block;
- width: 8px;
- height: 8px;
- border-radius: 50%;
- margin-left: 10px;
-
- }
- .on-line {
- letter-spacing: 2px;
-
- }
- .pressure-bg {
- width: 66px;
- height: 77px;
- background: url("@/assets/images/water.png") no-repeat;
- font-size: 20px;
- text-align: center;
- padding-left: 3px;
- padding-top: 10px;
- box-sizing: border-box;
- margin: auto;
- }
- /* .pressure-line {
- display: flex;
- justify-content: space-between;
- align-items: center;
- } */
- .bumer {
- display: inline-block;
- font-size: 16px;
- margin-top: 5px;
- }
- .unit {
- margin-right: 12px;
- }
- .build-line {
- display: inline-block;
- margin-top: 6px;
- }
- </style>
|