From 1a12f9faf7b95f9d8b1134e85c10ef3f6ce1d55d Mon Sep 17 00:00:00 2001 From: liaodeyun Date: Wed, 10 Dec 2025 01:55:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AB=96=E6=8E=92=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NGTools/NGCom.vue | 566 ++++++++++-------- src/components/NGTools/NGResult.vue | 778 +++++++++++++++++++------ src/components/NGTools/meterPar.vue | 457 +++++++++++---- src/components/NGTools/meterResult.vue | 580 +++++++++++------- src/router/routes/staticRoutes.ts | 38 +- src/views/ngtools/FlowCal/index.vue | 44 +- 6 files changed, 1665 insertions(+), 798 deletions(-) diff --git a/src/components/NGTools/NGCom.vue b/src/components/NGTools/NGCom.vue index fe6f725..c23d75a 100644 --- a/src/components/NGTools/NGCom.vue +++ b/src/components/NGTools/NGCom.vue @@ -1,265 +1,339 @@ + - + /* 整体容器间距 */ + .app-container { + padding: 10px; + } + + /* 每行间距,匹配原inline表单的紧凑感 */ + .form-row { + margin-bottom: 12px; + } + + /* 标签列样式:右对齐、统一颜色和字号 */ + .label-col { + text-align: right; + padding-right: 10px; + } + + .form-label { + font-size: 12px; + color: #606266; + /* 匹配Element UI默认标签色 */ + font-weight: 300; + line-height: 32px; + /* 匹配输入框高度,垂直居中 */ + } + + /* 控件列样式:左间距 */ + .control-col { + padding-left: 10px; + } + + /* 合计输入框样式(保留原有类名) */ + .total-input { + background-color: #f5f7fa; + /* 只读输入框默认背景色 */ + } + + /* 小屏幕适配:标签和控件堆叠显示 */ + @media (max-width: 768px) { + .form-row .el-col { + span: 24 !important; + } + + .label-col { + text-align: left; + margin-bottom: 4px; + padding-right: 0; + } + + .control-col { + padding-left: 0; + } + } + \ No newline at end of file diff --git a/src/components/NGTools/NGResult.vue b/src/components/NGTools/NGResult.vue index 4360b70..ab2d35d 100644 --- a/src/components/NGTools/NGResult.vue +++ b/src/components/NGTools/NGResult.vue @@ -1,187 +1,3 @@ - - + + \ No newline at end of file diff --git a/src/components/NGTools/meterPar.vue b/src/components/NGTools/meterPar.vue index 5e6fcac..6366628 100644 --- a/src/components/NGTools/meterPar.vue +++ b/src/components/NGTools/meterPar.vue @@ -1,213 +1,409 @@ \ No newline at end of file diff --git a/src/components/NGTools/meterResult.vue b/src/components/NGTools/meterResult.vue index 738d8ba..84eb4dd 100644 --- a/src/components/NGTools/meterResult.vue +++ b/src/components/NGTools/meterResult.vue @@ -1,231 +1,383 @@ + + + /* 整体容器样式 */ + .app-container { + padding: 10px; + } + + /* 每行间距与垂直居中 */ + .form-row { + margin-bottom: 12px; + align-items: center; + } + + /* 标签列样式:右对齐、统一字号/颜色 */ + .label-col { + text-align: right; + padding-right: 10px; + } + + .form-label { + font-size: 12px; + color: #606266; + /* 匹配Element UI默认标签色 */ + font-weight: 300; + line-height: 32px; + /* 匹配输入框高度,垂直居中 */ + } + + /* 控件列样式:左间距 */ + .control-col { + padding-left: 10px; + } + + /* 只读输入框样式优化(匹配原表单只读样式) */ + .el-input[readonly] { + background-color: #f5f7fa; + color: #606266; + } + + /* 小屏幕适配:标签和控件堆叠显示 */ + @media (max-width: 768px) { + .form-row .el-col { + span: 24 !important; + } + + .label-col { + text-align: left; + margin-bottom: 4px; + padding-right: 0; + } + + .control-col { + padding-left: 0; + } + } + \ No newline at end of file diff --git a/src/router/routes/staticRoutes.ts b/src/router/routes/staticRoutes.ts index 6d683de..2266033 100644 --- a/src/router/routes/staticRoutes.ts +++ b/src/router/routes/staticRoutes.ts @@ -56,25 +56,25 @@ export const constantRoutes: RouteItem[] = [ } ] }, - { - path: '/laboratory', - component: Layout, - meta: { title: '实验室', icon: 'dashboard' }, - children: [ - { - path: 'threeTest', - component: () => import('@/views/three/gltfmode.vue'), - name: 'threeTest', - meta: { title: 'three实验室', icon: 'dashboard' } - }, - { - path: "websocket", - component: () => import('@/views/websocket.vue'), - name: 'websocket', - meta: { title: 'websocket实验室', icon: 'dashboard' } - }, - ] - }, + // { + // path: '/laboratory', + // component: Layout, + // meta: { title: '实验室', icon: 'dashboard' }, + // children: [ + // { + // path: 'threeTest', + // component: () => import('@/views/three/gltfmode.vue'), + // name: 'threeTest', + // meta: { title: 'three实验室', icon: 'dashboard' } + // }, + // { + // path: "websocket", + // component: () => import('@/views/websocket.vue'), + // name: 'websocket', + // meta: { title: 'websocket实验室', icon: 'dashboard' } + // }, + // ] + // }, { path: '/user', component: Layout, diff --git a/src/views/ngtools/FlowCal/index.vue b/src/views/ngtools/FlowCal/index.vue index c3b3ba7..ee8fe32 100644 --- a/src/views/ngtools/FlowCal/index.vue +++ b/src/views/ngtools/FlowCal/index.vue @@ -4,21 +4,49 @@ - - + + + + + + + + + + + + + + + + +
{{ message }}