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