he wei
2023-04-26 eb26669eddbeb84c9576b83588b36e8073b46279
临时提交
3个文件已修改
1个文件已添加
91 ■■■■ 已修改文件
src/assets/js/const/const_page.js 40 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/i18n/const_page.js 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/pageSetting/components/TabsConfig.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/const/const_page.js
@@ -3,85 +3,85 @@
    {
      key: "eleLine",
      type: 1,
      label: "电路拓扑图",
      label: "CircuitTopology",
      show: 1,
    },
    {
      key: "vol",
      type: 1,
      label: "电压",
      label: "Voltage",
      show: 1,
    },
    {
      key: "res",
      type: 1,
      label: "内阻",
      label: "Resistance",
      show: 1,
    },
    {
      key: "temp",
      type: 1,
      label: "温度",
      label: "Temperature",
      show: 1,
    },
    {
      key: "conduct",
      type: 1,
      label: "电导",
      label: "Conductance",
      show: 1,
    },
    {
      key: "monConnRes",
      type: 1,
      label: "链接条阻值",
      label: "ConnectorImpedance",
      show: 1,
    },
    {
      key: "curr",
      type: 1,
      label: "均衡电流",
      label: "BalancingCurrent",
      show: 1,
    },
    {
      key: "leakVol",
      type: 1,
      label: "漏液电压",
      label: "LeakageVoltage",
      show: 1,
    },
    {
      key: "tblData",
      type: 1,
      label: "数据表格",
      label: "DataExcel",
      show: 1,
    },
    {
      key: "dianchigaojing",
      type: 1,
      label: "电池告警",
      label: "BatteryAlarm",
      show: 1,
    },
    {
      key: "niBianInfoTab",
      type: 1,
      label: "逆变信息",
      label: "InverterInformation",
      show: 1,
    },
    {
      key: "jggdInfoTab",
      type: 1,
      label: "均衡供电",
      label: "BalancePowerSupply",
      show: 1,
    },
    {
      key: "elePrice",
      type: 1,
      label: "电价统计分析",
      label: "ElectricityRateStatisticsAnalysis",
      show: 1,
    },
    {
      key: "bmsInfo",
      type: 1,
      label: "BMS信息",
      label: "BMSInfo",
      show: 1
    },
  ],
@@ -90,42 +90,42 @@
      {
        key: "vol",
        type: 2,
        label: "电压",
        label: "Voltage",
        show: 1,
        value: 2,
      },
      {
        key: "conduct",
        type: 2,
        label: "电导",
        label: "Conductance",
        show: 1,
        value: 3,
      },
      {
        key: "conductPercent",
        type: 2,
        label: "电导百分比",
        label: "ConductancePercentage",
        show: 1,
        value: 4,
      },
      {
        key: "res",
        type: 2,
        label: "内阻",
        label: "Resistance",
        show: 1,
        value: 5,
      },
      {
        key: "temp",
        type: 2,
        label: "温度",
        label: "Temperature",
        show: 1,
        value: 6,
      },
      {
        key: "link",
        type: 2,
        label: "连接条阻抗",
        label: "ConnectorImpedance1",
        show: 1,
        value: 7,
      },
src/assets/js/i18n/const_page.js
New file
@@ -0,0 +1,40 @@
export default {
  messages: {
    CN: {
      CircuitTopology: "电路拓扑图",
      Voltage: "电压",
      Resistance: "内阻",
      Temperature: "温度",
      Conductance: "电导",
      ConnectorImpedance: "链接条阻值",
      BalancingCurrent: "均衡电流",
      LeakageVoltage: "漏液电压",
      DataExcel: "数据表格",
      BatteryAlarm: "电池告警",
      InverterInformation: "逆变信息",
      BalancePowerSupply: "均衡供电",
      ElectricityRateStatisticsAnalysis: "电价统计分析",
      BMSInfo: "BMS信息",
      ConductancePercentage: "电导百分比",
      ConnectorImpedance1: "连接条阻抗",
    },
    US: {
      CircuitTopology: "Circuit Topology",
      Voltage: "Voltage",
      Resistance: "Resistance",
      Temperature: "Temperature",
      Conductance: "Conductance",
      ConnectorImpedance: "Connector Impedance",
      BalancingCurrent: "Balancing Current",
      LeakageVoltage: "Leakage Voltage",
      DataExcel: "Data Excel",
      BatteryAlarm: "Battery Alarm",
      InverterInformation: "Inverter Information",
      BalancePowerSupply: "Balance Power Supply",
      ElectricityRateStatisticsAnalysis: "Electricity Rate Statistics Analysis",
      BMSInfo: "BMS Info",
      ConductancePercentage: "Conductance Percentage",
      ConnectorImpedance1: "Connector Impedance",
    }
  }
}
src/views/home/index.vue
@@ -1254,6 +1254,7 @@
  border-radius: 8px;
  padding: 10px;
  position: relative;
  z-index: 0;
}
.map-content {
src/views/pageSetting/components/TabsConfig.vue
@@ -17,7 +17,8 @@
import getItemByKey from "@/assets/js/tools/getItemByKey";
import i18n from '../i18n/realTime';
import { createI18nOption } from '@/assets/js/tools/i18n';
const i18nMixin = createI18nOption(i18n, [[i18nConst_61850, '61850']]);
import i18nConst_page from '@/assets/js/i18n/const_page';
const i18nMixin = createI18nOption(i18n, [[i18nConst_page, 'page']]);
import {
  getPageParamUserAllList,
  upPageParamUserList,
@@ -25,6 +26,7 @@
} from "@/views/pageSetting/js/api";
export default {
  name: "TabsConfig",
  mixins: [i18nMixin],
  components: {},
  data() {
    return {
@@ -120,6 +122,7 @@
    },
    initList() {
      let tabs = const_page.realTime;
      addPageParamUserList(tabs)
        .then(res => {
          let rs = res.data;
@@ -171,7 +174,7 @@
        return {
          key: item.key,
          type: item.type,
          label: item.label,
          label: this.$t('page.' + item.label),
          show: item.show
        };
      });
@@ -196,6 +199,9 @@
    let tabs = this.getPageConfigData();
    this.status.data = tabs;
    this.searchPageConfig();
    this.$bus.$on('langChanged', () => {
      this.searchPageConfig();
    });
  }
};
</script>