diff --git a/api/questionnaire/index.js b/api/questionnaire/index.js
index 02a6a03..eea6ab0 100644
--- a/api/questionnaire/index.js
+++ b/api/questionnaire/index.js
@@ -18,4 +18,22 @@ export function templateget(templateType) {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
}
})
+}
+export function timeline(userId) {
+ return request({
+ url: `/evaluate/record/timeline/${userId}`,
+ method: 'get',
+ header: {
+ Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
+ }
+ })
+}
+export function answer(recordId) {
+ return request({
+ url: `/evaluate/survey/answer/${recordId}`,
+ method: 'get',
+ header: {
+ Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
+ }
+ })
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index faaf445..fa11394 100644
--- a/pages.json
+++ b/pages.json
@@ -666,7 +666,25 @@
"navigationBarTitleText": "健康处方",
"enablePullDownRefresh": false
}
- }]
+ } ,{
+ "path" : "History/History",
+ "style" :
+ {
+ "navigationBarTitleText": "健康自评历史记录",
+ "enablePullDownRefresh": false
+ }
+
+ }
+ ,{
+ "path" : "HistoryQuestionnaire/HistoryQuestionnaire",
+ "style" :
+ {
+ "navigationBarTitleText": "历史记录评估问卷",
+ "enablePullDownRefresh": false
+ }
+
+ }
+ ]
}],
"globalStyle": {
"navigationBarTextStyle": "white",
diff --git a/pagesC/healthtest/healthtest.vue b/pagesC/healthtest/healthtest.vue
index ccc3529..60cc153 100644
--- a/pagesC/healthtest/healthtest.vue
+++ b/pagesC/healthtest/healthtest.vue
@@ -3,7 +3,7 @@
智慧健康驿站自评表
- 历史记录
+ 历史记录
@@ -36,6 +36,11 @@
this.info();
},
methods: {
+ gohistory() {
+ uni.navigateTo({
+ url: '/questionnaire/History/History'
+ })
+ },
gosurveySubject(item) {
if (item.surveySubject == 1001) {
uni.navigateTo({
diff --git a/questionnaire/cerebralapoplexy/cerebralapoplexy.vue b/questionnaire/cerebralapoplexy/cerebralapoplexy.vue
index ad2ff02..6934482 100644
--- a/questionnaire/cerebralapoplexy/cerebralapoplexy.vue
+++ b/questionnaire/cerebralapoplexy/cerebralapoplexy.vue
@@ -19,6 +19,9 @@