diff --git a/src/views/reward/score/index.vue b/src/views/reward/score/index.vue index 0fdae03..3fb34bc 100644 --- a/src/views/reward/score/index.vue +++ b/src/views/reward/score/index.vue @@ -339,6 +339,7 @@ export default { score:undefined }; this.resetForm("form"); + this.scoreData=[] }, /** 搜索按钮操作 */ handleQuery() { @@ -397,9 +398,11 @@ export default { }, getScoreInfo(row){ getScoreInfo(row.applyId).then((res)=>{ - this.scoreId = res.data.rewScoreInfos[0].scoreId - this.form.score = res.data.rewScoreInfos[0].score - this.scoreData = res.data.rewScoreInfos + if (res.data.rewScoreInfos.length > 0){ + this.scoreId = res.data.rewScoreInfos[0].scoreId + this.form.score = res.data.rewScoreInfos[0].score + this.scoreData = res.data.rewScoreInfos + } this.avgScore = res.data.avgScore }) },