XMLWAN 4 år sedan
förälder
incheckning
6edc7cb952

+ 17 - 2
src/xt_pages/qcd/patientComplianceDetails.vue Visa fil

@@ -110,7 +110,7 @@
110 110
             <div class="tableTitle">指标趋势</div>
111 111
             <div class="cell clearfix">
112 112
               <p class="point"></p>
113
-              <p class="pointTitle">达标率</p>
113
+              <p class="pointTitle">{{itemName}}</p>
114 114
             </div>
115 115
             <div>
116 116
               <line-chart :options="chart"></line-chart>
@@ -137,6 +137,7 @@ export default {
137 137
   },
138 138
   data() {
139 139
     return {
140
+     itemName:"",
140 141
      isTrue:0,
141 142
       crumbs: [
142 143
         { path: false, name: "质控管理" },
@@ -324,6 +325,18 @@ export default {
324 325
       this.monthType = month;
325 326
     },
326 327
     clickQuality(index,itemid) {
328
+      var itemName = ''
329
+      for(let i=0;i<this.normData.length;i++){
330
+         if(itemid == this.normData[i].inspection_minor){
331
+           if(this.normData[i].range_type == 1){
332
+              itemName = this.normData[i].item_name + "("+this.normData[i].min_range + "-"+this.normData[i].large_range+")"+this.normData[i].unit
333
+           }
334
+           if(this.normData[i].range_type == 2){
335
+             itemName = this.normData[i].item_name
336
+           } 
337
+         }
338
+      }
339
+      this.itemName = itemName
327 340
       this.quality = index;
328 341
       this.item_id = itemid
329 342
       this.getlistDetail()
@@ -388,8 +401,10 @@ export default {
388 401
     getNormData(){
389 402
       getNormData().then(response=>{
390 403
          var normdata = response.data.data.normdata
404
+         console.log("normdata",normdata)
391 405
           for(let i=0;i<normdata.length;i++){
392 406
             this.item_id = normdata[0].inspection_minor
407
+            this.itemName = normdata[0].item_name + "("+normdata[0].min_range + "-"+normdata[0].large_range +")"+normdata[0].unit
393 408
           }
394 409
           this.normData = normdata
395 410
           this.getlist()
@@ -503,7 +518,7 @@ export default {
503 518
      handleSelect(val) {
504 519
         console.log("val",val)
505 520
         this.listQuery.search = val.name
506
-        this.patient_id = val.id
521
+        this.patientid = val.id
507 522
         this.getlistDetail()
508 523
       },
509 524
   },

+ 1 - 1
src/xt_pages/qcd/patientControlAnalysis.vue Visa fil

@@ -207,7 +207,7 @@ export default {
207 207
         },
208 208
         series: [
209 209
           {
210
-            name: "次数",
210
+            name: "",
211 211
             type: "bar",
212 212
             data: [],
213 213
             barWidth: 30,