From bd9c5ae7da98d9f8e3fc9cceeddcca08db72f59d Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 14 Jul 2025 17:52:37 +0800 Subject: [PATCH] no message --- src/config/getData.js | 22 ++++++++++++---------- src/main.js | 3 ++- src/pages/modules/building.vue | 29 ++++++++++++++++++++++++++--- src/pages/modules/home.vue | 15 +++++++++++++++ src/pages/shells/index.vue | 2 +- src/style/common.styl | 12 ++++++++++++ 6 files changed, 68 insertions(+), 15 deletions(-) diff --git a/src/config/getData.js b/src/config/getData.js index 38701ce..55fd66f 100644 --- a/src/config/getData.js +++ b/src/config/getData.js @@ -9,16 +9,18 @@ export const authlogin = (username, password) => post('auth/login', { export const startMapping = (na) => post('teaching/startMapping?mapName=' + na, {}) export const setStation = (sn) => post('teaching/setStation?stationName=' + sn, {}) export const stopMapping = () => post('teaching/stopMapping', {}) -export const getLocalMaps = () => post('teaching/getLocalMaps', {}) -export const synchronzieMap = (map) => post('teaching/synchronzieMap', { - mapName: map -}) -export const restart = () => post('teaching/restart', {}) -export const relocate = (x, y, angle) => post('teaching/relocate', { - x: x, - y: x, - angle: angle -}) +export const oneClickDeployment = (map) => post('teaching/oneClickDeployment?mapName=' + map, {}) +// export const getLocalMaps = () => post('teaching/getLocalMaps', {}) +// export const synchronzieMap = (map) => post('teaching/synchronzieMap', { +// mapName: map +// }) +// export const restart = () => post('teaching/restart', {}) +// export const relocate = (x, y, angle) => post('teaching/relocate', { +// x: x, +// y: x, +// angle: angle +// }) + // 操作 export const queryStation = () => post('api/operate/queryStation', {}) export const queryTaskChain = () => post('api/operate/queryTaskChain', {}) diff --git a/src/main.js b/src/main.js index 3c5a43d..f1f44f7 100644 --- a/src/main.js +++ b/src/main.js @@ -7,7 +7,7 @@ import store from './vuex/store' import '@style/reset.css' import VueTouchKeyboard from 'vue-touch-keyboard' import 'vue-touch-keyboard/dist/vue-touch-keyboard.css' -import { Row, Col, Button, Icon, Dialog, Form, FormItem, Input, Select, Option, Table, TableColumn, Tabs, TabPane, Popover, Loading, Message } from 'element-ui' +import { Row, Col, Button, Icon, Dialog, Form, FormItem, Input, Select, Option, Table, TableColumn, Tabs, TabPane, Popover, Loading, MessageBox, Message } from 'element-ui' import '@style/common.styl' import i18n from './i18n/i18n' import '@config/rem.js' @@ -30,6 +30,7 @@ Vue.use(Tabs) Vue.use(TabPane) Vue.use(Popover) Vue.use(Loading) +Vue.prototype.$confirm = MessageBox.confirm Vue.prototype.$message = Message Vue.use(VueTouchKeyboard) Vue.prototype.$post = post diff --git a/src/pages/modules/building.vue b/src/pages/modules/building.vue index 6f1bcfc..0443d4e 100644 --- a/src/pages/modules/building.vue +++ b/src/pages/modules/building.vue @@ -12,7 +12,7 @@