yq1 9 months ago
parent
commit
5bfddc2751
2 changed files with 21 additions and 2 deletions
  1. 19 0
      src/xt_pages/data/druguseTemplate.vue
  2. 2 2
      src/xt_pages/home/index.vue

+ 19 - 0
src/xt_pages/data/druguseTemplate.vue View File

@@ -2898,6 +2898,24 @@
2898 2898
             this.drugSpec = this.all_drug[i].drug_specs
2899 2899
           }
2900 2900
        }
2901
+       this.changeDrugDesc(name)
2902
+      // for (let i = 0; i < this.drugSpec.length; i++) {
2903
+      //   if (this.drugSpec[i].drug_spec == name) {
2904
+      //     this.templateForm.advice_desc = this.drugSpec[i].drug_spec
2905
+      //     this.templateForm.prescribing_number = this.drugSpec[i].prescribing_number.toString()
2906
+      //     this.templateForm.single_dose = this.drugSpec[i].single_dose.toString()
2907
+      //     this.templateForm.delivery_way = this.drugSpec[i].delivery_way.toString()
2908
+      //     this.templateForm.execution_frequency = this.drugSpec[i].execution_frequency.toString()
2909
+      //     this.drug_id = this.drugSpec[i].id
2910
+      //     this.src_type = this.drugSpec[i].type
2911
+      //     this.templateForm.drug_id = this.drugSpec[i].id
2912
+      //     this.templateForm.single_dose_unit = this.drugSpec[i].min_unit
2913
+      //     this.templateForm.prescribing_number_unit = this.drugSpec[i].min_unit
2914
+      //     this.templateForm.drug_spec_unit = this.drugSpec[i].min_unit
2915
+      //     this.templateForm.way = this.drugSpec[i].type
2916
+      //   }
2917
+      // }
2918
+      // console.log('bbbbbbbbb121',this.templateForm);
2901 2919
     },
2902 2920
     changeDrugDesc(name) {
2903 2921
         this.current_drug_spec = name
@@ -2917,6 +2935,7 @@
2917 2935
             this.templateForm.way = this.drugSpec[i].type
2918 2936
           }
2919 2937
         }
2938
+        console.log('bbbbbbbbb121',this.templateForm);
2920 2939
       },
2921 2940
 
2922 2941
       changeDrugNameTwo(name){

+ 2 - 2
src/xt_pages/home/index.vue View File

@@ -42,14 +42,14 @@
42 42
       <div class="main-r">
43 43
         <div class="res-widget">
44 44
           <ul>
45
-            <li class="taocan-title clearfix">
45
+            <!-- <li class="taocan-title clearfix">
46 46
               <div class="taocan-h2">{{subscibeBan.used}}</div>
47 47
               <div class="bar"></div>
48 48
               <div class="taocan-h1">{{subscibeBan.name}}</div>
49 49
             </li>
50 50
             <li class="taocan-item">
51 51
               <div class="ng-binding" :title="subscibeBan.desc">{{subscibeBan.desc}}</div>
52
-            </li>
52
+            </li> -->
53 53
             <!-- <li class="taocan-item">
54 54
               <div class="ng-binding" :title="subscibeBan.detail">{{subscibeBan.detail}}</div>
55 55
             </li>