feat(视图): 添加炉火参数设置页面并调整时间显示格式

移除炉火段菜单项及相关组件引用
将时间显示格式从中文改为英文
This commit is contained in:
砂糖
2025-12-31 11:32:53 +08:00
parent dc430c0289
commit da097429de
3 changed files with 14 additions and 8 deletions

View File

@@ -31,14 +31,14 @@ export default {
updateDateTime() {
const now = new Date();
// 格式化日期2024-05-20 Monday罗马风格
this.currentDate = now.toLocaleDateString("zh-CN", {
this.currentDate = now.toLocaleDateString("en-US", {
year: "numeric",
month: "2-digit",
day: "2-digit",
weekday: "long"
});
// 格式化时间14:30:0524小时制
this.currentTime = now.toLocaleTimeString("zh-CN", {
this.currentTime = now.toLocaleTimeString("en-US", {
hour: "2-digit",
minute: "2-digit",
second: "2-digit",

View File

@@ -0,0 +1,7 @@
<template>
<!-- 炉火参数设置查看不同的炉具的参数和为炉具写入参数 -->
</template>
<script>
</script>

View File

@@ -38,11 +38,10 @@
<span slot="title">Temper Mill Rolling Force</span>
<!-- 光整机轧制力 -->
</el-menu-item>
<el-menu-item index="6">
<!-- <el-menu-item index="6">
<i class="el-icon-setting"></i>
<span slot="title">Furnace Section</span>
<!-- 炉火段 -->
</el-menu-item>
</el-menu-item> -->
</el-menu>
</div>
</el-col>
@@ -55,7 +54,7 @@
<T3 v-if="activeTab === '3'" ref="t3" />
<T4 v-if="activeTab === '4'" ref="t4" />
<T5 v-if="activeTab === '5'" ref="t5" />
<T6 v-if="activeTab === '6'" ref="t6" />
<!-- <T6 v-if="activeTab === '6'" ref="t6" /> -->
</div>
</el-col>
</el-row>
@@ -68,7 +67,7 @@ import T2 from './panels/T2.vue';
import T3 from './panels/T3.vue';
import T4 from './panels/T4.vue';
import T5 from './panels/T5.vue';
import T6 from './panels/T6.vue';
// import T6 from './panels/T6.vue';
export default {
name: 'Setup',
@@ -78,7 +77,7 @@ export default {
T3,
T4,
T5,
T6
// T6
},
data() {
return {