Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 7 months ago
parent
commit
506433d598
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/xt_pages/outpatientDoctorStation/template/prineight.vue

+ 7 - 3
src/xt_pages/outpatientDoctorStation/template/prineight.vue View File

@@ -759,10 +759,14 @@ export default{
759 759
 
760 760
     getDiagnosis(id) {
761 761
       let arr = id.split(",");
762
+      console.log('vvvvvv',arr);  
762 763
       var name = "";
763
-      for (let i = 0; i < this.diagnoses.length; i++) {
764
-        if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
765
-          name += this.diagnoses[i].class_name + " ";
764
+      const diagnoses = this.diagnoses.reverse()
765
+      console.log('bbbbbb12121',this.diagnoses);
766
+      for (let i = 0; i < diagnoses.length; i++) {
767
+        if (arr.indexOf(String(diagnoses[i].id)) > -1) {
768
+          console.log('this.diagnoses[i].class_name',diagnoses[i].class_name);
769
+          name += diagnoses[i].class_name + " ";
766 770
         }
767 771
       }
768 772
       return name;