whychw
2020-10-12 2169781f226f7799b9e59710e547fa17540b81c0
U 电机页面修改
3个文件已修改
29 ■■■■■ 已修改文件
src/components/Circuit.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/GTemp.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/motor/index.vue 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Circuit.vue
@@ -193,6 +193,9 @@
      ctx.save();
      ctx.textAlign = 'right';
      ctx.fillText(this.voltage + '主电', 110, 50);
      //
      ctx.fillText(this.voltage, 258, 40);
      ctx.fillText('630V', 408, 40);
      ctx.restore();
      // 开关
src/components/GTemp.vue
@@ -57,7 +57,7 @@
        return {
            range: this.max - this.min,
            canvasWidth: 180,
            canvasHeight: 560,
            canvasHeight: 570,
            // 总长度
            extent: 460 - 40 * Math.cos(30 * Math.PI / 180)
        }
@@ -244,11 +244,11 @@
             * 画读数
             */
            ctx.save();
            ctx.font = '32px Arial';
            ctx.font = '50px Arial';
            ctx.fillStyle = '#ff0';
            ctx.beginPath();
            ctx.translate(90, 484);
            ctx.fillText(value + '℃', 0, 60);
            ctx.fillText(value + '℃', 0, 68);
            ctx.closePath();
            ctx.restore();
            
src/views/motor/index.vue
@@ -395,7 +395,7 @@
      motor_id: 0,
      motor_ip: '',
      // 电路图 电压
      G_voltage: '690V',
      G_voltage: '10kV',
      // 电路图 开关
      G_switch: true,
      // 电路图 状态
@@ -688,6 +688,7 @@
        res = JSON.parse(res.data.result);
        if (res.code) {
          // console.log(res.data);
          // debugger;
          const data = res.data[0];
          // 电机水冷进出水风温
          this.GList2[0].value = data.load_motor_inwater_tmp / 10;
@@ -697,9 +698,9 @@
          this.GList2[3].value = data.load_motor_wind_tmp2 / 10;
          this.GList2[4].value = data.load_motor_wind_tmp3 / 10;
          // 备用绕组温度
          this.GList2[5].value = data.load_motor_wind_tmp1_bp / 10;
          /*this.GList2[5].value = data.load_motor_wind_tmp1_bp / 10;
          this.GList2[6].value = data.load_motor_wind_tmp2_bp / 10;
          this.GList2[7].value = data.load_motor_wind_tmp3_bp / 10;
          this.GList2[7].value = data.load_motor_wind_tmp3_bp / 10;*/
          // 加载电机轴承温度
          this.GList2[8].value = data.load_motor_bear_tmp1 / 10;
          this.GList2[9].value = data.load_motor_bear_tmp2 / 10;
@@ -1043,7 +1044,7 @@
      for (let i = 0; i < 6; i++) {
        this.$refs['G_temp_' + i][0].drawPoint(this.GList[i].value);
      }
      for (let i = 0; i < 7; i++) {
      for (let i = 0; i < 10; i++) {
        this.$refs['G_temp2_' + i][0].drawPoint(this.GList2[i].value);
      }
    }
@@ -1724,12 +1725,14 @@
    flex-direction: column;
    /*border: 2px #15e3f3 solid;*/
    /*border: 2px #053134 solid;*/
    border: 2px #00aaff solid;
    border: 4px #00aaff solid;
  }
  .temp_title {
    /*border-bottom: 1px #053134 solid;*/
    border-bottom: 1px #00aaff solid;
    padding: 10px;
    padding: 4px 10px;
    text-align: center;
    font-size: .2rem;
  }
  .temp_list {
    flex: 1;
@@ -1759,6 +1762,11 @@
    /*background: #053134;*/
    background: #00aaff;
  }
  .temp_grp .temp_grp_2 .item:nth-child(3):before,
  .temp_grp .temp_grp_2 .item:nth-child(8):before {
    width: 3px;
    background: #15e3f3;
  }
  .tool_bar {
    padding: .1rem .2rem;
  }