XMLWAN 4 年 前
コミット
6edc7cb952
共有2 個のファイルを変更した18 個の追加3 個の削除を含む
  1. 17 2
      src/xt_pages/qcd/patientComplianceDetails.vue
  2. 1 1
      src/xt_pages/qcd/patientControlAnalysis.vue

+ 17 - 2
src/xt_pages/qcd/patientComplianceDetails.vue ファイルの表示

110
             <div class="tableTitle">指标趋势</div>
110
             <div class="tableTitle">指标趋势</div>
111
             <div class="cell clearfix">
111
             <div class="cell clearfix">
112
               <p class="point"></p>
112
               <p class="point"></p>
113
-              <p class="pointTitle">达标率</p>
113
+              <p class="pointTitle">{{itemName}}</p>
114
             </div>
114
             </div>
115
             <div>
115
             <div>
116
               <line-chart :options="chart"></line-chart>
116
               <line-chart :options="chart"></line-chart>
137
   },
137
   },
138
   data() {
138
   data() {
139
     return {
139
     return {
140
+     itemName:"",
140
      isTrue:0,
141
      isTrue:0,
141
       crumbs: [
142
       crumbs: [
142
         { path: false, name: "质控管理" },
143
         { path: false, name: "质控管理" },
324
       this.monthType = month;
325
       this.monthType = month;
325
     },
326
     },
326
     clickQuality(index,itemid) {
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
       this.quality = index;
340
       this.quality = index;
328
       this.item_id = itemid
341
       this.item_id = itemid
329
       this.getlistDetail()
342
       this.getlistDetail()
388
     getNormData(){
401
     getNormData(){
389
       getNormData().then(response=>{
402
       getNormData().then(response=>{
390
          var normdata = response.data.data.normdata
403
          var normdata = response.data.data.normdata
404
+         console.log("normdata",normdata)
391
           for(let i=0;i<normdata.length;i++){
405
           for(let i=0;i<normdata.length;i++){
392
             this.item_id = normdata[0].inspection_minor
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
           this.normData = normdata
409
           this.normData = normdata
395
           this.getlist()
410
           this.getlist()
503
      handleSelect(val) {
518
      handleSelect(val) {
504
         console.log("val",val)
519
         console.log("val",val)
505
         this.listQuery.search = val.name
520
         this.listQuery.search = val.name
506
-        this.patient_id = val.id
521
+        this.patientid = val.id
507
         this.getlistDetail()
522
         this.getlistDetail()
508
       },
523
       },
509
   },
524
   },

+ 1 - 1
src/xt_pages/qcd/patientControlAnalysis.vue ファイルの表示

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