|
|
|
@ -420,23 +420,30 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
let reqText = '' |
|
|
|
let message = '' |
|
|
|
let linkStr = ';' |
|
|
|
this.sumDoctorCheck.summaryList.forEach(e => { |
|
|
|
if (reqText) { |
|
|
|
if (message) { |
|
|
|
linkStr = ';' |
|
|
|
} else { |
|
|
|
linkStr = '' |
|
|
|
} |
|
|
|
reqText += linkStr + e.summaryTitle + ':' |
|
|
|
message += linkStr + e.summaryTitle + ':' |
|
|
|
e.details.forEach((e1, i) => { |
|
|
|
reqText += (i+1) + ')、' + e1.summaryContent |
|
|
|
message += (i + 1) + ')、' + e1.summaryContent |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
postapi('/api/app/AIMessage/GetAIMessageResult', { message }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.AI.visible = true |
|
|
|
this.AI.diagnosis = reqText |
|
|
|
this.AI.diagnosis = res.data.result |
|
|
|
this.btnAImax(false) |
|
|
|
} else { |
|
|
|
this.$message.error({ showClose: true, message: res.message }) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
btnAImax(max) { |
|
|
|
|