问卷查看修改

This commit is contained in:
shidongli 2024-12-19 10:17:43 +08:00
parent 0c94916941
commit 0416e559bb
2 changed files with 20 additions and 2 deletions

View File

@ -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" &&

View File

@ -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" &&