markerInfoWindow.vue 5.1 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2
<template>
  <div class="wrapper">
耿迪迪's avatar
耿迪迪 committed
3
    <span class="dot-left"></span>
耿迪迪's avatar
耿迪迪 committed
4
    <div class="top display-default">
5
      <div class="left text ddd" :title="data.deviceName">{{ data.deviceName }}</div>
耿迪迪's avatar
耿迪迪 committed
6
      <div class="right text">
7 8 9 10 11
        <img
          src="../../assets/images/closeBtn.png"
          alt=""
          @click="map.clearInfoWindow()"
        />
耿迪迪's avatar
耿迪迪 committed
12 13 14
      </div>
    </div>
    <!-- 设备信息 -->
纪泽龙's avatar
纪泽龙 committed
15
    <div class="content  scrollStyle">
16 17
      <div class="eq-content display-default">
        <div class="text-wrapper">
18 19 20 21 22 23 24 25 26 27 28 29
          <div class="eq-text">
            设备类型:<span>{{ title }}</span>
          </div>
          <div class="eq-text">
            设备型号:<span>{{ data.deviceModel }}</span>
          </div>
          <div class="eq-text">
            所属管道:<span>{{ data.pipeName }}</span>
          </div>
          <div class="eq-text">
            物联网编号:<span>{{ data.iotNo }}</span>
          </div>
30 31 32 33
        </div>
        <div class="pic">
          <img v-bind:src="data.iconUrl" alt="" />
        </div>
耿迪迪's avatar
耿迪迪 committed
34
      </div>
35
      <!-- 维修人员 -->
36
      <div class="maintain-content">
37 38 39
        <el-col :span="11">
          <div>
            <span>安装日期:</span>
40 41 42
            <span>{{
              moment(data.installationTime).format("YYYY-MM-DD")
            }}</span>
43 44 45 46 47 48
          </div>
        </el-col>

        <el-col :span="13">
          <div>
            <span>最后巡检日期:</span>
49
            <span>{{ data.inspectionTime ? data.inspectionTime : "-" }}</span>
50 51 52 53
          </div>
        </el-col>

        <div>
54 55
          <span>设备所在地址:</span>
          <span>{{ data.deviceAddr }}</span>
56 57 58
        </div>
        <div>
          <span>备注信息:</span>
59
          <span v-un-content> {{ data.remarks }}</span>
60
        </div>
耿迪迪's avatar
耿迪迪 committed
61
      </div>
62 63 64 65 66
      <!-- 报警状态 -->
      <!--<div class="warn-content">
        <div>报警状态 <span>报警</span></div>
        <div>详细信息:<span>管线两端设备压差较大,管线可能泄漏</span></div>
      </div>-->
耿迪迪's avatar
耿迪迪 committed
67 68 69 70 71
    </div>
  </div>
</template>

<script>
72
import moment from "moment";
耿迪迪's avatar
耿迪迪 committed
73 74 75 76
//line移入时的的infowindow
export default {
  props: {
    obj: { typs: Object },
耿迪迪's avatar
耿迪迪 committed
77
    title: "",
耿迪迪's avatar
耿迪迪 committed
78
    data: {},
79
    map: null,
80
  },
81
  methods: {
82
    moment,
83
  },
耿迪迪's avatar
耿迪迪 committed
84 85 86 87 88 89
};
</script>

<style lang="scss" scoped>
.wrapper {
  width: 406px;
90
  // height: 488px;
耿迪迪's avatar
耿迪迪 committed
91 92
  border-radius: 4px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
93
  // background: #fff;
94
  // overflow: hidden;
95 96
  background: rgba(7, 29, 51, 0.9);
  color: #fff;
耿迪迪's avatar
耿迪迪 committed
97 98 99
  .top {
    width: 100%;
    height: 51px;
100 101 102 103
    background-image: url(../../assets/images/blueTopBg.png);
    background-size: 100% 100%;
    background-position: center;
    color: #fff;
104 105 106 107 108
    &:before {
      content: "";
      position: absolute;
      left: -20px;
      top: 5px;
109 110 111 112
      z-index: -1;
      width: 33px;
      height: 33px;
      background-image: url(../../assets/images/blueLeftTriangle.png);
113
    }
耿迪迪's avatar
耿迪迪 committed
114 115 116 117 118 119 120 121 122 123
    .text {
      font-weight: 600;
      font-size: 16px;
      color: #ffffff;
      line-height: 51px;
    }
    .left {
      padding-left: 22px;
    }
    .right {
124 125 126 127
      padding-right: 22px;
      img {
        cursor: pointer;
      }
耿迪迪's avatar
耿迪迪 committed
128 129
    }
  }
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
  .content {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    overflow-y: auto;
    .eq-content {
      // min-height: 156px;
      box-sizing: border-box;
      padding: 13px 22px 0px 22px;
      // border-bottom: 1px solid #e2e2e2;
      .text-wrapper {
        padding-top: 1px;
        & > div {
          margin-bottom: 6px;
        }
        .eq-text {
          font-size: 14px;
          font-weight: 400;
148
          color: #fff;
149 150 151 152 153 154 155 156 157 158 159
          opacity: 1;
          & > span {
            vertical-align: top;
            display: inline-block;
            // white-space: nowrap;
            // text-overflow: ellipsis;
            // overflow: hidden;
            word-break: break-all;
            max-width: 100px;
          }
        }
耿迪迪's avatar
耿迪迪 committed
160
      }
161 162 163 164 165 166 167 168 169
      .pic {
        width: 180px;
        height: 103px;
        // background-color: black;
        img {
          width: 100%;
          height: 100%;
          // cursor: pointer;
        }
耿迪迪's avatar
耿迪迪 committed
170 171 172 173 174 175
      }
    }
  }

  .maintain-content {
    width: 100%;
176
    max-height: 119px;
耿迪迪's avatar
耿迪迪 committed
177
    padding-left: 22px;
178 179 180
    // padding-right: 22px;
    padding-bottom: 10px;
    // padding-top: 16px;
耿迪迪's avatar
耿迪迪 committed
181
    box-sizing: border-box;
182
    // border-bottom: 1px solid #e2e2e2;
耿迪迪's avatar
耿迪迪 committed
183 184 185 186
    & > div {
      margin-bottom: 8px;
      font-size: 14px;
      font-weight: 400;
187 188 189 190
      span {
        vertical-align: top;
        display: inline-block;
        word-break: break-all;
191
        max-width: 280px;
192
      }
耿迪迪's avatar
耿迪迪 committed
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
    }
  }

  .warn-content {
    height: 82px;
    box-sizing: border-box;
    padding: 8px 0 0 22px;
    border-bottom: 1px solid #e2e2e2;
    & > div {
      font-size: 14px;
      font-weight: 400;
      margin-bottom: 8px;
    }
  }
  .btn {
    padding-top: 32px;
    text-align: center;
    .elbtn {
      background-color: #053b6a;
      box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
      width: 95px;
      height: 33px;
    }
  }
}
218 219 220

.wrapperEditorPage {
}
耿迪迪's avatar
耿迪迪 committed
221 222 223 224 225
.display-default {
  display: flex;
  justify-content: space-between;
}
</style>