1
Surpriseplus
2022-09-16 a7e5110ef3f5fe3c9205f7d1a526b9fbbb55d826
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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
164
165
166
167
168
169
170
171
172
173
174
175
<template>
  <div class="waterRigght">
    <div class="top">
      <div class="titleC">智慧水务</div>
      <div class="img"></div>
    </div>
    <div class="bottom">
      <div class="titleC">水务介绍</div>
      <div class="blabel">
        <p>
          智能水表是一种利用<span>现代微电子技术、现代传感技术、智能IC卡技术,</span>对用水量进行计量并进行用水数据传递及结算交易的新型水表。
          智能水表除了可对用水量进行记录和电子显示外,还可以按照入账后的用水金额对用水量进行控制,并且<span>自动完成水价的水费计算,欠费即关阀停水</span>,有效解决了收费难问题。
        </p>
        <p>
          智能水表同时可以进行用水数据存储的功能,在我局与智能水表厂家反复沟通后,现水务管理系统逐渐升级,可以清晰看到开发区每家企业年、月、日、小时的用水量及用水金额,无需人工抄表且运行稳定。
        </p>
        <p>
          安装智能水表的企业可以通过微信公众号了解自家企业<span
            style="color: #049cce"
            >每月、每日用水量及用水金额</span
          >,公众号还开通了欠费提醒功能,保证企业了解自家用水余额后及时缴费,不出现用水空缺。
        </p>
      </div>
    </div>
  </div>
</template>
 
<script>
import { axios_get, axios_post } from "../../../until/request.js";
export default {
  data() {
    return {
      //loCtionList: [],
    };
  },
 
  mounted() {
    setTimeout(() => {
      this.CreateLabel();
    }, 100);
  },
  methods: {
    CreateLabel() {
      window.sceneObj.WaterLocList = [];
      axios_post("/water/waterUnitList").then((response) => {
        for (let i = 0; i < response.data.length; i++) {
          //console.log(response.data);
          var position = sgworld.Creator.CreatePosition(
            response.data[i].lon,
            response.data[i].lat,
            0
          );
          let imagePath = "";
          if (response.data[i].unitType == "1") {
            imagePath = SmartEarthRootUrl + "Workers/img/污水.png";
          }
          if (response.data[i].unitType == "2") {
            imagePath = SmartEarthRootUrl + "Workers/img/水厂.png";
          }
          if (response.data[i].unitType == "3") {
            imagePath = SmartEarthRootUrl + "Workers/img/企业.png";
          }
 
          var label = sgworld.Creator.CreateLabel(
            position,
            response.data[i].abbreviation,
            imagePath,
            {
              font:
                response.data[i].corpId +
                "&" +
                response.data[i].waterMeterNumber +
                "&" +
                response.data[i].unitType,
              // 文本偏移量
              pixelOffset: {
                x: 0,
                y: -80,
              },
              scale: "3",
              imageScale: "1",
              // 无视遮挡
              disableDepthTestDistance: Infinity,
            },
            0,
            ""
          );
          window.sceneObj.WaterLocList.push(label);
          //this.loCtionList.push(label);
        }
 
        window.sceneObj.handler = new Cesium.ScreenSpaceEventHandler(
          sgworld.Viewer.scene.canvas
        );
        let _that = this;
        window.sceneObj.handler.setInputAction(function (event) {
          var pickFeature = sgworld.Viewer.scene.pick(event.position);
          if (Cesium.defined(pickFeature)) {
            let Myvalue = pickFeature.id._label._font._value;
            _that.$store.commit("savewaterClock", Myvalue);
          }
        }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
      });
    },
  },
};
</script>
 
<style lang="less" scoped="scoped">
.waterRigght {
  height: 100%;
  width: 86%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
 
  .top {
    height: 49%;
    width: 100%;
 
    .img {
      margin-top: 50px;
      height: calc(100% - 150px);
      width: 100%;
      background: url("../../../assets/image/Left/water/left.png");
      background-size: 100% 100%;
    }
  }
 
  .bottom {
    height: 49%;
    width: 100%;
 
    .blabel {
      padding-top: 30px;
      height: calc(100% - 38px);
      width: 100%;
      color: #ffffff;
      font-size: 24px;
      line-height: 44px;
      text-indent: 80px;
      display: flex;
      flex-direction: column;
      letter-spacing: 5px;
      align-items: center;
 
      span {
        color: orange;
      }
    }
  }
}
 
.titleC {
  width: 100%;
  height: 38px;
  background-image: url(../../../assets/image/Left/titleC.png);
  background-size: 100% 100%;
  font-family: MytitileName;
  font-size: 24px;
  display: flex;
  align-items: center;
  color: #98deff;
  text-indent: 70px;
  letter-spacing: 3px;
 
  span {
    width: 87%;
    height: 80%;
    display: flex;
    align-items: center;
  }
}
</style>