zhuzhuanzhuan
2023-07-19 89905a0cc5d9d37a3f61b51d5432290fbd4b8365
统计分析界面的接口调取,渲染,调整
已修改1个文件
32 ■■■■ 文件已修改
src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue
@@ -4,7 +4,7 @@
    <div style="width: 100%; height: 44px; background-color: #fff" class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
          <a-col :md="4" :sm="4" :xs="4">
          <a-col :md="5" :sm="5" :xs="5">
            <a-form-item label="名称">
              <a-input placeholder="输入设备名称查询" :readOnly="readOnly" v-model="queryParam.tierName"></a-input>
            </a-form-item>
@@ -125,7 +125,7 @@
        url: {
          getEquipmentByPid: '/mdc/mdcequipment/getEquipmentByPid',
          dayStatisticalRate:'/mdc/efficiencyReport/dayStatisticalRate',
          getBaseTree: '/mdc/mdcequipment/loadTree',
          getBaseTree: '/mdc/mdcEquipment/queryTreeListByProduction',
        },
      }
    },
@@ -562,14 +562,14 @@
            if(res.success){
              // console.log(res);
              this.StatCharOpeningRate = res.result.openRate;
              this.StatCharUsedRate = res.result.usedRate;
              this.StatCharUsedRate = res.result.utilizationRate;
              this.UtilizationHeight = res.result.openRate;
              this.StatCharUsedopeningRate = res.result.usedopeningRate;
              this.StartupHeight = res.result.usedopeningRate;
              this.openingLong = this.getTime(res.result.openingLong)
              this.waitingLong = this.getTime(res.result.waitingLong);
              this.processLong = this.getTime(res.result.processingLong);
              this.closedLong = this.getTime(res.result.closedLong);
              this.StatCharUsedopeningRate = res.result.StartupHeight;
              this.StartupHeight = res.result.StartupHeight;
              this.openingLong = this.getTime(res.result.openLong)
              this.waitingLong = this.getTime(res.result.waitLong);
              this.processLong = this.getTime(res.result.processLong);
              this.closedLong = this.getTime(res.result.closeLong);
              this.totalLong = parseInt(this.openingLong) + parseInt(this.closedLong);
              this.draw();
            }
@@ -586,7 +586,7 @@
        getAction(this.url.getBaseTree).then((res) => {
          if (res.success) {
            // console.log(res.result[0].entity.tierName)
            _this.$set(this.queryParam, 'tierName', res.result[0].entity.tierName)
            _this.$set(this.queryParam, 'tierName', res.result[0].title)
          } else {
            this.$message.warn(res.message)
          }
@@ -621,16 +621,16 @@
    watch: {
      equip(val) {
          // console.log(val);
          if (val.entity && val.entity.equipmentId) {
            this.$set(this.queryParam, 'tierName', val.entity.tierName)
            this.$set(this.queryParam, 'equipmentId', val.entity.equipmentId)
          if (val && val.equipmentId) {
            this.$set(this.queryParam, 'tierName', val.title)
            this.$set(this.queryParam, 'equipmentId', val.equipmentId)
            this.queryParams.parentId = ''
            this.queryParams.equipmentIds = val.entity.equipmentId
            this.queryParams.equipmentIds = val.equipmentId
            this.searchQuery()
          }else{
            this.queryParams.parentId = val.entity.id
            this.queryParams.parentId = val.key
            this.queryParams.equipmentIds = ''
            this.$set(this.queryParam, 'tierName', val.entity.tierName)
            this.$set(this.queryParam, 'tierName', val.title)
            this.searchQuery()
            }
            this.searchQuery()