From ffa823345d6cdde775266a4e7b11cc4452f5a22c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com>
Date: Fri, 27 Oct 2023 10:12:21 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 60 +++++---
pagesC/healthtest/healthtest.vue | 16 ++
questionnaire/Footdisease/Footdisease.vue | 126 ++++++++++++++++
.../Ophthalmopathy/Ophthalmopathy.vue | 126 ++++++++++++++++
.../cerebralapoplexy/cerebralapoplexy.vue | 1 +
.../chronicdisease/chronicdisease.vue | 138 ++++++++++++++++++
questionnaire/copd/copd.vue | 33 ++++-
questionnaire/diabetes/diabetes.vue | 1 +
questionnaire/hypertension/hypertension.vue | 1 +
questionnaire/nephropathy/nephropathy.vue | 126 ++++++++++++++++
10 files changed, 604 insertions(+), 24 deletions(-)
create mode 100644 questionnaire/Footdisease/Footdisease.vue
create mode 100644 questionnaire/Ophthalmopathy/Ophthalmopathy.vue
create mode 100644 questionnaire/chronicdisease/chronicdisease.vue
create mode 100644 questionnaire/nephropathy/nephropathy.vue
diff --git a/pages.json b/pages.json
index b1896e2..184f5e7 100644
--- a/pages.json
+++ b/pages.json
@@ -624,25 +624,47 @@
"navigationBarTitleText": "糖尿病评估问卷",
"enablePullDownRefresh": false
}
- } ,{
- "path" : "copd/copd",
- "style" :
- {
- "navigationBarTitleText": "慢阻肺评估问卷",
- "enablePullDownRefresh": false
- }
-
- }
- ,{
- "path" : "cerebralapoplexy/cerebralapoplexy",
- "style" :
- {
- "navigationBarTitleText": "脑卒中评估问卷",
- "enablePullDownRefresh": false
- }
-
- }
- ]
+ }, {
+ "path": "copd/copd",
+ "style": {
+ "navigationBarTitleText": "慢阻肺评估问卷",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "cerebralapoplexy/cerebralapoplexy",
+ "style": {
+ "navigationBarTitleText": "脑卒中评估问卷",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "chronicdisease/chronicdisease",
+ "style": {
+ "navigationBarTitleText": "慢病评估问卷",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "nephropathy/nephropathy",
+ "style": {
+ "navigationBarTitleText": "糖尿病肾病评估报告",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "Ophthalmopathy/Ophthalmopathy",
+ "style": {
+ "navigationBarTitleText": "糖尿病眼病评估报告",
+ "enablePullDownRefresh": false
+ }
+ }, {
+ "path": "Footdisease/Footdisease",
+ "style": {
+ "navigationBarTitleText": "糖尿病足病评估问卷",
+ "enablePullDownRefresh": false
+ }
+ }]
}],
"globalStyle": {
"navigationBarTextStyle": "white",
diff --git a/pagesC/healthtest/healthtest.vue b/pagesC/healthtest/healthtest.vue
index 9a5c71e..ccc3529 100644
--- a/pagesC/healthtest/healthtest.vue
+++ b/pagesC/healthtest/healthtest.vue
@@ -53,6 +53,22 @@
uni.navigateTo({
url: `/questionnaire/copd/copd?item=${encodeURIComponent(JSON.stringify(item))}`
})
+ } else if (item.surveySubject == 1005) {
+ uni.navigateTo({
+ url: `/questionnaire/chronicdisease/chronicdisease?item=${encodeURIComponent(JSON.stringify(item))}`
+ })
+ } else if (item.surveySubject == 1006) {
+ uni.navigateTo({
+ url: `/questionnaire/nephropathy/nephropathy?item=${encodeURIComponent(JSON.stringify(item))}`
+ })
+ } else if (item.surveySubject == 1007) {
+ uni.navigateTo({
+ url: `/questionnaire/Ophthalmopathy/Ophthalmopathy?item=${encodeURIComponent(JSON.stringify(item))}`
+ })
+ } else if (item.surveySubject == 1008) {
+ uni.navigateTo({
+ url: `/questionnaire/Footdisease/Footdisease?item=${encodeURIComponent(JSON.stringify(item))}`
+ })
}
},
info() {
diff --git a/questionnaire/Footdisease/Footdisease.vue b/questionnaire/Footdisease/Footdisease.vue
new file mode 100644
index 0000000..e0161f2
--- /dev/null
+++ b/questionnaire/Footdisease/Footdisease.vue
@@ -0,0 +1,126 @@
+
+
+
+
+ {{Number(index)+1}}、{{item.questionName}}
+
+
+
+ {{aitem.optionName}}
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/questionnaire/Ophthalmopathy/Ophthalmopathy.vue b/questionnaire/Ophthalmopathy/Ophthalmopathy.vue
new file mode 100644
index 0000000..8189786
--- /dev/null
+++ b/questionnaire/Ophthalmopathy/Ophthalmopathy.vue
@@ -0,0 +1,126 @@
+
+
+
+
+ {{Number(index)+1}}、{{item.questionName}}
+
+
+
+ {{aitem.optionName}}
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/questionnaire/cerebralapoplexy/cerebralapoplexy.vue b/questionnaire/cerebralapoplexy/cerebralapoplexy.vue
index 84319f5..ad2ff02 100644
--- a/questionnaire/cerebralapoplexy/cerebralapoplexy.vue
+++ b/questionnaire/cerebralapoplexy/cerebralapoplexy.vue
@@ -46,6 +46,7 @@
} else if (truelist.length == 0) {
this.list.evaluateResult = '本次评估结果为0分,3分以下者,没有脑卒中高危风险,请继续保持!'
}
+ console.log(this.list)
},
// 选中某个单选框时,由radio时触发
radioChange(e, item, index) {
diff --git a/questionnaire/chronicdisease/chronicdisease.vue b/questionnaire/chronicdisease/chronicdisease.vue
new file mode 100644
index 0000000..4cdfe8b
--- /dev/null
+++ b/questionnaire/chronicdisease/chronicdisease.vue
@@ -0,0 +1,138 @@
+
+
+
+
+ {{Number(index)+1}}、{{item.questionName}}
+
+
+
+ {{aitem.optionName}}
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/questionnaire/copd/copd.vue b/questionnaire/copd/copd.vue
index 44e0896..cf9e456 100644
--- a/questionnaire/copd/copd.vue
+++ b/questionnaire/copd/copd.vue
@@ -36,12 +36,35 @@
return
}
})
- var truelist = this.list.answers.filter(e => e.optionContent == '是')
- if (truelist.length > 0) {
- this.list.evaluateResult = '您可能存在糖尿病高危风险,建议每年至医疗机构进行一次糖尿病筛查。'
- } else if (truelist.length == 0) {
- this.list.evaluateResult = '您没有糖尿病高危风险,请继续保持!'
+ var value = 0
+ if (this.list.answers[0].optionContent == '从未感觉气短' || this.list.answers[0].optionContent ==
+ '很少感觉气短') {} else if (this.list.answers[0].optionContent == '有时感觉气短' || this.list.answers[0]
+ .optionContent == '经常感觉气短' || this.list.answers[0].optionContent == '总是感觉气短') {
+ value++
}
+ if (this.list.answers[1].optionContent == '从未咳出' || this.list.answers[1].optionContent ==
+ '是的,但仅在偶尔和感冒或胸部感染时咳出') {} else if (this.list.answers[1].optionContent == '是的,每月都咳出几天' || this.list
+ .answers[1].optionContent == '是的,大多数日子都咳' || this.list.answers[1].optionContent == '是的,每天都咳') {
+ value++
+ }
+ if (this.list.answers[2].optionContent == '强烈反对' || this.list.answers[2].optionContent ==
+ '反对' || this.list.answers[2].optionContent == '不确定') {} else if (this.list.answers[2].optionContent ==
+ '同意' || this.list.answers[2].optionContent == '非常同意') {
+ value++
+ }
+ if (this.list.answers[3].optionContent == '否') {} else if (this.list.answers[3].optionContent == '是') {
+ value++
+ }
+ if (this.list.answers[4].optionContent == '35-49岁' || this.list.answers[4].optionContent ==
+ '≥70岁') {} else if (this.list.answers[4].optionContent == '50-69岁') {
+ value = value + 2
+ }
+ if (value <= 4) {
+ this.list.evaluateResult = `您的评估结果为${value}分,0-4分为呼吸状况良好,若伴有呼吸问题,请尽早就医。`
+ } else if (value >= 5) {
+ this.list.evaluateResult = `您的评估结果为${value}分,5分及以上可能存在慢性阻塞性肺疾病风险,如有以下情形,请尽早就医。`
+ }
+ console.log(this.list)
},
// 选中某个单选框时,由radio时触发
radioChange(e, item, index) {
diff --git a/questionnaire/diabetes/diabetes.vue b/questionnaire/diabetes/diabetes.vue
index 44e0896..fc971f2 100644
--- a/questionnaire/diabetes/diabetes.vue
+++ b/questionnaire/diabetes/diabetes.vue
@@ -42,6 +42,7 @@
} else if (truelist.length == 0) {
this.list.evaluateResult = '您没有糖尿病高危风险,请继续保持!'
}
+ console.log(this.list)
},
// 选中某个单选框时,由radio时触发
radioChange(e, item, index) {
diff --git a/questionnaire/hypertension/hypertension.vue b/questionnaire/hypertension/hypertension.vue
index ff8e45c..892400b 100644
--- a/questionnaire/hypertension/hypertension.vue
+++ b/questionnaire/hypertension/hypertension.vue
@@ -42,6 +42,7 @@
} else if (truelist.length == 0) {
this.list.evaluateResult = '您没有高血压风险,请继续保持!'
}
+ console.log(this.list)
},
// 选中某个单选框时,由radio时触发
radioChange(e, item, index) {
diff --git a/questionnaire/nephropathy/nephropathy.vue b/questionnaire/nephropathy/nephropathy.vue
new file mode 100644
index 0000000..885f1da
--- /dev/null
+++ b/questionnaire/nephropathy/nephropathy.vue
@@ -0,0 +1,126 @@
+
+
+
+
+ {{Number(index)+1}}、{{item.questionName}}
+
+
+
+ {{aitem.optionName}}
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
\ No newline at end of file