From 428aa037933089b90dee5048e2955d8f76dc7bc5 Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Wed, 31 Dec 2025 10:25:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E8=8B=B1=E6=96=87=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Breadcrumb/index.vue | 2 +- src/components/TrackMeasure/index.vue | 48 +++++++++++++-------------- src/main.js | 4 ++- src/router/index.js | 2 +- src/views/error/401.vue | 10 +++--- src/views/error/404.vue | 4 +-- 6 files changed, 36 insertions(+), 34 deletions(-) diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index a0a0371..0d23e47 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -47,7 +47,7 @@ export default { } // 判断是否为首页 if (!this.isDashboard(matched[0])) { - matched = [{ path: "/index", meta: { title: "首页" } }].concat(matched) + matched = [{ path: "/index", meta: { title: "Home" } }].concat(matched) } this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) }, diff --git a/src/components/TrackMeasure/index.vue b/src/components/TrackMeasure/index.vue index ab6b89f..169c318 100644 --- a/src/components/TrackMeasure/index.vue +++ b/src/components/TrackMeasure/index.vue @@ -3,7 +3,7 @@
@@ -37,10 +37,10 @@ export default { // 图表相关 chartTypes: [ - { value: 'entry', label: '入口数据监控' }, - { value: 'furnace', label: '炉温数据监控' }, - { value: 'coat', label: '涂层数据监控' }, - { value: 'exit', label: '出口数据监控' } + { value: 'entry', label: 'Entry Data Monitoring' }, + { value: 'furnace', label: 'Furnace Temperature Data Monitoring' }, + { value: 'coat', label: 'Coating Data Monitoring' }, + { value: 'exit', label: 'Exit Data Monitoring' } ], currentChart: 'entry', // 默认显示入口数据图表 chartInstance: null, // 当前图表实例 @@ -143,14 +143,14 @@ export default { return { ...baseOption, legend: { - data: ['入口张力1', '入口张力2', '入口张力3', '带钢速度'], + data: ['Entry Tension 1', 'Entry Tension 2', 'Entry Tension 3', 'Strip Speed'], textStyle: { color: '#333' } }, series: [ - { name: '入口张力1', type: 'line', data: this.chartData.entry.tensionPorBr1, smooth: true, lineStyle: { width: 2 } }, - { name: '入口张力2', type: 'line', data: this.chartData.entry.tensionBr1Br2, smooth: true, lineStyle: { width: 2 } }, - { name: '入口张力3', type: 'line', data: this.chartData.entry.tensionBr2Br3, smooth: true, lineStyle: { width: 2 } }, - { name: '带钢速度', type: 'line', data: this.chartData.entry.stripSpeed, smooth: true, lineStyle: { width: 2 } } + { name: 'Entry Tension 1', type: 'line', data: this.chartData.entry.tensionPorBr1, smooth: true, lineStyle: { width: 2 } }, + { name: 'Entry Tension 2', type: 'line', data: this.chartData.entry.tensionBr1Br2, smooth: true, lineStyle: { width: 2 } }, + { name: 'Entry Tension 3', type: 'line', data: this.chartData.entry.tensionBr2Br3, smooth: true, lineStyle: { width: 2 } }, + { name: 'Strip Speed', type: 'line', data: this.chartData.entry.stripSpeed, smooth: true, lineStyle: { width: 2 } } ] }; @@ -158,13 +158,13 @@ export default { return { ...baseOption, legend: { - data: ['PH炉实际温度', 'NOF1炉实际温度', 'NOF1炉设定温度'], + data: ['PH Furnace Actual Temp', 'NOF1 Furnace Actual Temp', 'NOF1 Furnace Set Temp'], textStyle: { color: '#333' } }, series: [ - { name: 'PH炉实际温度', type: 'line', data: this.chartData.furnace.phFurnaceTemperatureActual, smooth: true, lineStyle: { width: 2 } }, - { name: 'NOF1炉实际温度', type: 'line', data: this.chartData.furnace.nof1FurnaceTemperatureActual, smooth: true, lineStyle: { width: 2 } }, - { name: 'NOF1炉设定温度', type: 'line', data: this.chartData.furnace.nof1FurnaceTemperatureSet, smooth: true, lineStyle: { width: 2, type: 'dashed' } } + { name: 'PH Furnace Actual Temp', type: 'line', data: this.chartData.furnace.phFurnaceTemperatureActual, smooth: true, lineStyle: { width: 2 } }, + { name: 'NOF1 Furnace Actual Temp', type: 'line', data: this.chartData.furnace.nof1FurnaceTemperatureActual, smooth: true, lineStyle: { width: 2 } }, + { name: 'NOF1 Furnace Set Temp', type: 'line', data: this.chartData.furnace.nof1FurnaceTemperatureSet, smooth: true, lineStyle: { width: 2, type: 'dashed' } } ] }; @@ -172,14 +172,14 @@ export default { return { ...baseOption, legend: { - data: ['顶部平均涂层重量', '底部平均涂层重量', '气刀压力', '出口速度'], + data: ['Avg Coating Weight (Top)', 'Avg Coating Weight (Bottom)', 'Air Knife Pressure', 'Exit Strip Speed'], textStyle: { color: '#333' } }, series: [ - { name: '顶部平均涂层重量', type: 'line', data: this.chartData.coat.avrCoatingWeightTop, smooth: true, lineStyle: { width: 2 } }, - { name: '底部平均涂层重量', type: 'line', data: this.chartData.coat.avrCoatingWeightBottom, smooth: true, lineStyle: { width: 2 } }, - { name: '气刀压力', type: 'line', data: this.chartData.coat.airKnifePressure, smooth: true, lineStyle: { width: 2 } }, - { name: '出口速度', type: 'line', data: this.chartData.coat.stripSpeedTmExit, smooth: true, lineStyle: { width: 2 } } + { name: 'Avg Coating Weight (Top)', type: 'line', data: this.chartData.coat.avrCoatingWeightTop, smooth: true, lineStyle: { width: 2 } }, + { name: 'Avg Coating Weight (Bottom)', type: 'line', data: this.chartData.coat.avrCoatingWeightBottom, smooth: true, lineStyle: { width: 2 } }, + { name: 'Air Knife Pressure', type: 'line', data: this.chartData.coat.airKnifePressure, smooth: true, lineStyle: { width: 2 } }, + { name: 'Exit Strip Speed', type: 'line', data: this.chartData.coat.stripSpeedTmExit, smooth: true, lineStyle: { width: 2 } } ] }; @@ -187,13 +187,13 @@ export default { return { ...baseOption, legend: { - data: ['出口张力1', '出口张力2', '出口速度'], + data: ['Exit Tension 1', 'Exit Tension 2', 'Exit Speed'], textStyle: { color: '#333' } }, series: [ - { name: '出口张力1', type: 'line', data: this.chartData.exit.tensionBr8Br9, smooth: true, lineStyle: { width: 2 } }, - { name: '出口张力2', type: 'line', data: this.chartData.exit.tensionBr9Tr, smooth: true, lineStyle: { width: 2 } }, - { name: '出口速度', type: 'line', data: this.chartData.exit.speedExitSection, smooth: true, lineStyle: { width: 2 } } + { name: 'Exit Tension 1', type: 'line', data: this.chartData.exit.tensionBr8Br9, smooth: true, lineStyle: { width: 2 } }, + { name: 'Exit Tension 2', type: 'line', data: this.chartData.exit.tensionBr9Tr, smooth: true, lineStyle: { width: 2 } }, + { name: 'Exit Speed', type: 'line', data: this.chartData.exit.speedExitSection, smooth: true, lineStyle: { width: 2 } } ] }; diff --git a/src/main.js b/src/main.js index cee09f5..4b27318 100644 --- a/src/main.js +++ b/src/main.js @@ -5,6 +5,7 @@ import VueKonva from 'vue-konva'; import Element from 'element-ui' import './assets/styles/element-variables.scss' +import locale from 'element-ui/lib/locale/lang/en' import '@/assets/styles/index.scss' // global css // import '@/assets/styles/ruoyi.scss' // ruoyi css @@ -72,7 +73,8 @@ DictData.install() */ Vue.use(Element, { - size: Cookies.get('size') || 'small' // set element-ui default size + size: Cookies.get('size') || 'small', // set element-ui default size + locale: locale // set element-ui default locale }) Vue.config.productionTip = false diff --git a/src/router/index.js b/src/router/index.js index bbfd237..5c3118d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -70,7 +70,7 @@ export const constantRoutes = [ path: 'index', component: () => import('@/views/index'), name: 'Index', - meta: { title: '首页', icon: 'dashboard', affix: true } + meta: { title: 'Home', icon: 'dashboard', affix: true } } ] }, diff --git a/src/views/error/401.vue b/src/views/error/401.vue index 448b6ec..d0e0df3 100644 --- a/src/views/error/401.vue +++ b/src/views/error/401.vue @@ -1,19 +1,19 @@