From 5dc0b64860c65e86b5481e02bc6e9cb3edfe1231 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 18 Aug 2025 13:51:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/config/getData.js | 8 ++++++++ src/main.js | 3 +++ src/pages/modules/relocation.vue | 24 +++++++++++++++++++++--- src/pages/shells/config-modal.vue | 20 +++++++++++++++++++- yarn.lock | 22 +++++++++++++++++++++- 6 files changed, 73 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4b2c4fe..9504fb7 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "vue-i18n": "8.0.0", "vue-router": "3.5.2", "vue-touch-keyboard": "^0.3.2", + "vue-tour": "^2.0.0", "vuex": "3.6.2" }, "devDependencies": { diff --git a/src/config/getData.js b/src/config/getData.js index 2dd3c0d..4846a0e 100644 --- a/src/config/getData.js +++ b/src/config/getData.js @@ -39,3 +39,11 @@ export const updateStation = (code, st) => post('api/operate/updateStation', { export const getMapInfoByCode = () => get('mapInfo/getMapInfoByCode', {}) export const queryMapAllStation = () => get('station/queryMapAllStation', {}) export const getRouteInfo = () => get('routeInfo/getRouteInfo', {}) +// 下发任务 +export const relocate = (x, y, angle) => get('teaching/relocate', { + x: x, + y: y, + angle: angle +}) +// 关机重启 +export const rebootVehicle = () => get('vehicle/rebootVehicle', {}) \ No newline at end of file diff --git a/src/main.js b/src/main.js index ccc1531..4f1a3e1 100644 --- a/src/main.js +++ b/src/main.js @@ -7,6 +7,8 @@ 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, MessageBox, Message, Progress } from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' +import VueTour from 'vue-tour' +import 'vue-tour/dist/vue-tour.css' import './style/common.styl' import i18n from './i18n/i18n' import './config/rem.js' @@ -34,6 +36,7 @@ Vue.use(Progress) Vue.prototype.$confirm = MessageBox.confirm Vue.prototype.$message = Message Vue.use(VueTouchKeyboard) +Vue.use(VueTour) Vue.prototype.$post = post Vue.config.productionTip = false diff --git a/src/pages/modules/relocation.vue b/src/pages/modules/relocation.vue index 8adb953..fbcf751 100644 --- a/src/pages/modules/relocation.vue +++ b/src/pages/modules/relocation.vue @@ -11,7 +11,7 @@