diff --git a/src/router/index.js b/src/router/index.js index 40162f0..ab9e1d6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -56,6 +56,9 @@ const routes = [ // 心理监测 { path: '/PsychologicalModeling', name: 'PsychologicalModeling', component: resolve => require(['@/views/psychological-modeling'], resolve) }, { path: '/PsychologicalQuestionnaire', name: 'PsychologicalQuestionnaire', component: resolve => require(['@/views/psychological-questionnaire'], resolve) }, + { path: '/PsychologicalScale', name: 'PsychologicalScale', component: resolve => require(['@/views/psychological-scale'], resolve) }, + { path: '/PsychologicalScaleDetail', name: 'PsychologicalScaleDetail', component: resolve => require(['@/views/psychological-scale/detail'], resolve) }, + { path: '/PsychologicalScaleList', name: 'PsychologicalScaleList', component: resolve => require(['@/views/psychological-scale/list'], resolve) }, // 健康-心理监测详情,抑郁,压力和疲劳 { path: '/psychological', name: 'psychological', component: resolve => require(['@/views/health/psychological'], resolve) }, diff --git a/src/views/psychological-scale/detail.vue b/src/views/psychological-scale/detail.vue new file mode 100644 index 0000000..926f83a --- /dev/null +++ b/src/views/psychological-scale/detail.vue @@ -0,0 +1,319 @@ + + + + + 返回 + + + + 您的测评结果为: + + {{ levels[`${resultLevel}`].title }} + + + 您的焦虑得分: + + + + + + + {{ item.title }} + + + + 总体评分: + {{ result.Explain }} + 结果解释: + {{ result.Advice }} + + + + + + + diff --git a/src/views/psychological-scale/index.vue b/src/views/psychological-scale/index.vue new file mode 100644 index 0000000..2fa9217 --- /dev/null +++ b/src/views/psychological-scale/index.vue @@ -0,0 +1,427 @@ + + + + + + + + + {{ select.length }}/{{ topic.length }} + + + {{ title }} + + + + + {{ item.Title }} + ({{ item.Type }}) + + + + + + + + + + + + + + + + + + + + + + + 提交测评 + + + + + + + diff --git a/src/views/psychological-scale/list.vue b/src/views/psychological-scale/list.vue new file mode 100644 index 0000000..b009c00 --- /dev/null +++ b/src/views/psychological-scale/list.vue @@ -0,0 +1,349 @@ + + + + + 返回 + + + + + + {{ item.ScaleName }} + + 评测结果: + {{ item.Summary }} + + + {{ formateDate('yyyy年mm月dd日 HH:MM', item.Time) }} + + + + 查看结果 + + + + 暂无测评记录 + + + + + +