|
|
@ -169,7 +169,6 @@ export default { |
|
|
|
this.loading = true |
|
|
|
this.loading = true |
|
|
|
this.$get(`${this.api.reportDetail}?reportId=${this.reportId}`).then(({ report, userScores }) => { |
|
|
|
this.$get(`${this.api.reportDetail}?reportId=${this.reportId}`).then(({ report, userScores }) => { |
|
|
|
this.form = report |
|
|
|
this.form = report |
|
|
|
this.expData = userScores |
|
|
|
|
|
|
|
this.project = this.expData.find(e => e.lcRuleRecords) // 银行系统才有lcRuleRecords |
|
|
|
this.project = this.expData.find(e => e.lcRuleRecords) // 银行系统才有lcRuleRecords |
|
|
|
let form = this.form; |
|
|
|
let form = this.form; |
|
|
|
this.infoData = { |
|
|
|
this.infoData = { |
|
|
@ -183,17 +182,17 @@ export default { |
|
|
|
className: form.className, |
|
|
|
className: form.className, |
|
|
|
userName: form.userName |
|
|
|
userName: form.userName |
|
|
|
} |
|
|
|
} |
|
|
|
const data = report.data |
|
|
|
const { data } = report |
|
|
|
this.userScores = userScores |
|
|
|
|
|
|
|
// 如果没有data,则添加,否则,直接使用 |
|
|
|
// 如果没有data,则添加,否则,直接使用 |
|
|
|
if (!data) { |
|
|
|
if (!data) { |
|
|
|
|
|
|
|
this.userScores = userScores |
|
|
|
this.handleList(userScores) |
|
|
|
this.handleList(userScores) |
|
|
|
this.$post(this.api.editExperimentalData, { |
|
|
|
this.$post(this.api.editExperimentalData, { |
|
|
|
reportId, |
|
|
|
reportId, |
|
|
|
data: JSON.stringify(userScores) |
|
|
|
data: JSON.stringify(userScores) |
|
|
|
}).then(res => { }).catch(err => { }) |
|
|
|
}).then(res => { }).catch(err => { }) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.handleList(userScores.find(e => e.lcRuleRecords) ? userScores : JSON.parse(data)) |
|
|
|
this.handleList(JSON.parse(data)) |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(res => { |
|
|
|
}).catch(res => { |
|
|
|
this.loading = false |
|
|
|
this.loading = false |
|
|
|