|
@@ -67,11 +67,11 @@
|
|
|
<p>
|
|
|
<span>{{ getDetailText(diagnose.text, false).view }}</span>
|
|
|
</p>
|
|
|
- <p>
|
|
|
+ <div v-if="scaleInfo">
|
|
|
<p>{{ scaleInfo[0].scaleName }}</p>
|
|
|
<p>得分:{{ scaleInfo[0].score }}</p>
|
|
|
<p>结果为{{ scaleInfo[0].result }}</p>
|
|
|
- </p>
|
|
|
+ </div>
|
|
|
</li>
|
|
|
<li v-if="tabType[moduleCP['other']] == 1">
|
|
|
<h4><i></i> 其他史:</h4>
|
|
@@ -289,13 +289,16 @@ export default {
|
|
|
if (flg == 1) {
|
|
|
// for(let k in textArr){
|
|
|
let item = textArr[0];
|
|
|
- if (item.special) {
|
|
|
- msg += item.name + item.special;
|
|
|
- msgP += item.name + item.specialP;
|
|
|
- } else {
|
|
|
- msg += item.name;
|
|
|
- msgP += item.name;
|
|
|
+ if (item) {
|
|
|
+ if (item.special) {
|
|
|
+ msg += item.name + item.special;
|
|
|
+ msgP += item.name + item.specialP;
|
|
|
+ } else {
|
|
|
+ msg += item.name;
|
|
|
+ msgP += item.name;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
// }
|
|
|
} else {
|
|
|
for (let k in textArr) {
|
|
@@ -322,7 +325,7 @@ export default {
|
|
|
},
|
|
|
formatSymText() {
|
|
|
console.log(this.symptom);
|
|
|
- if (this.symptom.choose.lengtn>0 && his.symptom.text.length>0) {
|
|
|
+ if (this.symptom.choose.lengtn > 0 && his.symptom.text.length > 0) {
|
|
|
const symChoose = this.symptom.choose;
|
|
|
const symText = this.symptom.text;
|
|
|
const bans = symText[symText.length - 1];
|