quanyawei
2024-06-13 f3a8b27eb23c940dcd67bd459b76b0457fcb8b46
src/components/Wind/Map.vue
@@ -28,7 +28,19 @@
          alt=""
          @click="turnState"
        >
        <span class="text_Time">{{ dateFormat }}</span>
        <span class="text_Time">
          <el-date-picker
            v-model="selectData"
            popper-class="tpc"
            value-format="yyyy-MM-dd HH"
            format="yyyy-MM-dd HH"
            :clearable="false"
            :editable="false"
            type="datetime"
            placeholder="选择日期时间"
            @change="changeData"
          />
        </span>
        <img
          class="drop-icon"
          :src="turnImg"
@@ -432,7 +444,7 @@
      // 总条数,根据接口获取数据长度(注意:这里不能为空)
      totalCount: 0,
      // 个数选择器(可修改)
      pageSizes: [10, 20, 30, 40],
      pageSizes: [10, 50, 100, 200],
      // 默认每页显示的条数(可修改)
      PageSize: 20,
      factorOptions: [
@@ -507,6 +519,7 @@
      turnImg: require('@/assets/images/regionalOverview/dropDown.png'),
      showOrHidden: true,
      dateFormat: '',
      selectData: new Date(),
      alarmTableVisible: false,
      chooseTimeInfo: false, // 是否选择了时间点
      chooseTime: false,
@@ -1549,32 +1562,15 @@
          console.log('level', level)
          if (deviceDetails.a01008) {
            var windDirs = dushu === '-' ? 0 : Number(dushu)
            console.log('windDirs', windDirs)
            WWindUtil.windValueFormat(windDirs)
            console.log('windDirs', WWindUtil.windValueFormat(windDirs))
            windDeg = windDirs
            windTip = 'inline'
            if (windDirs === 0 || windDirs === '-') {
              windDir = '-'
              windTip = 'none'
            } else if (windDirs > 0 && windDirs < 90) {
              windDir = '东北风'
              windTip = 'inline'
            } else if (windDirs === 90) {
              windDir = '东风'
              windTip = 'inline'
            } else if (windDirs > 90 && windDirs < 180) {
              windDir = '东南风'
              windTip = 'inline'
            } else if (windDirs === 180) {
              windDir = '南风'
              windTip = 'inline'
            } else if (windDirs > 180 && windDirs < 270) {
              windDir = '西南风'
              windTip = 'inline'
            } else if (windDirs === 270) {
              windDir = '西风'
              windTip = 'inline'
            } else if (windDirs > 270 && windDirs < 360) {
              windDir = '西北风'
            } else {
              windDir = WWindUtil.windValueFormat(windDirs)
              windTip = 'inline'
            }
          }
@@ -1984,6 +1980,11 @@
      //   that.canvasWind(this.windJsonData)
      // })
      window.map = map
    },
    changeData (val) {
      this.nyr = val + ':00'
      this.chooseTime = true
      this.initData()
    },
    // 更改不同的值区间
    change (index) {
@@ -2454,11 +2455,36 @@
  margin-top: 9px;
  margin-left: 10px;
}
.text_Time {
  float: left;
  margin-left: 37px;
  .el-date-editor{
    width: 145px!important;
    .el-input__prefix{
      display: none!important;
    }
    .el-input__inner{
      cursor: pointer;
      font-size: 18px;
      color: #fff;
      padding: 0px!important;
      border: none;
      background: inherit;
    }
  }
}
.tpc{
  left: unset!important;
  right: 60px;
}
.tpc .el-time-spinner__wrapper {
  width:100% !important;
}
.tpc .el-scrollbar:nth-of-type(2) {
  display: none !important;
}
.my-div-icon {
  font-size: 14px;
  text-align: center;