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; +} +}