修改
This commit is contained in:
parent
ffa823345d
commit
ec924c4f3e
10
pages.json
10
pages.json
@ -630,28 +630,24 @@
|
|||||||
"navigationBarTitleText": "慢阻肺评估问卷",
|
"navigationBarTitleText": "慢阻肺评估问卷",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
"path": "cerebralapoplexy/cerebralapoplexy",
|
"path": "cerebralapoplexy/cerebralapoplexy",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "脑卒中评估问卷",
|
"navigationBarTitleText": "脑卒中评估问卷",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
"path": "chronicdisease/chronicdisease",
|
"path": "chronicdisease/chronicdisease",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "慢病评估问卷",
|
"navigationBarTitleText": "慢病评估问卷",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
"path": "nephropathy/nephropathy",
|
"path": "nephropathy/nephropathy",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "糖尿病肾病评估报告",
|
"navigationBarTitleText": "糖尿病肾病评估报告",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
"path": "Ophthalmopathy/Ophthalmopathy",
|
"path": "Ophthalmopathy/Ophthalmopathy",
|
||||||
"style": {
|
"style": {
|
||||||
@ -664,6 +660,12 @@
|
|||||||
"navigationBarTitleText": "糖尿病足病评估问卷",
|
"navigationBarTitleText": "糖尿病足病评估问卷",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
"path": "prescription/prescription",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "健康处方",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}],
|
}],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app" v-if='list'>
|
<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">
|
<view class="title">
|
||||||
{{Number(index)+1}}、{{item.questionName}}
|
{{Number(index)+1}}、{{item.questionName}}
|
||||||
</view>
|
</view>
|
||||||
@ -19,10 +19,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
|
submit
|
||||||
|
} from '@/api/questionnaire/index.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
list: null,
|
list: null,
|
||||||
|
questions: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -43,6 +47,19 @@
|
|||||||
this.list.evaluateResult = '您没有高血压风险,请继续保持!'
|
this.list.evaluateResult = '您没有高血压风险,请继续保持!'
|
||||||
}
|
}
|
||||||
console.log(this.list)
|
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时触发
|
// 选中某个单选框时,由radio时触发
|
||||||
radioChange(e, item, index) {
|
radioChange(e, item, index) {
|
||||||
@ -56,6 +73,7 @@
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
let list = JSON.parse(decodeURIComponent(options.item))
|
let list = JSON.parse(decodeURIComponent(options.item))
|
||||||
list.answers = []
|
list.answers = []
|
||||||
|
this.questions = list.questions
|
||||||
list.questions.forEach(e => {
|
list.questions.forEach(e => {
|
||||||
e.name = '请选择'
|
e.name = '请选择'
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -71,7 +89,6 @@
|
|||||||
surveySubject: list.surveySubject,
|
surveySubject: list.surveySubject,
|
||||||
evaluateResult: null,
|
evaluateResult: null,
|
||||||
advice: null,
|
advice: null,
|
||||||
questions: list.questions,
|
|
||||||
answers: list.answers
|
answers: list.answers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user