From 058af8c327305b70d72bfcfce39c9618c421e858 Mon Sep 17 00:00:00 2001 From: xuesinan <1404152492@qq.com> Date: Thu, 25 Nov 2021 14:40:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20"=E6=9F=A5=E7=9C=8B=E8=AA=B2=E9=A1=8C?= =?UTF-8?q?=E9=80=B2=E5=B1=95"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 +- .../tall/task/CheckSubjectProgress.vue | 60 ++++++++++++++++--- src/components/tall/top/TopNavbar.vue | 2 +- src/routers/index.js | 12 ++-- src/views/detail/Test.vue | 8 ++- src/views/user/SignIn.vue | 2 +- 6 files changed, 69 insertions(+), 19 deletions(-) diff --git a/src/App.vue b/src/App.vue index 36b3c4f..eda03f6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -52,7 +52,7 @@ if (userString) { const user = JSON.parse(userString); store.commit('user/setUser', user); } else { - router.push({ path: '/user/signIn' }); + router.push({ path: '/experiment/user/signIn' }); } // useRouter() @@ -62,7 +62,7 @@ if (userString) { // if (!u.value) { // // 获取url中的u参数, 没有提示缺少参数 // console.log('缺少参数'); -// router.push({ path: '/user/signIn' }); +// router.push({ path: '/experiment/user/signIn' }); // } else { // // 根据userId 获取token // await store.dispatch('user/getTokenByUserId', u.value); diff --git a/src/components/tall/task/CheckSubjectProgress.vue b/src/components/tall/task/CheckSubjectProgress.vue index e6eaada..2062e12 100644 --- a/src/components/tall/task/CheckSubjectProgress.vue +++ b/src/components/tall/task/CheckSubjectProgress.vue @@ -35,7 +35,7 @@ /> -
+

穿戴式运动捕获单元

-

card content

-

card content

-

card content

+
+
+

1/6

+

论文

+
+
+

1/6

+

专利

+
+
+

1/6

+

软著

+
+
+

1/6

+

会议

+
+
-

card content

-

card content

-

card content

+
+
+

1/6

+

论文

+
+
+

1/6

+

专利

+
+
+

1/6

+

软著

+
+
+

1/6

+

会议

+
+
@@ -180,4 +210,20 @@ const colorList = ref([ margin-bottom: 8px; color: #666666; } + +.sub-topic .topic { + margin-top: 40px; + width: calc((100% - 32px) / 2); +} + +.ant-card { + height: 100%; +} + +.ant-card :deep(.ant-card-body) { + height: calc(100% - 48px); + display: flex; + flex-direction: column; + justify-content: center; +} diff --git a/src/components/tall/top/TopNavbar.vue b/src/components/tall/top/TopNavbar.vue index 2aad24c..9c436c4 100644 --- a/src/components/tall/top/TopNavbar.vue +++ b/src/components/tall/top/TopNavbar.vue @@ -39,7 +39,7 @@ function signOut() { store.commit('user/setUser', null); store.commit('projects/setProject', null); store.commit('task/setTaskDetail', null); - router.push({ path: '/user/signin' }); + router.push({ path: '/experiment/user/signin' }); } diff --git a/src/routers/index.js b/src/routers/index.js index e6043f7..2fbc78d 100644 --- a/src/routers/index.js +++ b/src/routers/index.js @@ -1,14 +1,14 @@ import { createRouter, createWebHistory } from 'vue-router'; // 还有 createWebHashHistory 和 createMemoryHistory -export const user = [{ path: '/user/signIn', name: 'signIn', component: () => import('views/user/SignIn.vue') }]; +export const user = [{ path: '/experiment/user/signIn', name: 'signIn', component: () => import('views/user/SignIn.vue') }]; export const routes = [ { - path: '/home', + path: '/experiment/home', name: 'home', - redirect: '/home/test', + redirect: '/experiment/home/test', component: () => import('views/home/Index.vue'), - children: [{ path: '/home/test', name: 'test', component: () => import('views/detail/Test.vue') }], + children: [{ path: '/experiment/home/test', name: 'test', component: () => import('views/detail/Test.vue') }], }, ]; @@ -16,8 +16,8 @@ const router = createRouter({ history: createWebHistory(), routes: [ { - path: '/', - redirect: '/home', + path: '/experiment', + redirect: '/experiment/home', }, ...user, ...routes, diff --git a/src/views/detail/Test.vue b/src/views/detail/Test.vue index 624aca6..575826e 100644 --- a/src/views/detail/Test.vue +++ b/src/views/detail/Test.vue @@ -1,7 +1,7 @@