he wei
2023-05-04 fa006c5a912efbd53f74069a5109fd0a89c736cf
U 屏蔽换肤
5个文件已修改
63 ■■■■■ 已修改文件
src/layout/components/Navbar.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/theme.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dataTest/realTimeFbo4831.vue 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/pageSetting/components/platformName.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/pageSetting/i18n/platformName.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/Navbar.vue
@@ -49,8 +49,8 @@
                :content="processPowerMsg"></progress-state>
              <progress-state icon="el-icon-jiankong" :state="processInfo.control"
                :content="processControlMsg"></progress-state>
              <progress-state icon="el-icon-pifu" :state="1" :content="themeInfo"
                @handleClick="handleClick"></progress-state>
              <!-- <progress-state icon="el-icon-pifu" :state="1" :content="themeInfo"
                @handleClick="handleClick"></progress-state> -->
              <!-- <progress-state icon="el-icon-dapingzhanshi_active" :state="1" content="大屏展示"
                @handleClick="showBigScreen"></progress-state> -->
            </div>
src/store/modules/theme.js
@@ -2,11 +2,11 @@
    namespaced: true,
    state() {
        return {
            themeName: localStorage.getItem('skinName') || '科技蓝',
            themeName: localStorage.getItem('skinName') || 'Green',
            fontTimes: 1,
            close: 0,
            collapse: 0,
            activeSkin: localStorage.getItem('activeSkin') || 'science-blue'
            activeSkin: localStorage.getItem('activeSkin') || 'science-green'
        }
    },
    mutations: {
src/views/dataTest/realTimeFbo4831.vue
@@ -269,23 +269,23 @@
        this.resize();
      });
    },
    "$store.state.settings.lang": {
      handler(v) {
        this.$nextTick(() => {
          this.sendMessage();
          vol.series[0].markLine.data.map((v) => {
            if('low' == v.name1) {
              v.name = this.$t('markLine.low');
            }
            if('high' ==  v.name1) {
              v.name = this.$t('markLine.high');
            }
          });
          this.setChart();
        });
      },
      immediate: true
    }
    // "$store.state.settings.lang": {
    //   handler(v) {
    //     this.$nextTick(() => {
    //       this.sendMessage();
    //       vol.series[0].markLine.data.map((v) => {
    //         if('low' == v.name1) {
    //           v.name = this.$t('markLine.low');
    //         }
    //         if('high' ==  v.name1) {
    //           v.name = this.$t('markLine.high');
    //         }
    //       });
    //       this.setChart();
    //     });
    //   },
    //   immediate: true
    // }
  },
  data() {
    let permits = this.$store.state.user.permits;
@@ -796,7 +796,7 @@
      this.diagram.type = -1;
      this.devWorkstate = -1;
      this.devTesttype = '--';
      this.setStateList("workState", this.$t('unconnected'));
      this.workState = this.$t('unconnected');
      this.diagram.temp = 0;
      // 通讯状态
      this.setStateList("connect", this.$t('abnormal'), "table-row-error");
@@ -1529,6 +1529,18 @@
    if (battGroupId) {
      this.getBattGroupInfo(battGroupId);
    }
    this.$bus.$on('langChanged', () => {
      this.sendMessage();
      vol.series[0].markLine.data.map((v) => {
        if ('low' == v.name1) {
          v.name = this.$t('markLine.low');
        }
        if ('high' == v.name1) {
          v.name = this.$t('markLine.high');
        }
      });
      this.setChart();
    });
    // 查询拓扑图状态的显示
    this.searchStatus();
    // 查询控制按钮的配置
src/views/pageSetting/components/platformName.vue
@@ -22,8 +22,9 @@
import const_rules from "@/assets/js/const/const_rules";
import { searchParam, updateParam } from "@/views/pageSetting/js/api";
import i18n from '../i18n/platformName';
import i18nRule from '@/assets/js/i18n/const_rules';
import { createI18nOption } from '@/assets/js/tools/i18n';
const i18nMixin = createI18nOption(i18n);
const i18nMixin = createI18nOption(i18n, [[i18nRule, 'rule']]);
export default {
  name: "platformName",
  mixins: [i18nMixin],
@@ -79,7 +80,7 @@
      // 校验字符串是否合法
      let nameCheckRs = checkVal(this.obj.param, const_rules.noSpecialChar);
      if (nameCheckRs.code == 0) {
        this.$layer.msg(nameCheckRs.msg);
        this.$layer.msg(this.$t('rule.' + nameCheckRs.msg));
        return;
      }
      updateParam(this.obj)
src/views/pageSetting/i18n/platformName.js
@@ -11,7 +11,7 @@
    US: {
      PlatformNameModify: 'Platform Name Modify',
      RecoverRefresh: 'Recover/Refresh',
      BatteryRemoteOMManagementSystem: 'Battery Remote O-M Management System',
      BatteryRemoteOMManagementSystem: 'Battery Remote O&M Management System',
      Failedtoobtaintheplatformnamepleasecontacttheadministrator: 'Failed to obtain the platform name, please contact the administrator.',
      Theplatformnameisnull: 'The platform name is null.',
      ModifySuccessfullyItwilltakeeffectafterrelogin: 'Modify Successfully! It will take effect after re-login!',