longyvfengyun
2024-06-18 bf6823b05f128755f04cbb07ee279e2004b4ae4d
内容提交
6个文件已修改
126 ■■■■■ 已修改文件
src/assets/js/config.module.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/const/const_devType.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/tools/regEquipType.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dataTest/components/CircuitDiagram.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dataTest/components/diagrams/collect/index.vue 89 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dataTest/realTime.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/config.module.js
@@ -3,7 +3,7 @@
    label: '平台logo',
    des: '显示平台logo状态',
    fileName: 'gjdw',       // gjdw, nfdw, gjdx, qwh, gdnr
    value: false,
    value: true,
  },
  uKey: {
    label: 'uKey',
@@ -92,10 +92,10 @@
     * 云南昆明供电局:'ynkm'
     */
     // name: '',
    // name: 'sxty',   // 请查看alarmPopup是否开启,logo是否开启且为gjdw
    name: 'sxty',   // 请查看alarmPopup是否开启,logo是否开启且为gjdw
    // name: 'tydc',
    // name: 'njck',
    name: 'ynkm',
    // name: 'ynkm',
    //value: false,
  },
  // 是否要(加验签) 安全模式
@@ -122,7 +122,7 @@
    label: "告警弹出框",
    des: "登录平台后,右下方告警弹出框提示",
    // value: false
    value: false
    value: true
  },
  WHYC: {
    label: '自用',
src/assets/js/const/const_devType.js
@@ -112,6 +112,10 @@
      value: 2100,
      label: "智能母联"
    },
    {
      value: 9800,
      label: "FBS9800"
    }
  ],
  power: [
    {
src/assets/js/tools/regEquipType.js
@@ -17,7 +17,7 @@
        BTSSreen: /^9611/,
        equip4016: /^4016/,
        BTS9605: /^9605/,
        BTS9611: /^9611/,
        BTS9611: /^9611|(9800)/,
        power: /^110/,
        power1: /^115/,
        isolating: /^111/,
src/views/dataTest/components/CircuitDiagram.vue
@@ -42,7 +42,10 @@
    :batt-curr="battCurr"
    :dev-temp="devTemp"
    :type="type"
    :hum="hum"
    :temp="temp"
    :update="update"
    :batt="batt"
  ></collect-circuit-diagram>
  <lithium-diagram
    v-else-if="diagramType === 'lithium'"
@@ -243,7 +246,17 @@
          bypassswitchSt: 0xAAAA // 旁路状态(0xAAAA-未接入  0xBBBB-接入旁路)
        }
      }
    }
    },
    temp: {
      // 温度
      type: [String, Number],
      default: 0,
    },
    hum: {
      // 湿度
      type: [String, Number],
      default: 0,
    },
  },
  computed: {
    diagramType() {
src/views/dataTest/components/diagrams/collect/index.vue
@@ -2,6 +2,31 @@
  <div class="diagram-content">
    <div class="diagram-stc" ref="static"></div>
    <div class="diagram-flush" ref="flush"></div>
    <div class="diagram-tools">
      <div class="tools-header">设备状态</div>
      <table class="tools-table">
        <tr>
          <td class="item-label">温 度:</td>
          <td>{{toolsInfo.temp}} ℃</td>
        </tr>
        <tr>
          <td class="item-label">湿 度:</td>
          <td>{{toolsInfo.hum}} %rh</td>
        </tr>
        <tr>
          <td class="item-label">在线电压:</td>
          <td>{{toolsInfo.onlineVol}} V</td>
        </tr>
        <tr>
          <td class="item-label">组端电压:</td>
          <td>{{toolsInfo.groupVol}} V</td>
        </tr>
        <tr>
          <td class="item-label">电池电流:</td>
          <td>{{toolsInfo.battCurr}} A</td>
        </tr>
      </table>
    </div>
  </div>
</template>
@@ -23,6 +48,12 @@
let diagram;
export default {
  props: {
    batt: {
      type: Object,
      default() {
        return {};
      },
    },
    onlineVol: {
      // 在线电压
      type: [String, Number],
@@ -46,6 +77,16 @@
    type: {
      type: Number,
      default: -1,
    },
    temp: {
      // 温度
      type: [String, Number],
      default: 0,
    },
    hum: {
      // 湿度
      type: [String, Number],
      default: 0,
    },
    update: {
      type: Boolean,
@@ -123,6 +164,17 @@
      }
    },
  },
  computed:{
    toolsInfo() {
      return {
        onlineVol: this.onlineVol.toHold(VOL),
        groupVol: this.groupVol.toHold(VOL),
        battCurr: this.battCurr.toHold(CURR),
        temp: this.temp.toHold(TEMP),
        hum: this.hum.toHold(HUM)
      }
    },
  },
  mounted() {
    diagram = circuitDiagram(this.$refs.static, this.$refs.flush);
    // 初始化数据
@@ -137,4 +189,39 @@
};
</script>
<style scoped></style>
<style scoped lang="less">
.diagram-content {
  position: relative;
  .diagram-tools {
    position: absolute;
    top: 0;
    left: 4px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #00fefe;
    min-width: 120px;
    .tools-header {
      color: #003d64;
      background-color: #00fefe;
      padding: 4px 16px;
      font-weight: bold;
      text-align: center;
    }
  }
}
.tools-table {
  user-select: none;
  width: 100%;
  font-size: 14px;
  color: #00fefe;
  td {
    text-align: left;
    padding: 4px 16px 4px 0;
    &.item-label {
      padding-left: 16px;
      padding-right: 0;
      text-align: right;
    }
  }
}
</style>
src/views/dataTest/realTime.vue
@@ -576,6 +576,8 @@
                :discharge-mon="dischargeMon"
                :buscouple-switch="buscoupleSwitch"
                :bypass="diagram.bypass"
                :temp="diagram.devTemperature"
                :hum="diagram.devHumidity"
              ></circuit-diagram>
            </el-tab-pane>
            <el-tab-pane
@@ -1530,7 +1532,9 @@
          k1St: 0xAAAA,           // 接触器k1状态(0-断开  1-闭合)
          urgentswitchSt: 0xAAAA, // 急停状态(0xAAAA-未触发  0xBBBB-触发)
          bypassswitchSt: 0xAAAA // 旁路状态(0xAAAA-未接入  0xBBBB-接入旁路)
        }
        },
        devHumidity: 0,   // 湿度
        devTemperature: 0,  // 温度
      },
      dischargeDialog: {
        show: false,
@@ -2610,6 +2614,8 @@
        //res = res.data;
        if (res.code && res.data) {
          vm.inputs = res.data2;
          this.diagram.devHumidity = res.data2.devHumidity;
          this.diagram.devTemperature = res.data2.devTemperature;
          // 开启模拟数据
          if (sysConfig.analogData.value) {
            vm.inputs.recDatetime = new Date().format("yyyy-MM-dd hh:mm:ss");