diff --git a/src/api/sunshineRun.js b/src/api/sunshineRun.js new file mode 100644 index 0000000..591ed16 --- /dev/null +++ b/src/api/sunshineRun.js @@ -0,0 +1,24 @@ +import axios from 'axios' +import http from './http' +import store from '@/store/index' + +function queryString(params) { + const query = new URLSearchParams() + Object.entries(params).forEach(([key, value]) => { + if (value !== null && value !== undefined && value !== '') { + query.append(key, value) + } + }) + return query.toString() +} + +export function getSunshineRunPage(params) { + return http.get(`/api/SunshineRun/GetPageList?${queryString(params)}`) +} + +export function exportSunshineRun(params) { + return axios.get(`/api/SunshineRun/Export?${queryString(params)}`, { + responseType: 'blob', + headers: { Authorization: store.getters.getToken() } + }) +} diff --git a/src/router/index.js b/src/router/index.js index 1e4e8f5..c8505bb 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -428,6 +428,14 @@ const routes = [{ keepAlive: false } }, + { + path: '/sunshineRun', + name: 'sunshineRun', + component: () => import('@/views/motionData/sunshineRun/index.vue'), + meta: { + keepAlive: false + } + }, { path: '/trainingDetail', //运动数据/训练数据/详情 name: 'trainingDetail', diff --git a/src/views/index.vue b/src/views/index.vue index 7bc2500..074d6e6 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -810,6 +810,7 @@ export default defineComponent({ '/userActivity': 'el-icon-s-marketing', '/physicalTestData': 'el-icon-s-data', '/trainingData': 'el-icon-s-data', + '/sunshineRun': 'el-icon-s-data', '/visionData': 'el-icon-s-check', '/specialManagement': 'el-icon-s-management', '/ropeJumping': 'el-icon-s-cooperation', diff --git a/src/views/motionData/sunshineRun/index.vue b/src/views/motionData/sunshineRun/index.vue new file mode 100644 index 0000000..58eff85 --- /dev/null +++ b/src/views/motionData/sunshineRun/index.vue @@ -0,0 +1,284 @@ + + + + +