From 7974aeabe416fa201b9e6fe226d93c0c4b940db2 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Thu, 8 Aug 2024 17:38:45 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BA=8C=E6=9C=9F=EF=BC=9A=E9=A2=84?= =?UTF-8?q?=E7=BA=A6=E5=88=97=E8=A1=A8=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron.vite.config.mjs | 4 +- src/renderer/src/api/classManage/index.js | 16 +++++ src/renderer/src/layout/components/Header.vue | 1 + src/renderer/src/router/index.js | 6 ++ .../src/views/classManage/classReserv.vue | 56 +++++++++++++++ .../src/views/classManage/reserv-item.vue | 72 +++++++++++++++++++ .../src/views/prepare/container/reserv.vue | 44 +++++++++++- src/renderer/src/views/prepare/index.vue | 4 +- 8 files changed, 197 insertions(+), 6 deletions(-) create mode 100644 src/renderer/src/views/classManage/classReserv.vue create mode 100644 src/renderer/src/views/classManage/reserv-item.vue diff --git a/electron.vite.config.mjs b/electron.vite.config.mjs index c48cc00..9b9c503 100644 --- a/electron.vite.config.mjs +++ b/electron.vite.config.mjs @@ -24,8 +24,8 @@ export default defineConfig({ server: { proxy: { '/dev-api': { - target: 'http://27.128.240.72:7865', - // target: 'http://192.168.2.52:7863', + // target: 'http://27.128.240.72:7865', + target: 'http://192.168.2.52:7863', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') } diff --git a/src/renderer/src/api/classManage/index.js b/src/renderer/src/api/classManage/index.js index 14a8314..e783daf 100644 --- a/src/renderer/src/api/classManage/index.js +++ b/src/renderer/src/api/classManage/index.js @@ -130,3 +130,19 @@ export function addStudentmainByNameArray(data) { data: data }) } +//新增课程预约 +export function addSmartClassReserv(data) { + return request({ + url: '/smarttalk/classReserv/addSmartClassReserv', + method: 'post', + data: data + }) +} +//查询课程预约 +export function getSelfReserv() { + return request({ + url: '/smarttalk/classReserv/getSelfReserv', + method: 'get' + }) +} + diff --git a/src/renderer/src/layout/components/Header.vue b/src/renderer/src/layout/components/Header.vue index 00deb25..799bf33 100644 --- a/src/renderer/src/layout/components/Header.vue +++ b/src/renderer/src/layout/components/Header.vue @@ -35,6 +35,7 @@ \ No newline at end of file + From c29a3d7a775f4121be183c839d56f5ce68df0ea3 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Fri, 9 Aug 2024 17:26:04 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E4=BA=8C=E6=9C=9F=EF=BC=9A=E9=A2=84?= =?UTF-8?q?=E7=BA=A6=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/tool/sphere.vue | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/renderer/src/views/tool/sphere.vue b/src/renderer/src/views/tool/sphere.vue index a0b06fb..982b5e6 100644 --- a/src/renderer/src/views/tool/sphere.vue +++ b/src/renderer/src/views/tool/sphere.vue @@ -36,14 +36,7 @@ // 功能说明:electron 悬浮球 import { onMounted, ref, reactive, watchEffect } from 'vue' import { useRoute } from 'vue-router'; -import logo from '@root/resources/icon.png' // logo -import boardVue from './components/board.vue' // 画板-子组件 -import sideVue from './components/side.vue' // 画板-子组件 -import vDrag from './directive/drag' // 自定义指令-拖拽 -import vIgnore from './directive/ignore' // 自定义指令-穿透 import { endClass } from '@/api/classManage' -import { useToolState } from '@/store/modules/tool' - import logo from '@root/resources/icon.png' // logo import boardVue from './components/board.vue' // 画板-子组件 import sideVue from './components/side.vue' // 画板-子组件