diff --git a/src/App.vue b/src/App.vue index 03b2554..ce7a03a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -61,4 +61,14 @@ export default { display: none; } +.text-cut-2{ + text-overflow: -o-ellipsis-lastline; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + line-clamp: 2; + -webkit-box-orient: vertical; +} + diff --git a/src/api/myexamCount/index.js b/src/api/myexamCount/index.js index f487dfd..b3f7fdd 100644 --- a/src/api/myexamCount/index.js +++ b/src/api/myexamCount/index.js @@ -1,7 +1,7 @@ import request from '@/utils/request' const countApi = { - myexamCount: 'study/data/home' // 学习统计 + myexamCount: 'data/person/learningStatistics' // 学习统计 } export function getMyexamCount (params) { diff --git a/src/components/DbReport/index.vue b/src/components/DbReport/index.vue index 7d2c458..1e2553a 100644 --- a/src/components/DbReport/index.vue +++ b/src/components/DbReport/index.vue @@ -8,17 +8,17 @@
- 共{{ data.totalQuestions }}道题,答对{{ data.rightQuestions }}道。总用时{{ - data.answerTime + 共{{ data.totalQuestions || 0 }}道题,答对{{ data.rightQuestions || 0 }}道。总用时{{ + (data.answerTime/60).toFixed(2) }}分钟
-
已击败考生{{ data.beat }}%的考生
-
全站平均得分{{ data.avgScore }}分
+
已击败考生{{ data.beat || 0 }}%的考生
+
全站平均得分{{ data.avgScore || 0 }}分
diff --git a/src/components/SearchCom/index.vue b/src/components/SearchCom/index.vue index 962b758..01740dd 100644 --- a/src/components/SearchCom/index.vue +++ b/src/components/SearchCom/index.vue @@ -24,7 +24,8 @@ - + + 查询 重置 diff --git a/src/permission.js b/src/permission.js index cc61883..dc7e605 100644 --- a/src/permission.js +++ b/src/permission.js @@ -10,7 +10,7 @@ import { ACCESS_TOKEN } from '@/store/mutation-types' import { Modal } from 'ant-design-vue' // NProgress Configuration NProgress.configure({ showSpinner: false }) -const whiteList = ['login', 'register', 'registerResult'] // no redirect whitelist +const whiteList = ['login', 'register', 'registerResult', 'setting'] // no redirect whitelist const loginRoutePath = '/user/login' // 无默认首页的情况 const defaultRoutePath = '/welcome' diff --git a/src/router/generator-routers.js b/src/router/generator-routers.js index b13a02b..c5047f8 100644 --- a/src/router/generator-routers.js +++ b/src/router/generator-routers.js @@ -34,7 +34,7 @@ const notFoundRouter = { } // 个人中心页面 -const userAccount = [ +export const userAccount = [ // account { 'name': 'account', @@ -224,6 +224,7 @@ export const generator = (routerMap, parent) => { // Recursion currentRouter.children = generator(item.children, currentRouter) } + console.log('currentRouter', currentRouter) return currentRouter }) } diff --git a/src/views/account/center/Index.vue b/src/views/account/center/Index.vue index c3264ca..8ca1ec5 100644 --- a/src/views/account/center/Index.vue +++ b/src/views/account/center/Index.vue @@ -144,10 +144,10 @@ export default { }, methods: { getTeams () { - this.$http.get('/workplace/teams').then(res => { - this.teams = res.result - this.teamSpinning = false - }) + // this.$http.get('/workplace/teams').then(res => { + // this.teams = res.result + // this.teamSpinning = false + // }) }, handleTabChange (key, type) { diff --git a/src/views/mycourse/mycourseList/MyCourseList.vue b/src/views/mycourse/mycourseList/MyCourseList.vue index e75d5a3..9d3a4cb 100644 --- a/src/views/mycourse/mycourseList/MyCourseList.vue +++ b/src/views/mycourse/mycourseList/MyCourseList.vue @@ -7,23 +7,25 @@ @search="handleRefresh" @reset=" () => { - queryParam = {} - handleRefresh() + queryParam = {}; + handleRefresh(); } - "> + " + > -
+
+ :rowKey="record => record.id" + > {{ index + 1 }} 必修课 @@ -37,9 +39,7 @@ - + diff --git a/src/views/myexamCount/index.vue b/src/views/myexamCount/index.vue index 2dd747b..cd357a9 100644 --- a/src/views/myexamCount/index.vue +++ b/src/views/myexamCount/index.vue @@ -1,46 +1,45 @@ diff --git a/src/views/mypractice/index.vue b/src/views/mypractice/index.vue index 309f035..91b67aa 100644 --- a/src/views/mypractice/index.vue +++ b/src/views/mypractice/index.vue @@ -36,10 +36,12 @@ :xs="12" v-for="(j, k) in item.list" :key="`${index}-${k}`"> - -

{{ j.courseName }}

-
- 开始答题 + +
+

{{ j.courseName }}

+
+ 开始答题 +
diff --git a/src/views/myreport/index.vue b/src/views/myreport/index.vue index d85b386..7048c8b 100644 --- a/src/views/myreport/index.vue +++ b/src/views/myreport/index.vue @@ -8,10 +8,10 @@ :headStyle="{ paddingLeft: '0px !important' }" > @@ -24,7 +24,7 @@ :headStyle="{ paddingLeft: '0px !important' }" >