This commit is contained in:
2023-10-27 11:16:39 +08:00
parent ffa823345d
commit ec924c4f3e
2 changed files with 25 additions and 6 deletions

View File

@ -630,28 +630,24 @@
"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": {
@ -664,6 +660,12 @@
"navigationBarTitleText": "糖尿病足病评估问卷",
"enablePullDownRefresh": false
}
}, {
"path": "prescription/prescription",
"style": {
"navigationBarTitleText": "健康处方",
"enablePullDownRefresh": false
}
}]
}],
"globalStyle": {

View File

@ -1,6 +1,6 @@
<template>
<view class="app" v-if='list'>
<view class="item" v-for="(item,index) in list.questions" :key="index">
<view class="item" v-for="(item,index) in questions" :key="index">
<view class="title">
{{Number(index)+1}}{{item.questionName}}
</view>
@ -19,10 +19,14 @@
</template>
<script>
import {
submit
} from '@/api/questionnaire/index.js'
export default {
data() {
return {
list: null,
questions: null,
};
},
methods: {
@ -43,6 +47,19 @@
this.list.evaluateResult = '您没有高血压风险,请继续保持!'
}
console.log(this.list)
submit(this.list).then(res => {
if (truelist.length > 0) {
uni.redirectTo({
url: `/questionnaire/prescription/prescription?code=1001`
})
} else {
this.$refs.uToast.show({
title: '提交成功',
type: 'success',
back: 1
})
}
})
},
// radio
radioChange(e, item, index) {
@ -56,6 +73,7 @@
onLoad(options) {
let list = JSON.parse(decodeURIComponent(options.item))
list.answers = []
this.questions = list.questions
list.questions.forEach(e => {
e.name = '请选择'
var obj = {
@ -71,7 +89,6 @@
surveySubject: list.surveySubject,
evaluateResult: null,
advice: null,
questions: list.questions,
answers: list.answers
}
}