quanyawei
2024-06-18 6b7604951f61b7033cc643afe0e4ca67565a1a36
src/views/UVA/index.vue
@@ -7,45 +7,24 @@
      >
        <div style="width: 274px; margin: 13px auto">
          <el-date-picker
            ref="datePick"
            v-model="datenum"
            :picker-options="pickerOptions"
            placeholder="选择日期"
            popper-class="jlpMySelectPopper"
            ref="datePick"
            v-model="datenum"
            value-format="yyyy-MM-dd"
            style="width: 280px"
            @change="chooseDate"
            @blur="chooseDate1"
            @focus="chooseDate2"
            value-format="yyyy-MM-dd"
            style="width: 280px"
          >
          </el-date-picker>
          />
        </div>
        <!-- <el-card class="box-card" style="width: 274px; margin: 13px auto"> -->
        <!-- <div v-else style="height: 180px; width: 274px; overflow-x: hidden">
            <div
              style="
                width: 272px;
                text-align: center;
                height: 180px;
                line-height: 140px;
                font-size: 14px;
                color: #5a5c60;
              "
            >
              无飞行记录
            </div>
          </div> -->
        <!-- </el-card> -->
        <div
          style="width: 274px; margin: 10px auto; border-radius: 8px"
          class="coll"
        >
          <!--accordion 手风琴模式-->
          <el-collapse
            accordion
            style="box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)"
            v-show="shou1 === true"
            v-loading="loading"
          >
@@ -56,23 +35,22 @@
                <img
                  style="position: absolute; left: 18px"
                  src="../../assets/images/uav/uav.png"
                />
                >
                <span
                  style="display: inline-block; position: absolute; left: 20px"
                >
                  该日期暂无无人机数据</span
                >
                  该日期暂无无人机数据</span>
              </template>
            </el-collapse-item>
          </el-collapse>
          <el-collapse
            v-show="shou1 === false"
            ref="collapse"
            v-model="asideData.activeNames"
            v-loading="loading"
            accordion
            style="box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)"
            @change="handleChange"
            ref="collapse"
            v-show="shou1 === false"
            v-loading="loading"
          >
            <el-collapse-item
              v-for="(item1, index) in asideData.uavTimeFly"
@@ -84,12 +62,11 @@
                <img
                  style="position: absolute; left: 18px"
                  src="../../assets/images/uav/uav.png"
                />
                >
                <span
                  style="display: inline-block; position: absolute; left: 20px"
                >
                  {{ item1.name }}</span
                >
                  {{ item1.name }}</span>
              </template>
              <el-scrollbar style="height: 200px; overflow-x: hidden">
                <div
@@ -130,34 +107,37 @@
        >
          <div class="numss">
            <el-radio-group
              v-if="selecttrue === 1"
              v-model="radioSeven"
              size="medium"
              @change="changeCode"
              v-if="selecttrue === 1"
              style="margin-top: 10px; margin-left: 10px"
              @change="changeCode"
            >
              <el-radio-button label="PM2.5"></el-radio-button>
              <el-radio-button label="PM10"></el-radio-button>
              <el-radio-button label="SO2"></el-radio-button>
              <el-radio-button label="NO2"></el-radio-button>
              <el-radio-button label="CO"></el-radio-button>
              <el-radio-button label="03"></el-radio-button>
              <el-radio-button label="TVOC"></el-radio-button>
              <el-radio-button label="PM2.5" />
              <el-radio-button label="PM10" />
              <el-radio-button label="SO2" />
              <el-radio-button label="NO2" />
              <el-radio-button label="CO" />
              <el-radio-button label="03" />
              <el-radio-button label="TVOC" />
            </el-radio-group>
            <div class="Duo" v-if="selecttrue === 2">
            <div
              v-if="selecttrue === 2"
              class="Duo"
            >
              <div class="spantuu">
                <span>无人机飞行高度范围(米): </span>
                <el-input
                  class="inputtu"
                  v-model="tallone"
                  ref="uvas"
                ></el-input>
                  v-model="tallone"
                  class="inputtu"
                />
                --
                <el-input
                  class="inputtu"
                  v-model="talltwo"
                  ref="uvas"
                ></el-input>
                  v-model="talltwo"
                  class="inputtu"
                />
              </div>
              <!-- <el-select v-model="Duovalue" placeholder="其他因子" class="slee">
                <el-option
@@ -169,23 +149,25 @@
                </el-option>
              </el-select> -->
              <div class="spantu">
                <span>图形边长(米): </span
                ><el-input
                  class="inputtu"
                <span>图形边长(米): </span><el-input
                  ref="uvas"
                  v-model="uvasize"
                  class="inputtu"
                  clearable
                  placeholder="请输入内容"
                  ref="uvas"
                ></el-input>
                />
              </div>
              <el-select v-model="Duovalue" placeholder="其他因子" class="slee">
              <el-select
                v-model="Duovalue"
                placeholder="其他因子"
                class="slee"
              >
                <el-option
                  v-for="item in optionsduo"
                  :key="item.code"
                  :label="item.name"
                  :value="item.name"
                >
                </el-option>
                />
              </el-select>
              <!-- <div class="spantuu">
                <span>无人机飞行高度范围(米): </span>
@@ -202,10 +184,17 @@
                ></el-input>
              </div> -->
            </div>
            <div v-if="selecttrue === 1" style="margin-left: 10px">
              <el-button type="primary" @click="gengD" style="margin-top: 10px"
                >更多条件</el-button
            <div
              v-if="selecttrue === 1"
              style="margin-left: 10px"
            >
              <el-button
                type="primary"
                style="margin-top: 10px"
                @click="gengD"
              >
                更多条件
              </el-button>
            </div>
            <div
              v-if="selecttrue === 2"
@@ -216,10 +205,21 @@
                type="primary"
                icon="el-icon-setting"
                @click="dialogFormVisible = true"
                >6参设定</el-button
              >
              <el-button class="gengD" @click="shou">收起</el-button>
              <el-button type="primary" @click="selectDuo">查询</el-button>
                6参设定
              </el-button>
              <el-button
                class="gengD"
                @click="shou"
              >
                收起
              </el-button>
              <el-button
                type="primary"
                @click="selectDuo"
              >
                查询
              </el-button>
            </div>
          </div>
          <!-- <div class="Duo" v-if="selecttrue === 2">
@@ -251,22 +251,67 @@
          </div> -->
        </div>
        <!-- <div v-if="noneData" class="noneData">当前时间没有飞行数据</div> -->
        <div id="map_container" v-loading="loading1" />
        <div
          id="map_container"
          v-loading="loading1"
        />
        <div class="dataParameter">
          <dir class="item">
            <div
              v-for="(item, index) in temMergeDataList"
              v-show="index < 3"
              :key="index"
            >
              <p> {{ item.name }}:{{ item.value }}</p>
            </div>
          </dir>
          <div
            class="item1"
            style="margin-left: 10px;"
          >
            <div
              v-for="(item, index) in temMergeDataList"
              v-show="index > 2"
              :key="index"
            >
              <p> {{ item.name }}:{{ item.value }}</p>
            </div>
          </div>
        </div>
      </el-main>
    </el-container>
    <el-dialog title="6参设定" :visible.sync="dialogFormVisible" width="1000px">
      <el-descriptions title="国控6参" :column="3" border>
    <el-dialog
      title="6参设定"
      :visible.sync="dialogFormVisible"
      width="1000px"
    >
      <el-descriptions
        title="国控6参"
        :column="3"
        border
      >
        <el-descriptions-item
          label="PM2.5 | ug/m³"
          label-class-name="my-label"
          content-class-name="my-content"
          >22</el-descriptions-item
        >
        <el-descriptions-item label="PM10 | ug/m³">34</el-descriptions-item>
        <el-descriptions-item label="SO2 | ug/m³">4</el-descriptions-item>
        <el-descriptions-item label="NO2 | ug/m³">16</el-descriptions-item>
        <el-descriptions-item label="CO | mg/m³">0.5</el-descriptions-item>
        <el-descriptions-item label="O3 | ug/m³">149</el-descriptions-item>
          22
        </el-descriptions-item>
        <el-descriptions-item label="PM10 | ug/m³">
          34
        </el-descriptions-item>
        <el-descriptions-item label="SO2 | ug/m³">
          4
        </el-descriptions-item>
        <el-descriptions-item label="NO2 | ug/m³">
          16
        </el-descriptions-item>
        <el-descriptions-item label="CO | mg/m³">
          0.5
        </el-descriptions-item>
        <el-descriptions-item label="O3 | ug/m³">
          149
        </el-descriptions-item>
      </el-descriptions>
      <!-- <el-descriptions title="设备标准值"  border>
      </el-descriptions> -->
@@ -282,44 +327,81 @@
      >
        设备标准值
      </div>
      <el-table :data="sensorTableData" border>
        <el-table-column prop="sensorName" label="名称" />
        <el-table-column prop="unit" label="单位" />
      <el-table
        :data="sensorTableData"
        border
      >
        <el-table-column
          prop="sensorName"
          label="名称"
        />
        <el-table-column
          prop="unit"
          label="单位"
        />
        <el-table-column label="一级">
          <template slot-scope="scope">
            <el-input v-model="scope.row.tab1" placeholder="请输入内容" />
            <el-input
              v-model="scope.row.tab1"
              placeholder="请输入内容"
            />
            <!-- <span v-show="!scope.row.show">{{ scope.row.tab1 }}</span> -->
          </template>
        </el-table-column>
        <el-table-column label="二级">
          <template slot-scope="scope">
            <el-input v-model="scope.row.tab2" placeholder="请输入内容" />
            <el-input
              v-model="scope.row.tab2"
              placeholder="请输入内容"
            />
          </template>
        </el-table-column>
        <el-table-column label="三级">
          <template slot-scope="scope">
            <el-input v-model="scope.row.tab3" placeholder="请输入内容" />
            <el-input
              v-model="scope.row.tab3"
              placeholder="请输入内容"
            />
          </template>
        </el-table-column>
        <el-table-column label="四级">
          <template slot-scope="scope">
            <el-input v-model="scope.row.tab4" placeholder="请输入内容" />
            <el-input
              v-model="scope.row.tab4"
              placeholder="请输入内容"
            />
          </template>
        </el-table-column>
        <el-table-column label="五级">
          <template slot-scope="scope">
            <el-input v-model="scope.row.tab5" placeholder="请输入内容" />
            <el-input
              v-model="scope.row.tab5"
              placeholder="请输入内容"
            />
          </template>
        </el-table-column>
        <el-table-column label="六级">
          <template slot-scope="scope">
            <el-input v-model="scope.row.tab6" placeholder="请输入内容" />
            <el-input
              v-model="scope.row.tab6"
              placeholder="请输入内容"
            />
          </template>
        </el-table-column>
      </el-table>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="customLevel">确 定</el-button>
      <div
        slot="footer"
        class="dialog-footer"
      >
        <el-button @click="dialogFormVisible = false">
          取 消
        </el-button>
        <el-button
          type="primary"
          @click="customLevel"
        >
          确 定
        </el-button>
      </div>
    </el-dialog>
  </div>
@@ -389,12 +471,20 @@
        break
      }
      if (dLat > 0) pLat = wgsLat
      else mLat = wgsLat
      if (dLon > 0) pLon = wgsLon
      else mLon = wgsLon
      if (dLat > 0) {
        pLat = wgsLat
      } else {
        mLat = wgsLat
      }
      if (dLon > 0) {
        pLon = wgsLon
      } else {
        mLon = wgsLon
      }
      if (++i > 10000) break
      if (++i > 10000) {
        break
      }
    }
    return { lat: wgsLat, lon: wgsLon }
  },
@@ -448,8 +538,12 @@
    var y =
      Math.sin((latA * this.PI) / 180.0) * Math.sin((latB * this.PI) / 180.0)
    var s = x + y
    if (s > 1) s = 1
    if (s < -1) s = -1
    if (s > 1) {
      s = 1
    }
    if (s < -1) {
      s = -1
    }
    var alpha = Math.acos(s)
    var distance = alpha * earthR
    return distance
@@ -515,11 +609,13 @@
export default {
  filters: {
    sensorFilter: function (value) {
      if (!value) return ''
      if (!value) {
        return ''
      }
      return json[value]
    },
  },
  data() {
  data () {
    return {
      dialogFormVisible: false,
      chosee: 1,
@@ -532,7 +628,7 @@
      selecttrue: 1,
      pickerOptions: {
        cellClassName: (time) => {
          let timeDate = moment(time.getTime()).format('yyyy-MM-DD')
          const timeDate = moment(time.getTime()).format('yyyy-MM-DD')
          if (this.timeNums.includes(timeDate)) {
            return 'dateArrClass' // 返回值设置的是我们添加的类名
          }
@@ -601,7 +697,9 @@
          // 最大时间 最小时间
          this.timeOne = minDate.getTime() // 当选一个日期时 就是最小日期
          // 如何你选择了两个日期了,就把那个变量置空
          if (maxDate) this.timeOne = ''
          if (maxDate) {
            this.timeOne = ''
          }
        },
        disabledDate: (time) => {
          if (this.timeOne) {
@@ -775,7 +873,7 @@
      endTime: '',
      dataDate: '',
      sensorTime: [],
      uvasize: 50,
      uvasize: 20,
      timeValue: [
        new Date(2020, 1, 1, 0, 0, 0),
        new Date(2022, 12, 31, 23, 59, 59),
@@ -865,17 +963,11 @@
          tab6: '50000',
        },
      ],
      temMergeDataList: []
    }
  },
  mounted() {
    this.initStart()
    // this.$refs.datePick.focus()
    // this.getDate()
    // this.flyData()
  },
  watch: {
    dataTypeValue(n, o) {
    dataTypeValue (n, o) {
      if (this.dataTypeValue === 'webSocket') {
        this.dateValue = []
        this.historyView = false
@@ -886,18 +978,28 @@
        this.webSocketView = false
      }
    },
    dateValue(n, o) {
    dateValue (n, o) {
      if (n === null) {
        this.dateValue = []
      }
    },
    viewKey(n, o) {
    viewKey (n, o) {
      // console.log(n)
    },
    deep: true,
    immediate: true,
  },
  created() {
  mounted () {
    this.$nextTick(() => {
      this.initStart()
    })
    // this.$refs.datePick.focus()
    // this.getDate()
    // this.flyData()
  },
  created () {
    this.newTime(this.timeValue)
    this.newDate()
    this.getDate()
@@ -905,11 +1007,11 @@
    // this.getFlyData()
  },
  methods: {
    customLevel() {
    customLevel () {
      this.selectDuo()
      this.dialogFormVisible = false
    },
    selectDuo() {
    selectDuo () {
      // console.log(2115);
      if (this.chosee === 1) {
        this.$message.warning('请先在左侧选择无人机时间')
@@ -955,21 +1057,21 @@
        this.initStart(this.carData)
      })
    },
    chooseDate() {
    chooseDate () {
      // this.$refs.datePick.focus() // 选择日期后依旧触发焦点
      this.getTimeAreaData(this.datenum)
      $('.coll').css('margin-top', '350px')
    },
    chooseDate2() {
    chooseDate2 () {
      // this.$refs.datePick.focus() // 选择日期后依旧触发焦点
      // this.getTimeAreaData(this.datenum)
      $('.coll').css('margin-top', '350px')
    },
    chooseDate1() {
    chooseDate1 () {
      $('.coll').css('margin-top', '10px')
      // this.$refs.datePick.focus() // 选择日期后依旧触发焦点
    },
    gengD() {
    gengD () {
      // if (this.zhanK === 1) {
      //   this.$message.warning('请先在左侧选择无人机和时间')
      //   return
@@ -977,11 +1079,11 @@
      this.selecttrue = 2
      $('.numss').css({ width: '1050px' })
    },
    shou() {
    shou () {
      this.selecttrue = 1
      $('.numss').css({ width: '700px' })
    },
    parseTime(time, cFormat) {
    parseTime (time, cFormat) {
      if (arguments.length === 0 || !time) {
        return null
      }
@@ -1021,7 +1123,7 @@
      })
      return time_str
    },
    newTime2(timeArr) {
    newTime2 (timeArr) {
      var arr = []
      timeArr.map((v) => {
        var date = new Date(v)
@@ -1041,11 +1143,11 @@
      return arr
    },
    // 进行经纬度转换为距离的计算
    Rad(d) {
    Rad (d) {
      return (d * Math.PI) / 180.0 // 经纬度转换成三角函数中度分表形式。
    },
    // 计算距离,参数分别为第一点的纬度,经度;第二点的纬度,经度
    GetDistance(lat1, lng1, lat2, lng2) {
    GetDistance (lat1, lng1, lat2, lng2) {
      var radLat1 = this.Rad(lat1)
      var radLat2 = this.Rad(lat2)
      var a = radLat1 - radLat2
@@ -1066,7 +1168,7 @@
      return s
    },
    // 日期格式化
    newDate() {
    newDate () {
      var aData = new Date()
      var month =
        aData.getMonth() < 9
@@ -1076,7 +1178,7 @@
      this.sensorDate = aData.getFullYear() + '-' + month + '-' + date
    },
    // 时间格式化
    newTime(timeArr) {
    newTime (timeArr) {
      let str = ''
      let str2 = ''
      this.sensorTime = []
@@ -1092,7 +1194,7 @@
      })
    },
    // 修改时间
    dateChange(e) {
    dateChange (e) {
      if (e === null) {
        this.sensorDate = []
      } else {
@@ -1107,7 +1209,7 @@
      }
    },
    // 获取无人机以及时间区间
    getTimeAreaData(item) {
    getTimeAreaData (item) {
      // this.asideData.uavTimeFly = []
      this.loading = true
      this.$request({
@@ -1134,19 +1236,19 @@
      })
    },
    // 折叠面板监听
    handleChange(val) {
    handleChange (val) {
      // console.log(val, 222)
    },
    // 经纬度转换为三维坐标系下的 XY 坐标 map.lngLatToGeodeticCoord
    // 选中radio
    selectRedio(item) {
    selectRedio (item) {
      this.map.remove(this.textMarkers.markers)
      this.textMarkers.markers = []
      this.map.remove(this.Layler)
      this.addLayers(item)
    },
    // 初始化地图
    getFlyData(item, index, mac) {
    getFlyData (item, index, mac) {
      // for (var i = 0; i < this.xie.date.length; i++) {
      //   this.xie.date[i].flyLat = this.xie.date[i].flyLat + ' °'.toString()
      //   this.xie.date[i].flyLon = this.xie.date[i].flyLon + ' °'.toString()
@@ -1195,7 +1297,7 @@
      })
    },
    // 获取组织下存在飞行记录的日期
    getDate() {
    getDate () {
      this.$request({
        url: '/uav/queryDate',
        method: 'get',
@@ -1224,11 +1326,34 @@
        }
      })
    },
    initStart(res) {
    initDataParams (res) {
      let options = {TemMergeAvg: '合并范围均值', TemMergedHighest: '合并范围最高值', TemMergedLowest: '合并范围最低值', TemNotMergedAvg: '未合并范围均值', TemNotMergedHighest: '未合并范围最高值', TemNotMergedLowest: '未合并范围最低值'}
      let optionKeys = Object.keys(options)
      this.temMergeDataList = optionKeys.reduce((acc, key) => {
        // 使用正则表达式匹配data对象的键
        let regex = new RegExp(key, 'i')
        let matchedDataKey = Object.keys(res).find(k => regex.test(k))
        if (matchedDataKey) {
          acc.push({
            name: options[key],
            value: res[matchedDataKey]
          })
        }
        return acc
      }, [])
      console.log(this.temMergeDataList)
    },
    initStart (res) {
      console.log('res', res)
      this.abc += 1
      const that = this
      if (res) this.initDataParams(res[0])
      if (!res) {
        that.map = new BMapGL.Map('map_container')
        console.log('BMapGL', BMapGL)
        console.log('BMapGL', BMapGL)
        console.log('window', window.BMapGL)
        that.map.enableScrollWheelZoom(true) // 开启鼠标滚轮,地图可以进行放大、缩小s
        that.map.setMapType(BMAP_EARTH_MAP) // 设置地图类型为地球模式
        that.map.setDisplayOptions({
@@ -1329,7 +1454,7 @@
        // 已有地图,避免再次请求
        // if (!that.showPoints) {
        //   console.log(111)
        //   that.map = new BMapGL.Map('map_container')
        //   that.map = new window.BMapGL.Map('map_container')
        // }
        // that.map.enableScrollWheelZoom(true) // 开启鼠标滚轮,地图可以进行放大、缩小s
        // that.map.setMapType(BMAP_EARTH_MAP) // 设置地图类型为地球模式
@@ -1350,7 +1475,7 @@
        //   building: true, // 不显示建筑物
        //   poiText: false, // 显示poi文字
        // })
        // that.map.addControl(new BMapGL.NavigationControl3D()) // 添加3d控件
        // that.map.addControl(new window.BMapGL.NavigationControl3D()) // 添加3d控件
        if (this.responseJSON.length === 0) {
          showNoPoints()
        }
@@ -1383,7 +1508,7 @@
      // draw(that.sensor, that.viewType, that.carMac)
      // drawLine()// 轨迹(绘制带折线箭头)
      // drawStartAndEnd() // 起点和终点标注
      function draw(sensor, type, carMac) {
      function draw (sensor, type, carMac) {
        var levels = getGrading(sensor, type, carMac)
        $.each(levels, function (index, value) {
          var color = value.color
@@ -1411,7 +1536,7 @@
      }
      // 画方块,上色,添加文字
      function drawPolygon(sensor) {
      function drawPolygon (sensor) {
        $.each(that.showPoints, function (item, point) {
          var sw = getPoint(225, point.lng, point.lat, that.distance)
          var ne = getPoint(45, point.lng, point.lat, that.distance)
@@ -1426,12 +1551,12 @@
              new BMapGL.Point(sw.lng, ne.lat), // 右下角
            ],
            {
              strokeWeight: 0.1, //边框线的宽度,以像素为单位
              strokeWeight: 0.1, // 边框线的宽度,以像素为单位
              // strokeOpacity: 0.0, //边线的透明度
              fillColor: color, //是否需要填充色
              fillOpacity: 0.8, //填充色的透明度,0~1之间
              strokeColor: 'black', //边框线的颜色
              strokeStyle: 'solid', //边线的样式,solid或dashed。
              fillColor: color, // 是否需要填充色
              fillOpacity: 0.8, // 填充色的透明度,0~1之间
              strokeColor: 'black', // 边框线的颜色
              strokeStyle: 'solid', // 边线的样式,solid或dashed。
            }
          )
          that.map.addOverlay(polygon)
@@ -1441,7 +1566,7 @@
      }
      // 起点和终点标注
      function drawStartAndEnd() {
      function drawStartAndEnd () {
        var startIcon = new BMapGL.Icon(
          require('@/assets/images/start.png'),
          new BMapGL.Size(48, 48)
@@ -1466,7 +1591,7 @@
      }
      // 绘制带箭头折线
      function drawLine() {
      function drawLine () {
        var data = []
        var points = []
        $.each(trackPoints, function (index, value) {
@@ -1493,7 +1618,7 @@
      }
      // 格子间隔>=size的放进points
      function getShowPoints(size) {
      function getShowPoints (size) {
        var points = []
        points.push(trackPoints[0])
        for (var i = 1; i < trackPoints.length; i++) {
@@ -1517,7 +1642,7 @@
      }
      // 根据中心,角度,距离,找点
      function getPoint(angle, lng, lat, distance) {
      function getPoint (angle, lng, lat, distance) {
        var EARTH_RADIUS = 6378137 // 地球的半径,m
        // 将距离转换成经度的计算公式
        var ra = distance / EARTH_RADIUS
@@ -1542,7 +1667,7 @@
        return new BMapGL.Point(lng, lat)
      }
      function getGrading(sensor, type, carMac) {
      function getGrading (sensor, type, carMac) {
        var levels = []
        var level0 = {}
        var level1 = {}
@@ -1690,7 +1815,7 @@
        levels.push(level0, level1, level2, level3, level4, level5, level6)
        return levels
      }
      function getColorAndLevel(senosor, data) {
      function getColorAndLevel (senosor, data) {
        var levelData = that.sensorTableData
        var colorAndLevel = {}
        var color
@@ -1889,7 +2014,7 @@
      }
      // point上添加label文本
      function setLabelStyle(content, point) {
      function setLabelStyle (content, point) {
        var label = new BMapGL.Label(
          "<span class='my-maptip'>" + content + '<br /><span>', // 为lable填写内容
          {
@@ -1916,7 +2041,7 @@
      }
      // 无数据时,缩放至该中心
      function showNoPoints() {
      function showNoPoints () {
        that.map.centerAndZoom('苏州市', 17)
        setTimeout(function () {
          document.getElementById('cpm').style.display = 'block'
@@ -1935,7 +2060,7 @@
      })
      // var that = this
      function clickChange() {
      function clickChange () {
        $('.carTop').on('click', () => {
          // console.log('点击了')
          that.view.removeAllLayers()
@@ -1965,7 +2090,7 @@
        clickChange()
      }
    },
    changeCode(value) {
    changeCode (value) {
      switch (value) {
        case 'PM2.5':
          this.sensorKey = 'a34004'
@@ -2007,7 +2132,22 @@
}
</script>
<style  lang="scss" >
<style  lang="scss" scoped>
.main-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-flow: column;
  flex-flow: column;
  min-height: 100%;
  -webkit-transition: margin-left 0.28s;
  transition: margin-left 0.28s;
  margin-left: 210px;
  position: relative;
  height: 100%;
}
/deep/.BMap_cpyCtrl {
  display: none;
}
@@ -2182,20 +2322,7 @@
/deep/.inputNum {
  width: 4% !important;
}
.dateArrClass {
  position: relative;
}
.dateArrClass > div ::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 23px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  z-index: 999;
  background-color: #f40;
}
.numss {
  width: 700px;
  background-color: white;
@@ -2242,17 +2369,10 @@
    width: 20%;
  }
}
.jlpMySelectPopper.el-picker-panel {
  width: 280px;
  height: 330px;
}
.jlpMySelectPopper.el-date-picker table {
  width: 88%;
}
.BMap_cpyCtrl {
  display: none;
}
.anchorBL {
  display: none;
}
@@ -2267,4 +2387,42 @@
.el-scrollbar__wrap {
  overflow-x: hidden;
}
</style>
.dataParameter{
  background-color: rgba(192, 192, 192, 0.4);
  position: absolute;
  bottom: 0px;
  padding: 10px;
  color: #000;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  .item{
    margin: 0px;
    padding: 0px;
  }
}
</style>
<style >
.jlpMySelectPopper.el-picker-panel {
  width: 280px;
  height: 330px;
}
.jlpMySelectPopper.el-date-picker table {
  width: 88%;
}
.dateArrClass {
  position: relative;
}
.dateArrClass > div ::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 23px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  z-index: 999;
  background-color: #f40;
}
</style>