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 @@