zhuzhuanzhuan
2023-08-25 487754376a1eb675d430a64b7a4aa9e7ffeb405b
src/views/mdc/base/modules/equipmentDayAvail/equipmentDayAvailMain.vue
@@ -163,6 +163,7 @@
      }
    },
    methods: {
      moment,
      drawTu(){
        let dayAvailBar = this.$echarts.init(document.getElementById('dayAvailBar'), 'macarons');
        //dayAvailLine = echarts.init(document.getElementById('dayAvailLine'));
@@ -208,7 +209,7 @@
          series: [
            {
              name: '利用率',
              type: 'bar',
              type: 'line',
              barWidth: 50,
              itemStyle: {
                normal: {
@@ -236,7 +237,7 @@
      },
      handleChange(value) {
        this.queryParam.timeType = value
        console.log(this.queryParam.timeType)
        // console.log(this.queryParam.timeType)
      },
      tabChange(val) {
        this.activeKey = val
@@ -254,10 +255,14 @@
            for(var i = 0;i<res.result.dayRateDto.length;i++){
              this.useingRates.push(res.result.dayRateDto[i].utilizationRate)
            }
            console.log(this,spaceTime)
            // console.log(this,spaceTime)
            this.drawTu()
          } else {
            this.$message.warning(res.message)
            // this.$message.warning(res.message)
            this.$notification.warning({
              message:'消息',
              description:res.message
            });
          }
        }).finally(() => {
          this.loading = false
@@ -295,7 +300,11 @@
            }
            this.drawTu()
          }else{
            this.$message.warning(res.message)
            // this.$message.warning(res.message)
            this.$notification.warning({
              message:'消息',
              description:res.message
            });
          }
        }).finally(() => {
          this.loading = false
@@ -330,7 +339,11 @@
              }
              this.drawTu()
            }else{
              this.$message.warning(res.message)
              // this.$message.warning(res.message)
              this.$notification.warning({
                message:'消息',
                description:res.message
              });
            }
          }).finally(() => {
            this.loading = false
@@ -362,7 +375,11 @@
              }
              this.drawTu()
            }else{
              this.$message.warning(res.message)
              // this.$message.warning(res.message)
              this.$notification.warning({
                message:'消息',
                description:res.message
              });
            }
          }).finally(() => {
            this.loading = false
@@ -384,10 +401,19 @@
              this.queryParams = {}
              // this.queryList()
              this.equipment = {}
              _this.$message.warning('请联系管理员,开放设备权限!')
              // _this.$message.warning('请联系管理员,开放设备权限!')
              _this.$notification.warning({
                message:'消息',
                description:'请联系管理员,开放设备权限!'
              });
            }
          }else{
            this.$message.warning(res.message)
            // this.$message.warning(res.message)
            _this.$notification.warning({
              message:'消息',
              description:res.message
            });
          }
        })
      },
@@ -405,10 +431,18 @@
              this.queryParams = {}
              // this.queryList()
              this.equipment = {}
              _this.$message.warning('请联系管理员,开放设备权限!')
              // _this.$message.warning('请联系管理员,开放设备权限!')
              _this.$notification.warning({
                message:'消息',
                description:'请联系管理员,开放设备权限!'
              });
            }
          }else{
            this.$message.warning(res.message)
            // this.$message.warning(res.message)
            _this.$notification.warning({
              message:'消息',
              description:res.message
            });
          }
        })
      }