no-query-detail.vue 9.24 KB
Newer Older
xiexingan's avatar
xiexingan committed
1
<template lang="pug">
xiexingan's avatar
xiexingan committed
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
.animation
  .info-title
    //- | {{ dataForm.name }}
    | 空调
    el-button(
      icon="el-icon-close",
      style="float: right",
      type="text",
      @click="closeQueryDetailVisible"
    )
  .info-form(style="text-align: center; border-bottom: 1px solid #c0c0c0")
    img(src="../../../assets/images/kt.jpg")
  .info-form(style="border-bottom: 1px solid #c0c0c0")
    .quDetailM
      p.leftP 设备名称&nbsp;:&nbsp;&nbsp; 室内机
    .quDetailM
      p.leftP 设备编号&nbsp;:&nbsp;&nbsp; CDSLAKS-009
    .quDetailM
      p.leftP 设备品牌:&nbsp;:&nbsp;&nbsp;格力
    .quDetailM
      p.leftP 设备型号:&nbsp;:&nbsp;&nbsp;晶弘33-1
    .quDetailM
      p.leftP 安装日期:&nbsp;:&nbsp;&nbsp;2020-01-04
      p.leftP 维保日期:&nbsp;:&nbsp;&nbsp;2020-01-15
  .info-form
    el-row
      el-col(:span="8")
        .switch-warp
          div(:class="[state == 1 ? 'on' : '']", @click="handleSwitch(1)") 打开
          div(:class="[state == 2 ? 'on' : '']", @click="handleSwitch(2)") 关闭
      el-col.text-size(:span="16", flex, justify-content="start")
        div(style="width: 60px") 频率设置:
        el-input(size="mini", style="width: 60px", v-model="speed")
        span &nbsp;转
        el-button(type="primary", size="mini", style="margin-left: 10px") 设定
    el-row
      el-col.text-size(:span="8") 当前已
        span(v-if="state == 1") 打开
        span(v-else) 关闭
      el-col.text-size(:span="10") 当前频率:
        span(style="color: blue") 2289
        span &nbsp;转/分
  .info-state
    span(style="font-weight: bold") 空调运行状态
    div
      span.type 电压:
      span.value 220 V
    div
      span.type 电流:
      span.value 4 A
    div
      span.type 功率因数:
      span.value 0.8 kw
    div
      span.type 功率:
      span.value 0.8 kw
    div
      span.type 电能:
      span.value 12 kw.h
xiexingan's avatar
xiexingan committed
61 62 63 64 65 66 67 68 69 70
</template>

<script>
import { mapState } from 'vuex'
export default {
  computed: {
    ...mapState('d2admin/user', ['info'])
  },
  data() {
    return {
xiexingan's avatar
xiexingan committed
71 72
      speed: '',
      state: 1,
xiexingan's avatar
xiexingan committed
73 74 75
      video1: 0,
      stationId: localStorage.getItem('stationId'),
      imgUrl: '',
xiexingan's avatar
xiexingan committed
76

xiexingan's avatar
xiexingan committed
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 102
      clickFlag: false,
      cameraCur: {},
      restaurants: [],
      dataForm: {
        id: 0,
        name: '',
        type: 1,
        lineId: '',
        lineName: '',
        stationId: '',
        stationName: '',
        tierId: '',
        subSystem: '',
        code: '',
        subCode: '',
        addressCode: '',
        port: '',
        username: '',
        password: '',
        remark: '',
        status: 1
      }
    }
  },
  created() {},
  methods: {
xiexingan's avatar
xiexingan committed
103
    init(data, stationId) {
xiexingan's avatar
xiexingan committed
104
      this.clickFlag = false
xiexingan's avatar
xiexingan committed
105
      this.dataForm = data
xiexingan's avatar
xiexingan committed
106 107 108
      // this.stationId = stationId
      this.dataForm.operatorName = this.info.name
    },
xiexingan's avatar
xiexingan committed
109

xiexingan's avatar
xiexingan committed
110 111
    closeQueryDetailVisible() {
      this.$emit('closeQ')
xiexingan's avatar
xiexingan committed
112 113 114
    },
    handleSwitch(state) {
      this.state = state
xiexingan's avatar
xiexingan committed
115 116 117 118 119
    }
  }
}
</script>
<style lang="scss" scoped>
xiexingan's avatar
xiexingan committed
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
.switch-warp {
  width: 80px;
  height: 26px;
  font-size: 12px;
  line-height: 25px;
  overflow: hidden;
  border-radius: 13px;
  background: #d3d3d3;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0px 1px 0px 1px rgba(255, 255, 255, 0.25),
    0px 2px 4px 0px rgba(0, 0, 0, 0.1);
  div {
    width: 39px;
    height: 24px;
    line-height: 24px;
    float: left;
    text-align: center;
    cursor: pointer;
  }
  div.on {
    background: #4cb527;
    color: #fff;
    border-radius: 13px;
    border: 1px solid rgba(23, 41, 71, 0.02);
    box-shadow: 0px 1px 0px 0px rgba(255, 255, 255, 0.3),
      0px 2px 0px 0px rgba(255, 255, 255, 0.15);
  }
}
.text-size {
  font-size: 12px;
  line-height: 28px;
}
.info-state {
  padding: 0 10px 10px;
  .type {
    font-size: 14px;
    margin: 5px 0 0 10px;
    display: inline-block;
    width: 85px;
  }
  .value {
    color: #47b320;
  }
}
xiexingan's avatar
xiexingan committed
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373
.el-table__header {
  width: 100% !important;
}
.el-table__body {
  width: 100% !important;
}
.info-title {
  line-height: 40px;
  height: 40px;
  padding: 0 20px;
  background-color: #e1edf4;
  border-bottom: 1px solid #cccccc;
  font-size: 16px;
  font-family: Microsoft YaHei;
  font-weight: bold;
}
.info-video {
  padding: 10px;
  height: 160px;
}
.info-form {
  padding: 10px;
}
.info-block {
  border: 1px solid #cccccc;
}
.el-select {
  width: 100%;
}
.video {
  width: 100%;
  height: 180px;
}
.animation {
  animation: myfirst 1s;
  position: absolute;
  top: 50px;
  right: 0;
  width: 330px;
  background-color: #f4f4f4;
  z-index: 11;
  border: 1px solid rgba(195, 195, 195, 1);
  box-shadow: 0 2px 8px 8px rgba(0, 0, 0, 0.2);
}
@keyframes myfirst {
  from {
    right: -500px;
  }
  to {
    right: 0;
  }
}
.quDetailM {
  width: 100%;
}
.leftP {
  height: 30px;
  line-height: 30px;
  margin: 0;
  width: 100%;
  font-size: 14px;
  span {
    color: #46b6f9;
  }
}
.operate {
  padding: 5px 0;
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: rgba(0, 0, 0, 1);
  border-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.5),
      rgba(213, 213, 213, 0.5),
      rgba(255, 255, 255, 0.5),
      rgba(218, 218, 218, 0.5),
      rgba(255, 255, 255, 0.5)
    )
    2 2;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  .btns {
    width: 194px;
    height: 194px;
    position: relative;
    img {
      width: 100%;
      height: 100%;
    }
    div {
      cursor: pointer;
      padding: 10px;
    }
    .s {
      position: absolute;
      top: 10px;
      left: 75px;
      width: 24px;
      height: 24px;
    }
    .x {
      position: absolute;
      bottom: 10px;
      left: 75px;
      width: 24px;
      height: 24px;
    }
    .z {
      position: absolute;
      top: 75px;
      left: 10px;
      width: 24px;
      height: 24px;
    }
    .y {
      position: absolute;
      top: 75px;
      right: 10px;
      width: 24px;
      height: 24px;
    }
    .zs {
      position: absolute;
      top: 32px;
      left: 32px;
      width: 24px;
      height: 24px;
    }
    .zx {
      position: absolute;
      bottom: 32px;
      left: 32px;
      width: 24px;
      height: 24px;
    }
    .ys {
      position: absolute;
      top: 32px;
      right: 32px;
      width: 24px;
      height: 24px;
    }
    .yx {
      position: absolute;
      bottom: 32px;
      right: 32px;
      width: 24px;
      height: 24px;
    }
    .fx {
      position: absolute;
      padding: 0;
      cursor: default;
      top: 50%;
      left: 50%;
      width: 65px;
      height: 65px;
      background: #ececec;
      border-radius: 50%;
      line-height: 65px;
      text-align: center;
      color: #969696;
      transform: translate(-50%, -50%);
    }
  }
  .ytBox {
    width: 90px;
    font-size: 16px;
    padding: 10px 0 10px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    .mllx {
      display: flex;
      justify-content: space-between;
      width: 90%;
      span {
        line-height: 40px;
        text-align: center;
        width: 35%;
      }
    }
    .bbBtn {
      height: 40px;
      display: flex;
      margin-left: 10px;
      justify-content: flex-start;
      div {
        width: 40px;
        height: 40px;
        cursor: pointer;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}

.el-icon-wq-r1 {
  background: url(~@/assets/images/r1.png) center no-repeat;
  background-size: 65%;
}
.el-icon-wq-r1:before {
xiexingan's avatar
xiexingan committed
374
  content: "";
xiexingan's avatar
xiexingan committed
375 376 377 378 379 380 381
  font-size: 16px;
}
.el-icon-wq-r2 {
  background: url(~@/assets/images/r2.png) center no-repeat;
  background-size: 65%;
}
.el-icon-wq-r2:before {
xiexingan's avatar
xiexingan committed
382
  content: "";
xiexingan's avatar
xiexingan committed
383 384 385 386 387 388 389
  font-size: 16px;
}
.el-icon-wq-r3 {
  background: url(~@/assets/images/r3.png) center no-repeat;
  background-size: 65%;
}
.el-icon-wq-r3:before {
xiexingan's avatar
xiexingan committed
390
  content: "";
xiexingan's avatar
xiexingan committed
391 392 393 394 395 396 397
  font-size: 16px;
}
.el-icon-wq-r5 {
  background: url(~@/assets/images/r5.png) center no-repeat;
  background-size: 65%;
}
.el-icon-wq-r5:before {
xiexingan's avatar
xiexingan committed
398
  content: "";
xiexingan's avatar
xiexingan committed
399 400 401 402 403 404 405
  font-size: 16px;
}
.el-icon-wq-r6 {
  background: url(~@/assets/images/r6.png) center no-repeat;
  background-size: 65%;
}
.el-icon-wq-r6:before {
xiexingan's avatar
xiexingan committed
406
  content: "";
xiexingan's avatar
xiexingan committed
407 408 409 410 411 412 413 414 415 416
  font-size: 16px;
}

.el-icon-wq-r1b {
  background: url(~@/assets/images/r1b.png) center no-repeat;
  height: 35px;
  width: 35px;
  background-size: 65%;
}
.el-icon-wq-r1b:before {
xiexingan's avatar
xiexingan committed
417
  content: "";
xiexingan's avatar
xiexingan committed
418 419 420 421 422 423 424 425 426
  font-size: 16px;
}
.el-icon-wq-r2b {
  background: url(~@/assets/images/r2b.png) center no-repeat;
  height: 35px;
  width: 35px;
  background-size: 65%;
}
.el-icon-wq-r2b:before {
xiexingan's avatar
xiexingan committed
427
  content: "";
xiexingan's avatar
xiexingan committed
428 429 430 431 432 433 434 435 436
  font-size: 16px;
}
.el-icon-wq-r3b {
  background: url(~@/assets/images/r3b.png) center no-repeat;
  height: 35px;
  width: 35px;
  background-size: 65%;
}
.el-icon-wq-r3b:before {
xiexingan's avatar
xiexingan committed
437
  content: "";
xiexingan's avatar
xiexingan committed
438 439 440 441 442 443 444 445 446
  font-size: 16px;
}
.el-icon-wq-r5b {
  background: url(~@/assets/images/r5b.png) center no-repeat;
  height: 35px;
  width: 35px;
  background-size: 65%;
}
.el-icon-wq-r5b:before {
xiexingan's avatar
xiexingan committed
447
  content: "";
xiexingan's avatar
xiexingan committed
448 449 450 451 452 453 454 455 456
  font-size: 16px;
}
.el-icon-wq-r6b {
  background: url(~@/assets/images/r6b.png) center no-repeat;
  height: 35px;
  width: 35px;
  background-size: 65%;
}
.el-icon-wq-r6b:before {
xiexingan's avatar
xiexingan committed
457
  content: "";
xiexingan's avatar
xiexingan committed
458 459 460 461 462 463 464 465 466 467 468 469 470
  font-size: 16px;
}
</style>
<style lang="scss">
.instuctions_content {
  table {
    th {
      background: #eef8ff !important;
      color: #333333 !important;
    }
  }
}
</style>