diff --git a/src/api/uav/chapter.js b/src/api/uav/chapter.js new file mode 100644 index 0000000..cf5957b --- /dev/null +++ b/src/api/uav/chapter.js @@ -0,0 +1,28 @@ +import request from '@/config/axios' +export const searchChapter = async (param) => { + return await request.get({ + url: '/admin-api/applet/wrj/chapter/list', + params: param + }) +} + +export const updateChapter = async (data) => { + return await request.put({ + url: '/admin-api/applet/wrj/chapter/update', + data: data + }) +} + +export const addChapter = async (data) => { + return await request.post({ + url: '/admin-api/applet/wrj/chapter/add', + data: data, + isSubmitForm: true + }) +} + +export const deleteChapter = async (id) => { + return await request.delete({ + url: `/admin-api/applet/wrj/chapter/delete?id=${id}` + }) +} diff --git a/src/api/uav/question.js b/src/api/uav/question.js new file mode 100644 index 0000000..eb32920 --- /dev/null +++ b/src/api/uav/question.js @@ -0,0 +1,51 @@ +import request from '@/config/axios' +export const searchQuestion = async (param) => { + return await request.get({ + url: '/admin-api/applet/wrj/question/list', + params: param + }) +} + +export const updateQuestion = async (data) => { + return await request.put({ + url: '/admin-api/applet/wrj/question/update', + data: data + }) +} + +export const addQuestion = async (data) => { + return await request.post({ + url: '/admin-api/applet/wrj/question/add', + data: data, + isSubmitForm: true + }) +} + +export const deleteQuestion = async (id) => { + return await request.delete({ + url: `/admin-api/applet/wrj/question/delete?id=${id}` + }) +} + +export const uploadFile = async (data) => { + return await request.post({ + url: '/admin-api/applet/wrj/question/upload', + data: data + }) +} + +// 查询无人机类型列表 +export const getCarTypeOptions = async (params) => { + return await request.get({ + url: '/admin-api/applet/wrj/model/list', + params + }) +} + +// 查询驾驶员类型列表 +export const getDriverTypeOptions = async (params) => { + return await request.get({ + url: '/admin-api/applet/wrj/type/list', + params + }) +} diff --git a/src/config/axios/service.ts b/src/config/axios/service.ts index 0a0f094..6443a24 100644 --- a/src/config/axios/service.ts +++ b/src/config/axios/service.ts @@ -218,7 +218,7 @@ service.interceptors.response.use( resetRouter() // 重置静态路由表 cache.local.clear() removeToken() - window.location.href = `/login?tenantId=${tenantId}&appId=${appId}` + window.location.href = `/tiku/login?tenantId=${tenantId}&appId=${appId}` }) } } @@ -266,7 +266,7 @@ const handleAuthorized = () => { isRelogin.show = false // 干掉token后再走一次路由让它过router.beforeEach的校验 // window.location.href = window.location.href - window.location.href = `/login?tenantId=${tenantId}&appId=${appId}` + window.location.href = `/tiku/login?tenantId=${tenantId}&appId=${appId}` }) } return Promise.reject(t('sys.api.timeoutMessage')) diff --git a/src/views/ExamVenue/Calendar/index.vue b/src/views/ExamVenue/Calendar/index.vue new file mode 100644 index 0000000..5878346 --- /dev/null +++ b/src/views/ExamVenue/Calendar/index.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/views/ExamVenue/Room/index.vue b/src/views/ExamVenue/Room/index.vue new file mode 100644 index 0000000..42a60a3 --- /dev/null +++ b/src/views/ExamVenue/Room/index.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/JoinUs/Coach/index.vue b/src/views/JoinUs/Coach/index.vue new file mode 100644 index 0000000..437089f --- /dev/null +++ b/src/views/JoinUs/Coach/index.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/src/views/JoinUs/Station/index.vue b/src/views/JoinUs/Station/index.vue new file mode 100644 index 0000000..1dd7f30 --- /dev/null +++ b/src/views/JoinUs/Station/index.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/src/views/Question/Database/index.vue b/src/views/Question/Database/index.vue index e82e0a7..b49258b 100644 --- a/src/views/Question/Database/index.vue +++ b/src/views/Question/Database/index.vue @@ -58,7 +58,7 @@ v-loading="loading" :data="tableList" highlight-current-row - max-height="calc(100vh - 260px)" + max-height="calc(100vh - 320px)" > @@ -71,12 +71,12 @@ - + - +