he wei
2023-04-14 b171cc4108035dacffd4d36710cdd576ad438ed8
U 4831实时页面国际化
1个文件已删除
1个文件已修改
1个文件已添加
615 ■■■■■ 已修改文件
src/views/dataTest/js/i18n.js 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dataTest/js/i18n/realTime4831.js 150 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dataTest/realTimeFbo4831.vue 451 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dataTest/js/i18n.js
File was deleted
src/views/dataTest/js/i18n/realTime4831.js
New file
@@ -0,0 +1,150 @@
export default {
  messages: {
    CN: {
      historyData: '历史数据',
      historyRTData: '历史实时数据',
      videoMonitoring: '视频监控',
      communicationStatus: '通讯状态',
      D3EquipmentRoom: '3D机房',
      batteryState: '电池状态',
      stringVoltage: '端电压',
      batteryCurrent: '电池电流',
      updateDate: '更新日期',
      testTime: '测试时长',
      testCapacity: '测试容量',
      remainingCapacity: '剩余容量',
      batteryLife: '续航时长',
      readParameter: '读取参数',
      deviceWorkingState: '设备工作状态',
      testType: '测试类型',
      currentStatus: '当前状态',
      activationStage: '活化阶段',
      voltage: '电压',
      dataExcel: '数据表格',
      export: '导出',
      unknown: '未知',
      circuitTopology: '电路拓扑图',
      cellNo: '单体编号',
      max: '最大值',
      min: '最小值',
      avg: '平均值',
      battMsg: '未获取到电池组的信息',
      unconnected: '未连接',
      abnormal: '异常',
      emergencyStop: '急停',
      discharge: '放电',
      charge: '充电',
      equalizedCharge: '均充',
      activation: '活化',
      onlineMonitoring: '在线监测',
      stoped: '停止态',
      switchClosed: '开关闭合',
      resistanceTest: '内阻测试',
      hour: '时',
      minu: '分',
      stopTesting: '停止测试',
      stopped1: '停止成功',
      failedToStop: '停止失败',
      num: '编号',
      days: '天数',
      mode: '模式',
      stringVolt: '组压',
      peakVolt: '峰压',
      clearDeviceAlarm: '清除设备告警',
      sysPrompt: '系统提示',
      clearSuccessfully: '清除设备告警成功!',
      clearFailed: '清除设备告警失败!',
      stop: '停止',
      maintenance: '养护',
      desulfation: '除硫',
      cell: '单体',
      followed: '已被关注',
      successInFollowingCell: '成功关注单体',
      addFailed: '添加失败',
      restartMsg: '请输入重启密码',
      Ok: '确定',
      Cancel: '取消',
      restartSuccessfully: '发送重启命令成功',
      restartFailed: '发送重启命令失败',
      wrongPassword: '密码不正确',
      noDataExport: '暂无数据,无需导出',
      battRTData: '电池实时数据',
      batteryGroupFullName: '电池组全称',
      online: '在线',
      string: '组端',
    },
    US: {
      historyData: 'History Data',
      historyRTData: 'History Real-time Data',
      videoMonitoring: 'Video Monitoring',
      communicationStatus: 'Communication Status',
      D3EquipmentRoom: '3D Equipment Room',
      batteryState: 'Battery State',
      stringVoltage: 'String Voltage',
      batteryCurrent: 'Battery Current',
      updateDate: 'Update Date',
      testTime: 'Test Time',
      testCapacity: 'Test Capacity',
      remainingCapacity: 'Remaining Capacity',
      batteryLife: 'Battery Life',
      readParameter: 'Read Parameter',
      deviceWorkingState: 'Device Working State',
      testType: 'Test Type',
      currentStatus: 'Current Status',
      activationStage: 'Activation Stage',
      voltage: 'Voltage',
      dataExcel: 'Data Excel',
      export: 'Export',
      unknown: 'Unknown',
      circuitTopology: 'Circuit Topology',
      cellNo: 'Cell No.',
      max: 'Max',
      min: 'Min',
      avg: 'Avg',
      battMsg: 'Battery group information is not obtained.',
      unconnected: 'Unconnected',
      abnormal: 'Abnormal',
      emergencyStop: 'Emergency Stop',
      discharge: 'Discharge',
      charge: 'Charge',
      equalizedCharge: 'Equalized Charge',
      activation: 'Activation',
      onlineMonitoring: 'Online Monitoring',
      stoped: 'Stoped',
      switchClosed: 'Switch Closed',
      resistanceTest: 'Resistance Test',
      hour: 'Hour',
      minu: 'Min',
      stopTesting: 'Stop testing',
      stopped1: 'Stopped!',
      failedToStop: 'Failed to stop!',
      num: 'No.',
      days: 'Days',
      mode: 'Mode',
      stringVolt: 'String Volt',
      peakVolt: 'Peak Volt',
      clearDeviceAlarm: 'Clear device alarm',
      sysPrompt: 'Sys Prompt',
      clearSuccessfully: 'Clear device alarm successfully!',
      clearFailed: 'Failed to clear device alarm.',
      stop: 'Stop',
      maintenance: 'Maintenance',
      desulfation: 'Desulfation',
      cell: 'Cell',
      followed: 'Followed',
      successInFollowingCell: 'Success in following cell',
      addFailed: 'Add Failed!',
      restartMsg: 'Please input the password to restart.',
      Ok: 'Ok',
      Cancel: 'Cancel',
      restartSuccessfully: 'Send restart command successfully!',
      restartFailed: 'Failed to send restart command!',
      wrongPassword: 'Wrong password.',
      noDataExport: 'No data, do not need to export.',
      battRTData: 'battRTData',
      batteryGroupFullName: 'Battery Group Full Name',
      online: 'Online',
      string: 'String',
    }
  }
}
src/views/dataTest/realTimeFbo4831.vue
@@ -3,27 +3,27 @@
    <home-list v-if="homeListShow" slot="header" @toggleChange="toggleChange" @leaf-click="leafClick"></home-list>
    <content-box style="margin-left: 4px; margin-right: 4px" :title="battFullName">
      <div slot="box-tools" class="box-tools">
        <el-tooltip class="item" effect="dark" content="历史数据" placement="bottom">
        <el-tooltip class="item" effect="dark" :content="$t('historyData')" placement="bottom">
          <i class="iconfont el-icon-jinru" @click="syncPage"></i>
        </el-tooltip>
      </div>
      <div slot="box-tools" class="box-tools" style="right: 40px">
        <el-tooltip class="item" effect="dark" content="历史实时数据" placement="bottom">
        <el-tooltip class="item" effect="dark" :content="$t('historyRTData')" placement="bottom">
          <i class="el-iconfont el-icon-s-marketing" @click="historyRealTimeDataDialog.show = true"></i>
        </el-tooltip>
      </div>
      <div slot="box-tools" class="box-tools" style="right: 72px" v-if="esVideoSn">
        <el-tooltip class="item" effect="dark" content="视频监控" placement="bottom">
        <el-tooltip class="item" effect="dark" :content="$t('videoMonitoring')" placement="bottom">
          <i class="el-iconfont el-icon-video-camera-solid" @click="esVideoDialog = true"></i>
        </el-tooltip>
      </div>
      <div style="right: 72px" slot="box-tools" class="box-tools">
        <el-tooltip class="item" effect="dark" content="通讯状态" placement="bottom">
        <el-tooltip class="item" effect="dark" :content="$t('communicationStatus')" placement="bottom">
          <hdw-light :type="isLink"></hdw-light>
        </el-tooltip>
      </div>
      <div slot="box-tools" class="box-tools" style="right: 106px">
        <el-tooltip class="item" effect="dark" content="3D机房" placement="bottom">
        <el-tooltip class="item" effect="dark" :content="$t('D3EquipmentRoom')" placement="bottom">
          <i class="el-iconfont el-icon-office-building" @click="station.show = true"></i>
        </el-tooltip>
      </div>
@@ -31,37 +31,37 @@
        <div class="content-header" slot="header" :model="inputs">
          <div class="table-layout">
            <div class="table-row">
              <div class="table-cell text-right w80">电池状态:</div>
              <div class="table-cell text-right w80">{{ $t('batteryState') }}:</div>
              <div class="table-cell">
                <el-input :value="backInputs.battState" size="small" :disabled="true"></el-input>
              </div>
              <div class="table-cell text-right w80">端电压:</div>
              <div class="table-cell text-right w80">{{ $t('stringVoltage') }}:</div>
              <div class="table-cell">
                <el-input :value="backInputs.group_online_vol" size="small" :disabled="true"></el-input>
              </div>
              <div class="table-cell text-right w80">电池电流:</div>
              <div class="table-cell text-right w80">{{ $t('batteryCurrent') }}:</div>
              <div class="table-cell">
                <el-input :value="backInputs.groupCurr" size="small" :disabled="true"></el-input>
              </div>
              <div class="table-cell text-right w80">更新日期:</div>
              <div class="table-cell text-right w80">{{ $t('updateDate') }}:</div>
              <div class="table-cell">
                <el-input :value="backInputs.recDatetime" size="small" :disabled="true"></el-input>
              </div>
            </div>
            <div class="table-row">
              <div class="table-cell text-right w80">测试时长:</div>
              <div class="table-cell text-right w80">{{ $t('testTime') }}:</div>
              <div class="table-cell">
                <el-input :value="backInputs.battTestTlong" size="small" :disabled="true"></el-input>
              </div>
              <div class="table-cell text-right w80">测试容量:</div>
              <div class="table-cell text-right w80">{{ $t('testCapacity') }}:</div>
              <div class="table-cell">
                <el-input :value="backInputs.battTestCap" size="small" :disabled="true"></el-input>
              </div>
              <div class="table-cell text-right w80">剩余容量:</div>
              <div class="table-cell text-right w80">{{ $t('remainingCapacity') }}:</div>
              <div class="table-cell">
                <el-input :value="backInputs.batt_syrl_cap" size="small" :disabled="true"></el-input>
              </div>
              <div class="table-cell text-right w80">续航时长:</div>
              <div class="table-cell text-right w80">{{ $t('batteryLife') }}:</div>
              <div class="table-cell">
                <el-input :value="backInputs.sysc" size="small" :disabled="true"></el-input>
              </div>
@@ -70,31 +70,31 @@
        </div>
        <div class="page-content">
          <div class="page-content-tools" v-if="control.show && isCanTest">
            <el-button size="mini" type="primary" @click="discharge">读取参数</el-button>
            <el-button size="mini" type="primary" @click="discharge">{{ $t('readParameter') }}</el-button>
          </div>
          <el-tabs v-model="acTabs" type="border-card" class="flex-layout noborder" @tab-click="tabClick">
            <el-tab-pane key="eleLine" label="电路拓扑图" name="eleLine" v-if="pageConfig.eleLine">
            <el-tab-pane key="eleLine" :label="$t('circuitTopology')" name="eleLine" v-if="pageConfig.eleLine">
              <div style="position: absolute; top: 8px; left: 8px">
                <science-box style="position: relative" no-header v-show="batt.fbsdeviceId">
                  <div class="hdw-state-list table-layout">
                    <div class="table-row">
                      <div class="table-cell text-right">设备工作状态:</div>
                      <div class="table-cell text-right">{{ $t('deviceWorkingState') }}:</div>
                      <div class="table-cell">{{ workState }}</div>
                    </div>
                    <div class="table-row">
                      <div class="table-cell text-right">测试类型:</div>
                      <div class="table-cell text-right">{{ $t('testType') }}:</div>
                      <div class="table-cell">
                        {{ devTesttype }}
                      </div>
                    </div>
                    <div class="table-row">
                      <div class="table-cell text-right">当前状态:</div>
                      <div class="table-cell text-right">{{ $t('currentStatus') }}:</div>
                      <div class="table-cell">
                        {{ backInputs.fbo4830Stopstr }}
                      </div>
                    </div>
                    <div class="table-row" v-if="activateCounter">
                      <div class="table-cell text-right">活化阶段:</div>
                      <div class="table-cell text-right">{{ $t('activationStage') }}:</div>
                      <div class="table-cell">
                        {{ activateCounter }}
                      </div>
@@ -108,10 +108,10 @@
                :drop-vol="diagram.dropVol" :dev-type="diagram.devType" :charge-mon="chargeMon"
                :discharge-mon="dischargeMon" :buscouple-switch="buscoupleSwitch"></circuit-diagram>
            </el-tab-pane>
            <el-tab-pane key="vol" label="电压" name="vol">
            <el-tab-pane key="vol" :label="$t('voltage')" name="vol">
              <bar-chart ref="vol" id="vol" unit="V" :show-tools="true" @right-click="chartRightCLick"></bar-chart>
            </el-tab-pane>
            <el-tab-pane key="tblData" label="数据表格" name="tblData" class="el-table-wrapper">
            <el-tab-pane key="tblData" :label="$t('dataExcel')" name="tblData" class="el-table-wrapper">
              <div class="tbl-data-container">
                <div class="tbl-data-body">
                  <el-table stripe size="small" :data="table.datas" :row-class-name="setTableRowClass" height="100%">
@@ -120,7 +120,7 @@
                  </el-table>
                </div>
                <div class="tbl-data-footer">
                  <el-button type="primary" size="mini" round @click="exportFile">导出</el-button>
                  <el-button type="primary" size="mini" round @click="exportFile">{{ $t('export') }}</el-button>
                </div>
              </div>
            </el-tab-pane>
@@ -129,8 +129,8 @@
      </flex-layout>
    </content-box>
    <!-- 放电参数设置 -->
    <el-dialog title="读取参数" width="700px" :visible.sync="dischargeDialog.show" :close-on-click-modal="false" top="0"
      class="dialog-center dialog-params" :modal-append-to-body="false">
    <el-dialog :title="$t('readParameter')" width="700px" :visible.sync="dischargeDialog.show"
      :close-on-click-modal="false" top="0" class="dialog-center dialog-params" :modal-append-to-body="false">
      <!-- :type="" -->
      <fbo-discharge-params v-if="dischargeDialog.show" :batt="batt" :max-mon="devEachgroupBattsum"
        :is-discharge="devWorkstate == 2" @close="closeDisChargeDialog">
@@ -141,13 +141,14 @@
      :close-on-click-modal="false" top="0" class="dialog-center no-bg" :modal-append-to-body="false">
      <history-realtime-data :batt="batt" v-if="historyRealTimeDataDialog.show"></history-realtime-data>
    </el-dialog>
    <el-dialog title="视频监控" width="600px" :visible.sync="esVideoDialog" :close-on-click-modal="false" top="0"
      class="dialog-center" :modal-append-to-body="false">
    <el-dialog :title="$t('videoMonitoring')" width="600px" :visible.sync="esVideoDialog" :close-on-click-modal="false"
      top="0" class="dialog-center" :modal-append-to-body="false">
      <ez-video v-if="esVideoDialog" :sn="esVideoSn"></ez-video>
    </el-dialog>
    <!-- 3d机房 -->
    <el-dialog title="3d机房" class="threeD-dialog" :visible.sync="station.show" :close-on-click-modal="false">
    <el-dialog :title="$t('D3EquipmentRoom')" class="threeD-dialog" :visible.sync="station.show"
      :close-on-click-modal="false">
      <div class="station-contain">
        <three-station :data="station.data"></three-station>
      </div>
@@ -168,7 +169,6 @@
import OutlineCuringParams from "./components/OutlineCuringParams";
// import RestartPlanParams from "./components/RestartPlanParams";
import HistoryRealtimeData from "./components/HistoryRealtimeData";
import NiBian from "./components/NiBian";
import StopCuring from "./components/StopCuring";
import NiBianInfoTab from "./components/NiBianInfoTab";
import dcWorkParams from "./components/dcdc/workParams";
@@ -223,7 +223,7 @@
import JcParams from "@/views/dataTest/components/JcParams";
import { ExportFile } from "@/assets/js/tools/exportFile";
const WSMixin = createWs("RealTime");
import i18n from './js/i18n';
import i18n from './js/i18n/realTime4831';
import { createI18nOption } from '@/assets/js/tools/i18n';
const i18nMixin = createI18nOption(i18n);
@@ -247,7 +247,6 @@
    CuringParams,
    OutlineCuringParams,
    HistoryRealtimeData,
    NiBian,
    StopCuring,
    NiBianInfoTab,
    HdwLight,
@@ -285,7 +284,7 @@
      devEachgroupBattsum: 1,
      liData: [],
      fbo4830IsOnline: 0,
      workState: "未知",
      workState: this.$t('unknown'),
      // guidesDialog: false,
      guidesVal: "",
      guidesData: {},
@@ -328,13 +327,13 @@
        headers: [
          {
            prop: "num1",
            label: "单体编号",
            label: this.$t('cellNo'),
            width: "",
            key1: "",
          },
          {
            prop: "vol1",
            label: "电压(V)",
            label: this.$t('voltage') + "(V)",
            width: "",
            key1: "vol",
          },
@@ -461,260 +460,6 @@
          },
        },
      },
      powerChart: {
        ACVol: [
          {
            id: "ACVolA",
            name: "三项交流电压",
            number: "A",
            min: 0,
            max: 250,
            unit: "伏特(V)",
            color: [
              [0.2, "#FA62E8"],
              [0.8, "#00FFFF"],
              [1, "#DCFD00"],
            ],
          },
          {
            id: "ACVolB",
            name: "三项交流电压",
            number: "B",
            min: 0,
            max: 250,
            unit: "伏特(V)",
            color: [
              [0.2, "#FA62E8"],
              [0.8, "#00FFFF"],
              [1, "#DCFD00"],
            ],
          },
          {
            id: "ACVolC",
            name: "三项交流电压",
            number: "C",
            min: 0,
            max: 250,
            unit: "伏特(V)",
            color: [
              [0.2, "#FA62E8"],
              [0.8, "#00FFFF"],
              [1, "#DCFD00"],
            ],
          },
        ],
        ACCurr: [
          {
            id: "ACCurrA",
            name: "三项交流电流",
            number: "A",
            min: 0,
            max: 100,
            unit: "安培(A)",
            color: [
              [0.2, "#0081FF"],
              [0.8, "#90EC7D"],
              [1, "#E5357E"],
            ],
          },
          {
            id: "ACCurrB",
            name: "三项交流电流",
            number: "B",
            min: 0,
            max: 100,
            unit: "安培(A)",
            color: [
              [0.2, "#0081FF"],
              [0.8, "#90EC7D"],
              [1, "#E5357E"],
            ],
          },
          {
            id: "ACCurrC",
            name: "三项交流电流",
            number: "C",
            min: 0,
            max: 100,
            unit: "安培(A)",
            color: [
              [0.2, "#0081FF"],
              [0.8, "#90EC7D"],
              [1, "#E5357E"],
            ],
          },
        ],
        ACPower: [
          {
            id: "ACPowerA",
            name: "三项交流频率",
            number: "A",
            min: 40,
            max: 80,
            unit: "赫兹(Hz)",
            color: [
              [0.2, "#F8BD45"],
              [0.8, "#00FFFF"],
              [1, "#F3535F"],
            ],
          },
          {
            id: "ACPowerB",
            name: "三项交流频率",
            number: "B",
            min: 40,
            max: 80,
            unit: "赫兹(Hz)",
            color: [
              [0.2, "#F8BD45"],
              [0.8, "#00FFFF"],
              [1, "#F3535F"],
            ],
          },
          {
            id: "ACPowerC",
            name: "三项交流频率",
            number: "C",
            min: 40,
            max: 80,
            unit: "赫兹(Hz)",
            color: [
              [0.2, "#F8BD45"],
              [0.8, "#00FFFF"],
              [1, "#F3535F"],
            ],
          },
        ],
        Cos: [
          {
            id: "CosA",
            name: "三项功率因数",
            number: "A",
            min: 0,
            max: 0.2,
            unit: "",
            color: [
              [0.2, "#F8BD45"],
              [0.8, "#00FFFF"],
              [1, "#F3535F"],
            ],
          },
          {
            id: "CosB",
            name: "三项功率因数",
            number: "B",
            min: 0,
            max: 0.2,
            unit: "",
            color: [
              [0.2, "#F8BD45"],
              [0.8, "#00FFFF"],
              [1, "#F3535F"],
            ],
          },
          {
            id: "CosC",
            name: "三项功率因数",
            number: "C",
            min: 0,
            max: 0.2,
            unit: "",
            color: [
              [0.2, "#F8BD45"],
              [0.8, "#00FFFF"],
              [1, "#F3535F"],
            ],
          },
        ],
        apparentPower: [
          {
            id: "apparentPowerA",
            name: "三项视在功率",
            number: "A",
            min: 0,
            max: 1000,
            unit: "千伏安(KVA)",
            color: [
              [0.2, "#6042FA"],
              [0.8, "#F8BD45"],
              [1, "#00FFFF"],
            ],
          },
          {
            id: "apparentPowerB",
            name: "三项视在功率",
            number: "B",
            min: 0,
            max: 1000,
            unit: "千伏安(KVA)",
            color: [
              [0.2, "#6042FA"],
              [0.8, "#F8BD45"],
              [1, "#00FFFF"],
            ],
          },
          {
            id: "apparentPowerC",
            name: "三项视在功率",
            number: "C",
            min: 0,
            max: 1000,
            unit: "千伏安(KVA)",
            color: [
              [0.2, "#6042FA"],
              [0.8, "#F8BD45"],
              [1, "#00FFFF"],
            ],
          },
        ],
        direct: [
          {
            id: "directVol",
            name: "输出直流电压",
            number: "电压",
            min: 0,
            max: 60,
            unit: "伏特(V)",
            color: [
              [0.2, "#FA62E8"],
              [0.8, "#00FFFF"],
              [1, "#DCFD00"],
            ],
          },
          {
            id: "directCurr",
            name: "输出直流电流",
            number: "电流",
            min: 0,
            max: 100,
            unit: "安培(A)",
            color: [
              [0.2, "#0081FF"],
              [0.8, "#90EC7D"],
              [1, "#E5357E"],
            ],
          },
          {
            id: "directPower",
            name: "输出直流功率",
            number: "功率",
            min: 0,
            max: 100,
            unit: "千瓦(KW)",
            color: [
              [0.2, "#F8BD45"],
              [0.8, "#00FFFF"],
              [1, "#F3535F"],
            ],
          },
        ],
      },
      nibian: {
        show: false,
      },
      stopCuringDialog: {
        show: false,
      },
      fodHeaders: [],
      fodData: [],
      lithiumParams: {
@@ -812,7 +557,7 @@
      vol = {
        title: {
          show: true,
          text: "最大值=0V;最小值=0V;平均值=0V",
          text: `${this.$t('max')}=0V;${this.$t('min')}=0V;${this.$t('avg')}=0V`,
          x: "center",
          textStyle: {
            fontSize: "14",
@@ -820,7 +565,7 @@
        },
        series: [
          {
            name: "电压",
            name: this.$t('voltage'),
            type: "bar",
            data: [],
            markLine: {
@@ -871,7 +616,6 @@
      this.realTimeStateList(data.fod);
      this.loadDevAla(data.rtalarm, data.rsalarm);
      this.getLithiumAnalog(data.li9130State); // 锂电池模拟量
      this.inversionData(data.fbs9100sBuscoupleState);
      // 最后一次核容数据
      this.getLastCapacityTest(data.tinfdata);
      this.dataChangeFlag = Math.random(); // 数据更新
@@ -884,7 +628,7 @@
          if (res.code) {
            this.leafClick(res.data[0]);
          } else {
            this.$layer.msg("未获取到电池组的信息");
            this.$layer.msg(this.$t('battMsg'));
          }
        })
        .catch((error) => {
@@ -1035,18 +779,18 @@
      this.diagram.type = -1;
      this.devWorkstate = -1;
      this.devTesttype = '--';
      this.setStateList("workState", "未连接");
      this.setStateList("workState", this.$t('unconnected'));
      this.diagram.temp = 0;
      // 通讯状态
      this.setStateList("connect", "异常", "table-row-error");
      this.setStateList("connect", this.$t('abnormal'), "table-row-error");
      // 温度
      this.setStateList("devTemp", "未知", "table-row-warn");
      this.setStateList("devTemp", this.$t('unknown'), "table-row-warn");
      // 干接点
      this.setStateList("contact", "未知", "table-row-warn");
      this.setStateList("contact", this.$t('unknown'), "table-row-warn");
      // 核容终止原因
      // this.setStateList("stopReason", "未知");
      // 操作失败原因
      this.setStateList("failReason", "未知");
      this.setStateList("failReason", this.$t('unknown'));
      // 预估续航时长
      //this.setStateList("xuHang", "???");
@@ -1068,8 +812,8 @@
      ).toHold(2);
      let alarms = data.dev61850alarms.split(",");
      if (alarms.length) {
        this.diagram.contactRes = alarms[0] == "true" ? "k1异常" : contactRes;
        this.diagram.dropVol = alarms[3] == "true" ? "D1异常" : dropVol;
        this.diagram.contactRes = alarms[0] == "true" ? "k1" + this.$t('abnormal') : contactRes;
        this.diagram.dropVol = alarms[3] == "true" ? "D1" + this.$t('abnormal') : dropVol;
      } else {
        this.diagram.contactRes = contactRes;
        this.diagram.dropVol = dropVol;
@@ -1083,8 +827,8 @@
      this.devWorkstate = data.devWorkstate;
      //  电路图类型
      let workstatus = parseInt(data.devWorkstate); //[0:'在线监测',1:'放电测试',2:'充电测试',3:'内阻测试',4:'未知'];
      this.workState = (const_fbo4831.workstates[data.devWorkstate] || "未知") + (data.a059AcvolLowFlag ? '(急停)' : '');
      this.devTesttype = { 0: '放电', 1: '充电', 2: '活化', 3: '在线监测', 255: '停止态' }[data.devTesttype] || '未知';
      this.workState = (const_fbo4831.workstates[data.devWorkstate] || this.$t('unknown')) + (data.a059AcvolLowFlag ? '(' + this.$t('emergencyStop') + ')' : '');
      this.devTesttype = { 0: this.$t('discharge'), 1: this.$t('charge'), 2: this.$t('activation'), 3: this.$t('onlineMonitoring'), 255: this.$t('stoped') }[data.devTesttype] || this.$t('unknown');
      this.diagram.desc = "";
      let battstate = this.inputs.battState;
      let alarmstatus = data.devAlarmstate;
@@ -1099,11 +843,11 @@
      if (data.devOnlinevollow) {
        this.inputs.battState = 5;
        this.diagram.type = 5;
        this.diagram.desc = "(开关闭合)";
        this.diagram.desc = "(" + this.$t('switchClosed') + ")";
        this.diagram.powerCut = 1;
        // 当前设备是BTS设备
        if (workstatus === 0 && data.devResTestState !== 0) {
          this.diagram.desc += "(内阻测试)";
          this.diagram.desc += "(" + this.$t('resistanceTest') + ")";
        }
        // 锂电池详细描述为空
@@ -1214,9 +958,9 @@
              monDisTimeLong:
                diagramType == 1 || diagramType == 2 || diagramType == 6
                  ? Math.floor(item.monDisTimelong / 60) +
                  "时" +
                  this.$t('hour') +
                  (item.monDisTimelong % 60) +
                  "分"
                  this.$t('minu')
                  : "---",
              monState: item.monState,
            };
@@ -1241,11 +985,11 @@
        let volBarNum = getBarNum(volTempVol);
        vol.title.text =
          "最大值=" +
          this.$t('max') + "=" +
          volBarNum.max.toFixed(3) +
          "V  最小值=" +
          `V  ${this.$t('min')}=` +
          volBarNum.min.toFixed(3) +
          "V  平均值=" +
          `V  ${this.$t('avg')}=` +
          volBarNum.avg.toFixed(3) +
          "V";
        vol.series[0].data = volTempVol;
@@ -1283,7 +1027,7 @@
        return false;
      }
      this.$layer.confirm(
        "停止测试",
        this.$t('stopTesting'),
        {
          icon: 3,
        },
@@ -1308,10 +1052,10 @@
          res = res.data;
          if (res.code && res.data) {
            // 提示信息
            this.$layer.msg("停止成功");
            this.$layer.msg(this.$t('stopped1'));
          } else {
            // 提示信息
            this.$layer.msg("停止失败!");
            this.$layer.msg(this.$t('failedToStop'));
          }
          // 关闭等待框
          this.$layer.close(loading);
@@ -1321,7 +1065,7 @@
          // 关闭等待框
          this.$layer.close(loading);
          // 提示信息
          this.$layer.msg("停止测试失败,停止测试请求异常!");
          this.$layer.msg(this.$t('failedToStop'));
        });
    },
    // 查询拓扑图状态的显示
@@ -1350,14 +1094,14 @@
      let result = [];
      result.push({
        prop: "num",
        label: "编号",
        label: this.$t('num'),
      });
      // 剩余天数
      let resDay = const_61850.getItemByName("resDay", stateList);
      if (resDay && resDay.show) {
        result.push({
          prop: "RestTime_",
          label: "天数",
          label: this.$t('days'),
        });
      }
      // 工作状态
@@ -1365,7 +1109,7 @@
      if (workModel && workModel.show) {
        result.push({
          prop: "workstate",
          label: "模式",
          label: this.$t('mode'),
        });
      }
      // 组端电压
@@ -1373,7 +1117,7 @@
      if (groupVol && groupVol.show) {
        result.push({
          prop: "vgroupvol",
          label: "组压",
          label: this.$t('stringVolt'),
        });
      }
      // 峰值电压
@@ -1381,7 +1125,7 @@
      if (peakVol && peakVol.show) {
        result.push({
          prop: "vpeakvol",
          label: "峰压",
          label: this.$t('peakVolt'),
        });
      }
      this.fodHeaders = result;
@@ -1452,10 +1196,10 @@
    clearWarn() {
      // 清除告警
      this.$layer.confirm(
        "清除设备告警",
        this.$t('clearDeviceAlarm'),
        {
          icon: 3,
          title: "系统提示",
          title: this.$t('sysPrompt'),
        },
        (index) => {
          // 关闭弹出框
@@ -1471,9 +1215,9 @@
            .then((res) => {
              res = res.data;
              if (res.code && res.data) {
                this.$layer.msg("清除设备告警成功!");
                this.$layer.msg(this.$t('clearSuccessfully'));
              } else {
                this.$layer.msg("清除设备告警失败!");
                this.$layer.msg(this.$t('clearFailed'));
              }
              // 关闭等待
              this.$layer.close(load);
@@ -1498,7 +1242,7 @@
        let data = [];
        if (res.code && res.data) {
          let rsData = res.data2;
          let workModels = ["停止", "养护", "除硫"];
          let workModels = [this.$t('stop'), this.$t('maintenance'), this.$t('desulfation')];
          let list = ["One", "Two", "Three", "Four", "Five"];
          let fodHeaders = this.fodHeaders;
          data = list.map((item, index) => {
@@ -1556,7 +1300,7 @@
        .then((res) => {
          res = res.data;
          if (res.code && res.data) {
            this.$layer.msg("单体#" + searchParams.monNum + "已被关注");
            this.$layer.msg(this.$t('cell') + " #" + searchParams.monNum + this.$t('followed'));
          } else {
            this.addAttentionMon(searchParams);
          }
@@ -1572,9 +1316,9 @@
        .then((res) => {
          res = res.data;
          if (res.code && res.data) {
            this.$layer.msg("成功关注单体#" + params.monNum);
            this.$layer.msg(this.$t('successInFollowingCell') + " #" + params.monNum);
          } else {
            this.$layer.msg("添加失败");
            this.$layer.msg(this.$t('addFailed'));
          }
          this.$layer.close(loading);
        })
@@ -1590,9 +1334,9 @@
      let self = this;
      let batt = this.batt;
      let resetPwd = "restart123456";
      this.$prompt("请输入重启密码", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
      this.$prompt(this.$t('restartMsg'), this.$t('sysPrompt'), {
        confirmButtonText: this.$t('Ok'),
        cancelButtonText: this.$t('Cancel'),
        inputType: "password",
      })
        .then(({ value }) => {
@@ -1605,15 +1349,15 @@
              .then((res) => {
                res = res.data;
                if (res.code) {
                  this.$alert("发送重启命令成功", "系统提示");
                  this.$alert(this.$t('restartSuccessfully'), this.$t('sysPrompt'));
                } else {
                  this.$alert("发送重启命令失败!", "系统提示");
                  this.$alert(this.$t('restartFailed'), this.$t('sysPrompt'));
                }
                this.$layer.close(loading);
              })
              .catch((error) => { });
          } else {
            this.$layer.msg("密码不正确");
            this.$layer.msg(this.$t('wrongPassword'));
          }
        })
        .catch(() => { });
@@ -1672,39 +1416,18 @@
        }
      }
    },
    inversionData(res) {
      // 是逆变的设备
      if (res && regEquipType(this.batt.fbsdeviceId, ["BTS9120", "BTS9110"])) {
        // res = res.data;
        let data = {
          commustate: -1, // 通讯状态
          fanglei_state: -1, // 防雷状态
          rlayworkmode: -1, // 空开状态
        };
        if (res.code && res.data) {
          data = res.data2;
        }
        if (data.rlayworkmode == 1 || data.rlayworkmode == 3) {
          this.buscoupleSwitch = 0;
        } else {
          this.buscoupleSwitch = 1;
        }
      } else {
        this.buscoupleSwitch = 0;
      }
    },
    // 导出表格
    exportFile() {
      let batt = this.batt;
      let time = new Date().getTime();
      if (this.table.datas.length === 0) {
        this.$message.warning("暂无数据,无需导出");
        this.$message.warning(this.$t('noDataExport'));
        return false;
      }
      ExportFile(
        this.dataHeaders,
        this.table.datas,
        batt.stationName + "-电池实时数据(" + time + ")"
        batt.stationName + "-" + this.$t('battRTData') + "(" + time + ")"
      );
    },
    activate() {
@@ -1717,21 +1440,21 @@
      if (batt.stationName && batt.battGroupName) {
        return batt.stationName + "-" + batt.battGroupName;
      }
      return "电池组全称";
      return this.$t('batteryGroupFullName');
    },
    backInputs() {
      const obj = {
        0: "未知",
        1: "停止",
        2: "充电",
        3: "放电",
        4: "均充",
        5: "内阻测试",
        0: this.$t('unknown'),
        1: this.$t('stop'),
        2: this.$t('charge'),
        3: this.$t('discharge'),
        4: this.$t('equalizedCharge'),
        5: this.$t('resistanceTest'),
      },
        list = {
          fbo4830Stopstr: "--",
          battState: "未知",
          group_online_vol: "在线:0.000V;组端:0.000V",
          battState: this.$t('unknown'),
          group_online_vol: this.$t('online') + ":0.000V;" + this.$t('string') + ":0.000V",
          groupCurr: "0.00A",
          recDatetime: "1982-01-01 00:00:00",
          battTestTlong: formatSeconds(0),
@@ -1745,7 +1468,7 @@
      let batt_state_text = obj[this.inputs.battState];
      list.battState = batt_state_text + this.diagram.desc;
      list.group_online_vol = `在线:${this.inputs.onlineVol.toFixed(2)}V;组端:${this.inputs.groupVol.toFixed(2)}V`;
      list.group_online_vol = `${this.$t('online')}:${this.inputs.onlineVol.toFixed(2)}V;${this.$t('string')}:${this.inputs.groupVol.toFixed(2)}V`;
      list.groupCurr = this.inputs.groupCurr.toFixed(2) + "A";
      list.recDatetime = this.inputs.recDatetime;
@@ -1776,7 +1499,7 @@
      return list;
    },
    histroyDataTitle() {
      return this.batt.stationName + "-历史实时数据";
      return this.batt.stationName + "-" + this.$t('historyRTData');
    },
    // 设备连接状态1为未连接 0正常
    isLink() {