From 067d3cdc2e6b46c7d6636668e7ff854a11bf6546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BE=B7=E4=BA=91?= Date: Thu, 4 Dec 2025 00:07:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B6=85=E5=A3=B0=E6=B3=A2?= =?UTF-8?q?=E6=B5=8B=E6=B6=B2=E4=BD=8D=E7=9A=84=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ngtools/NGCalcTools.js | 12 + src/components/NGTools/meterPar.vue | 743 +++++++++--------- src/layout/components/Sidebar/SidebarItem.vue | 1 + src/views/ngtools/FlowCal/index.vue | 621 ++++++++------- vite.config.js | 3 +- 5 files changed, 706 insertions(+), 674 deletions(-) diff --git a/src/api/ngtools/NGCalcTools.js b/src/api/ngtools/NGCalcTools.js index 78ca658..2519edc 100644 --- a/src/api/ngtools/NGCalcTools.js +++ b/src/api/ngtools/NGCalcTools.js @@ -22,5 +22,17 @@ export function calcFlow(data) { } }) } +// 页面深度计算 +export function calcWaterDeep(data) { + return request({ + url: '/WaterDeepCalc/calculatedepth', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) +} + \ No newline at end of file diff --git a/src/components/NGTools/meterPar.vue b/src/components/NGTools/meterPar.vue index 12eed84..5585fdd 100644 --- a/src/components/NGTools/meterPar.vue +++ b/src/components/NGTools/meterPar.vue @@ -1,19 +1,26 @@ + .app-container { + height: 100%; + } + + .flex-form { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); + gap: 5px; + } + \ No newline at end of file diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index 01deffd..7506588 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -36,6 +36,7 @@ function hasOneShowingChild(children: RouteItem[] = [], parent: RouteItem) { }; function resolvePath(routePath: string, routeQuery?: any) { + console.log(routeQuery); if (isExternal(routePath)) return routePath if (isExternal(props.basePath!)) return props.basePath diff --git a/src/views/ngtools/FlowCal/index.vue b/src/views/ngtools/FlowCal/index.vue index 5ff2283..376db95 100644 --- a/src/views/ngtools/FlowCal/index.vue +++ b/src/views/ngtools/FlowCal/index.vue @@ -1,7 +1,7 @@ + .message-box { + position: fixed; + top: 20px; + left: 50%; + transform: translateX(-50%); + background-color: #333; + color: white; + padding: 10px 20px; + border-radius: 5px; + z-index: 9999; + } + \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 84d50c3..03313da 100644 --- a/vite.config.js +++ b/vite.config.js @@ -31,7 +31,8 @@ export default defineConfig(({ mode, command }) => { proxy: { // https://cn.vitejs.dev/config/#server-proxy '/dev-api': { - target: 'http://ngtools.cn:9999', + + target: 'http://192.168.3.19:9999', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') },