| | |
| | | :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> |
| | |
| | | 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: { |
| | |
| | | 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; |
| | |
| | | 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"); |
| | |
| | | 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(); |
| | | // 查询控制按钮的配置 |
| | |
| | | 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], |
| | |
| | | // 校验字符串是否合法 |
| | | 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) |
| | |
| | | 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!', |