From 10c8350e0528f314df7dd8dc14abb2861c27fe6a Mon Sep 17 00:00:00 2001 From: guoapeng Date: Mon, 19 May 2025 17:20:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E8=AF=95=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=9D=90=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/system.ts | 1 + src/components/SavePosition/index.vue | 67 +++++++++++++++++++++++++++++++++++ src/views/debug/index.vue | 18 +++++++++- 3 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 src/components/SavePosition/index.vue diff --git a/src/apis/system.ts b/src/apis/system.ts index 4802bcf..07115a4 100644 --- a/src/apis/system.ts +++ b/src/apis/system.ts @@ -3,3 +3,4 @@ import http from 'libs/http' export const debugControl = (params: System.CmdControlParams): Promise => http.post('/debug/cmd', params) export const control = (params: System.CmdControlParams): Promise => http.post('/cmd', params) export const getStatus = (): Promise => http.get('/sys/device-status') +export const getPoint = (): Promise => http.get('/cmd/step/gantry-point') diff --git a/src/components/SavePosition/index.vue b/src/components/SavePosition/index.vue new file mode 100644 index 0000000..e1d99dd --- /dev/null +++ b/src/components/SavePosition/index.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue index 38ce64f..843c30a 100644 --- a/src/views/debug/index.vue +++ b/src/views/debug/index.vue @@ -1,8 +1,9 @@ + + + 保存当前坐标 + + X轴电机
@@ -1222,6 +1230,7 @@ const debug_stop_all_motor = async () => { +
@@ -1288,4 +1297,11 @@ const debug_stop_all_motor = async () => { display: flex; justify-content: center; } +:deep(.el-form-item).button-center { +.el-form-item__content { + width: 100%; + display: flex; + justify-content: center; +} +}