问卷查看修改
This commit is contained in:
parent
0c94916941
commit
0416e559bb
@ -311,7 +311,7 @@
|
||||
<el-dialog title="问卷查看" :visible.sync="questionshow" width="40%">
|
||||
<div class="bottomheader">
|
||||
<div class="right">
|
||||
<div class="title">总分:{{ questiondata.totalScore }}分</div>
|
||||
<div class="title" v-if="totalScoredata>0">总分:{{ totalScoredata }}分</div>
|
||||
<div
|
||||
class="words"
|
||||
v-for="(item, index) in questiondata.subjectResultList"
|
||||
@ -534,6 +534,7 @@ export default {
|
||||
AItrue: null,
|
||||
COMMONtrue: null,
|
||||
foldshow: null,
|
||||
totalScoredata:0,
|
||||
questiondata: {
|
||||
totalScore: 0, //总分
|
||||
routeHandlePerson: null,
|
||||
@ -659,9 +660,17 @@ export default {
|
||||
},
|
||||
// 问卷查看
|
||||
async questionlook(row) {
|
||||
this.totalScoredata=0,
|
||||
await selectPatientQuestionSubmit(row.taskExecuteRecordId).then((res) => {
|
||||
this.questiondata = res.data;
|
||||
this.questiondata.subjectResultList.forEach((e) => {
|
||||
if(e.whetherScore==1){
|
||||
e.optionResults.forEach((el) => {
|
||||
if(el.optionChooseSign=="0"){
|
||||
this.totalScoredata += el.optionScore
|
||||
}
|
||||
})
|
||||
}
|
||||
e.optionResults.forEach((el) => {
|
||||
if (
|
||||
(el.optionChooseSign == "0" &&
|
||||
|
||||
@ -585,7 +585,7 @@
|
||||
<el-dialog title="问卷查看" :visible.sync="questionshow" width="40%">
|
||||
<div class="bottomheader">
|
||||
<div class="right">
|
||||
<div class="title">总分:{{ questiondata.totalScore }}分</div>
|
||||
<div class="title" v-if="totalScoredata>0">总分:{{ totalScoredata }}分</div>
|
||||
<div
|
||||
class="words"
|
||||
v-for="(item, index) in questiondata.subjectResultList"
|
||||
@ -836,6 +836,7 @@ export default {
|
||||
// { required: true, message: "患者表id不能为空", trigger: "blur" },
|
||||
// ],
|
||||
// },
|
||||
totalScoredata:0,
|
||||
questionshow: false,
|
||||
checkeddata: [],
|
||||
formlist: [],
|
||||
@ -862,9 +863,17 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async questionlook(row) {
|
||||
this.totalScoredata=0,
|
||||
await selectPatientQuestionSubmit(row.taskExecuteRecordId).then((res) => {
|
||||
this.questiondata = res.data;
|
||||
this.questiondata.subjectResultList.forEach((e) => {
|
||||
if(e.whetherScore==1){
|
||||
e.optionResults.forEach((el) => {
|
||||
if(el.optionChooseSign=="0"){
|
||||
this.totalScoredata += el.optionScore
|
||||
}
|
||||
})
|
||||
}
|
||||
e.optionResults.forEach((el) => {
|
||||
if (
|
||||
(el.optionChooseSign == "0" &&
|
||||
|
||||
Loading…
Reference in New Issue
Block a user