Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 4 mēnešus atpakaļ
vecāks
revīzija
402f153ebc

+ 4 - 4
src/xt_pages/user/components/PatientSidebar.vue Parādīt failu

@@ -179,10 +179,10 @@ export default {
179 179
             //   name: '3-3',
180 180
             //   label: '体格检查新'
181 181
             // },
182
-            // {
183
-            //   name: '3-5',
184
-            //   label: '病程记录新'
185
-            // },
182
+             {
183
+              name: '3-5',
184
+              label: '病程记录新'
185
+             },
186 186
             {
187 187
               name: '1-11',
188 188
               label: '首次病程记录'

+ 206 - 47
src/xt_pages/user/courseOfDisease_new.vue Parādīt failu

@@ -252,7 +252,7 @@
252 252
             :max_befor_systolic_blood_pressure="max_befor_systolic_blood_pressure" :min_befor_systolic_blood_pressure="min_befor_systolic_blood_pressure" :max_befor_diastolic_blood_pressure="max_befor_diastolic_blood_pressure"  :min_befor_diastolic_blood_pressure="min_befor_diastolic_blood_pressure"
253 253
             :max_after_systolic_blood_pressure="max_after_systolic_blood_pressure" :min_after_systolic_blood_pressure="min_after_systolic_blood_pressure" :max_after_diastolic_blood_pressure="max_after_diastolic_blood_pressure" :min_after_diastolic_blood_pressure="min_after_diastolic_blood_pressure"
254 254
             :max_monitor_systolic_blood_pressure="max_monitor_systolic_blood_pressure" :min_monitor_systolic_blood_pressure="min_monitor_systolic_blood_pressure" :max_monitor_diastolic_blood_pressure="max_monitor_diastolic_blood_pressure" :min_monitor_diastolic_blood_pressure="min_monitor_diastolic_blood_pressure"
255
-            :lastDryWeight="lastDryWeight"></text_content>
255
+            :lastDryWeight="lastDryWeight" :patientVascularAccess="patientVascularAccess" :lastBefor="lastBefor"></text_content>
256 256
           </div>
257 257
         </div>
258 258
 
@@ -369,8 +369,9 @@
369 369
         min_monitor_systolic_blood_pressure:"",
370 370
         max_monitor_diastolic_blood_pressure:"",
371 371
         min_monitor_diastolic_blood_pressure:"",
372
-        lastDryWeight:{}
373
-
372
+        lastDryWeight:{},
373
+        patientVascularAccess:{},
374
+        lastBefor:{}
374 375
       }
375 376
     },
376 377
     created() {
@@ -577,51 +578,204 @@
577 578
         // this.auto_dialog = true
578 579
       },
579 580
       autotext_click(){
581
+
582
+          //  医嘱
583
+          if(this.longAdvice!=null && this.longAdvice.length>0){
584
+            for(let i=0;i<this.longAdvice.length;i++){
585
+                this.longAdvice[i].advice_type_name = ""
586
+                if(this.longAdvice[i].advice_type == 1){
587
+                  this.longAdvice[i].advice_type_name = "长期医嘱"
588
+                }
589
+                if(this.longAdvice[i].stop_state == 1){
590
+                  this.longAdvice[i].stop_state_name = "停用"
591
+                }
592
+                if(this.longAdvice[i].stop_state == 2){
593
+                  this.longAdvice[i].stop_state_name = "未停用"
594
+                }
595
+            }
596
+        }
597
+
598
+        if(this.inpectionList!=null&& this.inpectionList.length>0){
599
+           for(let i=0;i<this.inpectionList.length;i++){
600
+            this.inpectionList[i].group_no = ""
601
+             this.inpectionList[i].group_no = this.inpectionList[i].project_id.toString()+"_"+this.inpectionList[i].inspect_date.toString()
602
+           }
603
+        }
604
+
605
+
606
+        if(this.inpectionList!=null && this.inpectionList.length>0){
607
+          let dataInfo = {}
608
+          this.inpectionList.forEach((item, index) => {
609
+          let { group_no } = item
610
+          if (!dataInfo[group_no]) {
611
+            dataInfo[group_no] = {
612
+              group_no:group_no,
613
+              project_id:item.project_id,
614
+              name:item.project_name,
615
+              date:this.getTime(item.inspect_date),
616
+              child:[],
617
+              left: [],
618
+              right:[]
619
+            }
620
+          }
621
+        })
622
+        let arr = Object.values(dataInfo)
623
+        console.log("arr----------------------",arr)
624
+
625
+        if(arr!=null && arr.length>0){
626
+          for(let i=0;i<arr.length;i++){
627
+            for(let j=0;j<this.inpectionList.length;j++){
628
+              if(arr[i].group_no == this.inpectionList[j].group_no){
629
+                  arr[i].child.push(this.inpectionList[j])
630
+              }
631
+            }
632
+          }
633
+        }
634
+          
635
+        for(let i=0;i<arr.length;i++){
636
+          for(let j=0;j<arr[i].child.length;j++){
637
+             if(j%2 ==0){
638
+               arr[i].left.push(arr[i].child[j])
639
+             }
640
+             if(j%2 == 1){
641
+              arr[i].right.push(arr[i].child[j])
642
+             }
643
+          }
644
+        }
645
+
646
+        this.Inspect = []
647
+        this.Inspect = arr
648
+        console.log("newarr----------------",arr)
649
+       }
650
+        
651
+        this.$nextTick(()=>{
652
+          const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
580 653
         
581
-        // this.$nextTick(()=>{
582
-        //   const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
583
-        //   var newListArr =[]
584
-        //   for(let j in this.tab){
585
-        //     const obj={
586
-        //       id:this.tab[j].id,
587
-        //       newlist:'newList'+j
588
-        //     }
589
-        //     newListArr.push(obj) 
590
-        //   }
591
-        //   for(let i in this.tab){
592
-        //     for(let j in newListArr){
593
-        //       if(this.tab[i].id==newListArr[j].id){
594
-        //         let newList = document.createElement('p');
595
-        //         newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
596
-        //         let newListItem1 = document.createElement('span');
597
-        //         newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
598
-        //         let newListItem2 = document.createElement('span');
599
-        //         newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
600
-        //         let newListItem3 = document.createElement('span');
601
-        //         newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
602
-        //         let newListItem4 = document.createElement('span');
603
-        //         newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
604
-        //         let newListItem5 = document.createElement('span');
605
-        //         newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
606
-        //         let newListItem6 = document.createElement('span');
607
-        //         newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
608
-        //         newListItem1.textContent = this.tab[i].name;
609
-        //         newListItem2.textContent = this.tab[i].type;
610
-        //         newListItem3.textContent = this.tab[i].start;
611
-        //         newListItem4.textContent = this.tab[i].dosage;
612
-        //         newListItem5.textContent = this.tab[i].pinlv;
613
-        //         newListItem6.textContent = this.tab[i].status;
614
-        //         newList.appendChild(newListItem1);
615
-        //         newList.appendChild(newListItem2);
616
-        //         newList.appendChild(newListItem3);
617
-        //         newList.appendChild(newListItem4);
618
-        //         newList.appendChild(newListItem5);
619
-        //         newList.appendChild(newListItem6);
620
-        //         iframeDoc.appendChild(newList)
621
-        //       }
622
-        //     }
623
-        //   }
624
-        // })
654
+          const jiancDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[8].children[1]
655
+
656
+            if(this.Inspect.length<1){
657
+              let newList = document.createElement('p');
658
+              newList.style.cssText = 'padding: 5px;'
659
+              newList.textContent = '无';
660
+              jiancDoc.appendChild(newList)
661
+            }else{
662
+              let newList = document.createElement('p');
663
+                  newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
664
+                  let newListItem1 = document.createElement('span');
665
+                  newListItem1.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
666
+                  let newListItem2 = document.createElement('span');
667
+                  newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
668
+                  let newListItem3 = document.createElement('span');
669
+                  newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
670
+                  let newListItem4 = document.createElement('span');
671
+                  newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
672
+                  let newListItem5 = document.createElement('span');
673
+                  newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
674
+                  let newListItem6 = document.createElement('span');
675
+                  newListItem6.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;'
676
+                  newListItem1.textContent = '检验项目';
677
+                  newListItem2.textContent = '检验时间';
678
+                  newListItem3.textContent = '检验内容';
679
+                  newListItem4.textContent = '结果';
680
+                  newListItem5.textContent = '检验内容';
681
+                  newListItem6.textContent = '结果';
682
+                  newList.appendChild(newListItem1);
683
+                  newList.appendChild(newListItem2);
684
+                  newList.appendChild(newListItem3);
685
+                  newList.appendChild(newListItem4);
686
+                  newList.appendChild(newListItem5);
687
+                  newList.appendChild(newListItem6);
688
+                  jiancDoc.appendChild(newList)
689
+              for(let i in this.Inspect){
690
+                let newList1 = document.createElement('p');
691
+                const child1 = document.createElement('p')
692
+                const child2 = document.createElement('p')
693
+                const child3 = document.createElement('p')
694
+                newList1.appendChild(child1);
695
+                newList1.appendChild(child2);
696
+                newList1.appendChild(child3);
697
+                newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
698
+                child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
699
+                child2.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;flex-wrap: wrap;'
700
+                child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
701
+
702
+                let newListItem1 = document.createElement('span');
703
+                newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
704
+                let newListItem2 = document.createElement('span');
705
+                newListItem2.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;'
706
+                newListItem1.textContent = this.Inspect[i].name;
707
+                newListItem2.textContent = this.Inspect[i].date;
708
+                child1.appendChild(newListItem1);
709
+                child1.appendChild(newListItem2);
710
+                for(let j in this.Inspect[i].left){
711
+                  let newListItem3 = document.createElement('span');
712
+                  newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
713
+                  let newListItem4 = document.createElement('span');
714
+                  newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;'
715
+                  newListItem3.textContent = this.Inspect[i].left[j].item_name;
716
+                  newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
717
+                  child2.appendChild(newListItem3);
718
+                  child2.appendChild(newListItem4);
719
+                }
720
+                for(let x in this.Inspect[i].right){
721
+                  let newListItem5 = document.createElement('span');
722
+                  newListItem5.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
723
+                  let newListItem6 = document.createElement('span');
724
+                  newListItem6.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
725
+                  newListItem5.textContent = this.Inspect[i].right[x].item_name;
726
+                  newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
727
+                  child3.appendChild(newListItem5);
728
+                  child3.appendChild(newListItem6);
729
+                }
730
+                jiancDoc.appendChild(newList1)
731
+              }
732
+            }
733
+
734
+          
735
+          var newListArr =[]
736
+          for(let j in this.longAdvice){
737
+            const obj={
738
+              id:this.longAdvice[j].id,
739
+              newlist:'newList'+j
740
+            }
741
+            newListArr.push(obj) 
742
+          }
743
+          for(let i in this.longAdvice){
744
+            for(let j in newListArr){
745
+              if(this.longAdvice[i].id==newListArr[j].id){
746
+                let newList = document.createElement('p');
747
+                newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
748
+                let newListItem1 = document.createElement('span');
749
+                newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
750
+                let newListItem2 = document.createElement('span');
751
+                newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
752
+                let newListItem3 = document.createElement('span');
753
+                newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
754
+                let newListItem4 = document.createElement('span');
755
+                newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
756
+                let newListItem5 = document.createElement('span');
757
+                newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
758
+                let newListItem6 = document.createElement('span');
759
+                newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
760
+                newListItem1.textContent = this.longAdvice[i].advice_name;
761
+                newListItem2.textContent = this.longAdvice[i].advice_type_name;
762
+                newListItem3.textContent = this.getTime(this.longAdvice[i].start_time)
763
+                newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
764
+                newListItem5.textContent = this.longAdvice[i].execution_frequency;
765
+                newListItem6.textContent = this.longAdvice[i].stop_state_name;
766
+                newList.appendChild(newListItem1);
767
+                newList.appendChild(newListItem2);
768
+                newList.appendChild(newListItem3);
769
+                newList.appendChild(newListItem4);
770
+                newList.appendChild(newListItem5);
771
+                newList.appendChild(newListItem6);
772
+                iframeDoc.appendChild(newList)
773
+              }
774
+            }
775
+          }
776
+        })
777
+
778
+
625 779
          this.AuToShow = true
626 780
 
627 781
       //  this.getAutoPatientContent()
@@ -882,8 +1036,13 @@
882 1036
 
883 1037
          this.min_monitor_diastolic_blood_pressure = response.data.data.min_monitor_diastolic_blood_pressure
884 1038
 
1039
+         
885 1040
          this.lastDryWeight = response.data.data.lastDryWeight 
886 1041
 
1042
+         this.patientVascularAccess = response.data.data.patientVascularAccess
1043
+
1044
+         this.lastBefor = response.data.data.lastBefor
1045
+
887 1046
          this.auto_dialog  =  true
888 1047
 
889 1048
             

+ 90 - 13
src/xt_pages/user/text_content.vue Parādīt failu

@@ -91,6 +91,12 @@ export default{
91 91
     },
92 92
     lastDryWeight:{
93 93
       type:Object
94
+    },
95
+    patientVascularAccess:{
96
+      type:Object
97
+    },
98
+    lastBefor:{
99
+      type:Object
94 100
     }
95 101
     
96 102
    },
@@ -104,7 +110,7 @@ export default{
104 110
       // ],
105 111
       Inspect:[{id:1,name:'血常规',date:'2024-12-09',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
106 112
             right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]},
107
-            {id:2,name:'血常规',date:'2024-12-09',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
113
+            {id:2,name:'血常规',date:'2024-12-19',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
108 114
             right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]}
109 115
       ],
110 116
        text:'',
@@ -768,11 +774,80 @@ export default{
768 774
         //干体重
769 775
         if(this.dryweightList!=null && this.dryweightList.length>0){
770 776
            for(let i=0;i<this.dryweightList.length;i++){
771
-            dry_weight_str =  this.getTimeOne(this.dryweightList[i].ctime) + this.dryweightList[i].adjusted_value
777
+            dry_weight_str =  this.getTimeOne(this.dryweightList[i].ctime)+" " +this.dryweightList[i].adjusted_value.slice(4,6)+ this.dryweightList[i].adjusted_value.slice(0,3)+"kg" + "调整到" +" "+ this.dryweightList[i].dry_weight+"kg"+","
772 778
            }
773 779
         } 
774 780
 
775
-     
781
+        //血管通路
782
+        var vascularAccess_str = ""
783
+        var created_time = ""
784
+      
785
+        if(this.patientVascularAccess!=undefined){
786
+          vascularAccess_str  = this.patientVascularAccess.blood_access_part_id + this.patientVascularAccess.blood_access_part_opera_id
787
+          created_time  = this.getTime(this.patientVascularAccess.first_start_time)
788
+        }
789
+
790
+        //并发症
791
+        var complication = ""
792
+        if(this.lastBefor!=undefined){
793
+            complication = this.lastBefor.complication
794
+        }
795
+        
796
+        if(this.inpectionList!=null&& this.inpectionList.length>0){
797
+           for(let i=0;i<this.inpectionList.length;i++){
798
+            this.inpectionList[i].group_no = ""
799
+             this.inpectionList[i].group_no = this.inpectionList[i].project_id.toString()+"_"+this.inpectionList[i].inspect_date.toString()
800
+           }
801
+        }
802
+        console.log("hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh",this.inpectionList)
803
+
804
+        if(this.inpectionList!=null && this.inpectionList.length>0){
805
+          let dataInfo = {}
806
+          this.inpectionList.forEach((item, index) => {
807
+          let { group_no } = item
808
+          if (!dataInfo[group_no]) {
809
+            dataInfo[group_no] = {
810
+              group_no:group_no,
811
+              project_id:item.project_id,
812
+              name:item.project_name,
813
+              date:this.getTime(item.inspect_date),
814
+              child:[],
815
+              left: [],
816
+              right:[]
817
+            }
818
+          }
819
+        })
820
+        let arr = Object.values(dataInfo)
821
+        console.log("arr----------------------",arr)
822
+
823
+        if(arr!=null && arr.length>0){
824
+          for(let i=0;i<arr.length;i++){
825
+            for(let j=0;j<this.inpectionList.length;j++){
826
+              if(arr[i].group_no == this.inpectionList[j].group_no){
827
+                  arr[i].child.push(this.inpectionList[j])
828
+              }
829
+            }
830
+          }
831
+        }
832
+          
833
+        for(let i=0;i<arr.length;i++){
834
+          for(let j=0;j<arr[i].child.length;j++){
835
+             if(j%2 ==0){
836
+               arr[i].left.push(arr[i].child[j])
837
+             }
838
+             if(j%2 == 1){
839
+              arr[i].right.push(arr[i].child[j])
840
+             }
841
+          }
842
+        }
843
+
844
+        this.Inspect = []
845
+        this.Inspect = arr
846
+        console.log("newarr----------------",arr)
847
+       }
848
+       
849
+
850
+
776 851
        const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
777 852
               <tr>
778 853
                 <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
@@ -824,7 +899,7 @@ export default{
824 899
                     <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">${this.lastDryWeight.dry_weight}kg;</span>
825 900
                   </p>
826 901
                   <p>
827
-                    <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class=""></span>
902
+                    <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class="">${dry_weight_str}</span>
828 903
                   </p>
829 904
                 </td>
830 905
               </tr>
@@ -832,7 +907,7 @@ export default{
832 907
                 <td style="align-items: center;padding: 5px;">血管通路</td>
833 908
                 <td style='padding: 5px;'>
834 909
                   <p>
835
-                    <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${ this.ceshi } &nbsp;&nbsp;建立时间:${ this.ceshi }</span>
910
+                    <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${vascularAccess_str } &nbsp;&nbsp;建立时间:${ created_time }</span>
836 911
                   </p>   
837 912
                 </td>
838 913
               </tr>
@@ -843,18 +918,18 @@ export default{
843 918
                     <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
844 919
                   </p>
845 920
                   <p>
846
-                    <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class=""></span>
921
+                    <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">${complication}</span>
847 922
                   </p>
848 923
                 </td>
849 924
               </tr>
850 925
               <tr>
851
-                <td style="align-items: center;padding: 5px;">检结果</td>
926
+                <td style="align-items: center;padding: 5px;">检结果</td>
852 927
                 <td style='padding: 5px;'>
853 928
                   <span class="">无</span>
854 929
                 </td>
855 930
               </tr>
856 931
               <tr>
857
-                <td style="align-items: center;padding: 5px;">检结果</td>
932
+                <td style="align-items: center;padding: 5px;">检结果</td>
858 933
                 <td>
859 934
                   
860 935
                 </td>
@@ -952,8 +1027,8 @@ export default{
952 1027
             newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
953 1028
             let newListItem4 = document.createElement('span');
954 1029
             newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;'
955
-            newListItem3.textContent = this.Inspect[i].left[j].c_name;
956
-            newListItem4.textContent = this.Inspect[i].left[j].c_value;
1030
+            newListItem3.textContent = this.Inspect[i].left[j].item_name;
1031
+            newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
957 1032
             child2.appendChild(newListItem3);
958 1033
             child2.appendChild(newListItem4);
959 1034
           }
@@ -962,8 +1037,8 @@ export default{
962 1037
             newListItem5.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
963 1038
             let newListItem6 = document.createElement('span');
964 1039
             newListItem6.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
965
-            newListItem5.textContent = this.Inspect[i].right[x].c_name;
966
-            newListItem6.textContent = this.Inspect[i].right[x].c_value;
1040
+            newListItem5.textContent = this.Inspect[i].right[x].item_name;
1041
+            newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
967 1042
             child3.appendChild(newListItem5);
968 1043
             child3.appendChild(newListItem6);
969 1044
           }
@@ -1012,6 +1087,8 @@ export default{
1012 1087
         }
1013 1088
       }
1014 1089
       this.$emit('new_content',this.content)
1090
+
1091
+      
1015 1092
     })
1016 1093
   },
1017 1094
   methods: {
@@ -1019,7 +1096,7 @@ export default{
1019 1096
       return uParseTime(time, '{y}-{m}-{d}')
1020 1097
      },
1021 1098
      getTimeOne (time) {
1022
-      return uParseTime(time, '年-月-日')
1099
+      return uParseTime(time, '{y}-{m}-{d}')
1023 1100
      },
1024 1101
     
1025 1102
      getAnticoagulantName(val){

+ 13 - 13
src/xt_permission.js Parādīt failu

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
  // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))