From d96c5adacf8feda2f50ca62cde64c1efe8933b4a Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Mon, 31 Jul 2023 20:25:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E7=A6=BB=E5=8F=91=E5=B8=83=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/components/Publish.vue | 167 +++++++++++++++++++++++---------------------- src/components/Task.vue | 28 ++++++++ src/pages/index.vue | 32 --------- 4 files changed, 115 insertions(+), 114 deletions(-) diff --git a/.env b/.env index a31fc4b..537b441 100644 --- a/.env +++ b/.env @@ -15,4 +15,4 @@ VITE_HOST_URL=http://127.0.0.1:8081/ # VITE_WEBSOCKET_JAVA_URL=ws://192.168.1.111:8899/websocket/nuclear # # VITE_WEBSOCKET_CAMERA_URL=ws://127.0.0.1:8899/websocket/nuclear # VITE_WEBSOCKET_CAMERA_URL=ws://192.168.1.111:8899/ws/cmd -# VITE_HOST_URL=http://192.168.1.111:8899/ \ No newline at end of file +# VITE_HOST_URL=http://192.168.1.111:8899/ diff --git a/src/components/Publish.vue b/src/components/Publish.vue index 16cc8b1..07af9c2 100644 --- a/src/components/Publish.vue +++ b/src/components/Publish.vue @@ -1,89 +1,91 @@ - + diff --git a/src/components/Task.vue b/src/components/Task.vue index b5af370..b948950 100644 --- a/src/components/Task.vue +++ b/src/components/Task.vue @@ -9,6 +9,14 @@ + + + + @@ -121,6 +140,7 @@ import { } from '@/api/task' import { getNuclearExcelApi } from '@/api' import PathPlan from 'cpns/PathPlan' +import Publish from 'cpns/Publish' import { checkCanDiyPathApi, pathPlanApi, getPlanPathListApi } from '@/api/path' import { useAccountStore, @@ -139,6 +159,7 @@ const cameraStore = useCameraStore() export default { data() { return { + publishVisible: false, excelData: [], pathVisible: false, userList: [], @@ -424,6 +445,7 @@ export default { ], components: { PathPlan, + Publish, }, computed: { actionAddress() { @@ -441,6 +463,12 @@ export default { }, }, methods: { + handleCancel() { + this.publishVisible = false + }, + publishTask() { + this.publishVisible = true + }, async getExcelList(taskId) { const res = await getNuclearExcelApi(taskId) if (res?.code == 200) { diff --git a/src/pages/index.vue b/src/pages/index.vue index 9fa634f..aa4d12d 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -43,31 +43,6 @@