Your Name 1 rok pred
rodič
commit
61bfbdf348

+ 1 - 1
src/components/DiagCalcShow.vue

@@ -62,7 +62,7 @@
         </div>
       </div>
       <div class="diagShowForm">
-        <div class="formTitle">FVI药代动力学参数</div>
+        <div class="formTitle">FVIII药代动力学参数</div>
         <div style="display:flex;">
           <div class="rowfont" style="width:50%;">半衰期</div>
           <div class="rowfont" style="width:50%;color:#888;">{{caseInfo.bsq}}</div>

+ 5 - 5
src/components/DocIndex.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="container">
+  <div class="docContainer">
     <div style="position:relative;">
       <img src="../assets/images/infobg.png" alt="" width="100%" style="">
       <div class="docinfo">
@@ -61,13 +61,13 @@
           doctor_id: this.doctorInfo.id
         }).then(res => {
           if (res.data.code == 0 && res.data.data.id) {
-            MessageBox.confirm("", {
+            MessageBox ({
               title: '提示',
               message: '您有一个病例未完成',
               showCancelButton: true,
               confirmButtonText: "继续录入",
               cancelButtonText: "重新录入",
-              cancelButtonClass: "cancelBtn",
+              cancelButtonClass: "docIndexCancelBtn",
               confirmButtonClass: "confirmButtonClass"
             }, action => {
               console.log(action)
@@ -97,7 +97,7 @@
 </script>
 
 <style lang="scss">
-  .container {
+  .docContainer {
     .bgcolor {
       width: 100%;
       height: 10rem;
@@ -153,7 +153,7 @@
 
   }
 
-  .cancelBtn {
+  .docIndexCancelBtn {
     font-size: 24px;
     /* color: red !important; */
   }

+ 3 - 3
src/components/PatIndex.vue

@@ -64,21 +64,21 @@
                     3% ~ 5% <sup>2、3</sup>
                   </div>
                   <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适宜低风险活动</div>
-                  <div class="rowfont" style="font-weight:bold;font-size:1.0rem;color:#3B4070;">(如散步、慢跑、无对抗运动等)</div>
+                  <div class="rowfont" style="font-weight:bold;font-size:0.8rem;color:#3B4070;">(如散步、慢跑、无对抗运动等)</div>
                 </div>
                 <div v-if="latestCase.FVIII > 5 && latestCase.FVIII <= 15">
                   <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
                     5%~15% <sup>2、3</sup>
                   </div>
                   <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适中风险活动</div>
-                  <div class="rowfont" style="font-weight:bold;font-size:1.0rem;color:#3B4070;">(如爬山、骑行、球类运动等)</div>
+                  <div class="rowfont" style="font-weight:bold;font-size:0.8rem;color:#3B4070;">(如爬山、骑行、球类运动等)</div>
                 </div>
                 <div v-if="latestCase.FVIII > 15">
                   <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
                     5%~15% <sup>2、3</sup>
                   </div>
                   <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适高风险活动</div>
-                  <div class="rowfont" style="font-weight:bold;font-size:1.0rem;color:#3B4070;">(如滑雪、滑冰、滑板等)</div>
+                  <div class="rowfont" style="font-weight:bold;font-size:0.8rem;color:#3B4070;">(如滑雪、滑冰、滑板等)</div>
                 </div>
               </div>
             </div>

+ 1 - 1
src/components/ProCaseList.vue

@@ -26,7 +26,7 @@
             <mt-cell :title="'产品:'+item.ckmpro" :value="'剂量(IU):'+item.ckzsjl"></mt-cell>
             <mt-cell :title="'频次:'+item.ckmfreq" :value="'体重(KG):'+item.bltz"></mt-cell>
             <mt-cell :title="'方案医生:'+item.doctor_name"></mt-cell>
-            <div style="font-size:1rem;text-align:left;padding-left:10px;">
+            <div style="font-size:1.2rem;text-align:left;padding-left:10px;">
               方案时间:{{item.ctime}}
               <mt-button type="primary" size="small" @click="showDetail(item.id)">详情</mt-button>
             </div>

+ 41 - 31
src/components/SolutionPkLine.vue

@@ -6,12 +6,12 @@
       <div class="PKLineForm">
         <v-chart :option="pklineOption" style="height: 350px">
         </v-chart>
-        <div class="tuli">
+        <!-- <div class="tuli">
           <p style="color:#6594D5;"> —活性</p>
           <p style="color:#AC4C44;">---5%</p>
           <p style="color:#4caf50;">---3%</p>
           <p style="color:#ab6cef;">---1%</p>
-        </div>
+        </div> -->
         <p class="xLabel">时间(小时)</p>
         <!-- <div class="YLabel">活性(%)</div> -->
       </div>
@@ -65,12 +65,12 @@
           },
           calculable: true,
           xAxis: [{
-            max:32,
+            // max:192,
             // min:0,
             // minInterval:1,
             // scale:false,
-            splitNumber:32,
-            interval:1,
+            // splitNumber:32,
+            // interval:6,
             type: 'category',
             boundaryGap: false,
             data: [],
@@ -78,6 +78,7 @@
             axisLabel:{
               interval:0,
               formatter(v,i){
+                // return v
                 if(i==8){
                   return '48'
                 }
@@ -154,31 +155,31 @@
                 formatter: '{b}'
               },
               data: [{
-                  name: '1',
+                  name: '1%',
                   yAxis: 20,
                   lineStyle: {
                     color: '#ab6cef'
                   }
                 },
                 {
-                  name: '3',
+                  name: '3%',
                   yAxis: 40,
                   lineStyle: {
                     color: '#4caf50'
                   }
                 },
                 {
-                  name: '5',
+                  name: '5%',
                   yAxis: 60,
                   lineStyle: {
                     color: '#AC4C44'
                   }
                 },
                 {
-                  name: '15',
+                  name: '15%',
                   yAxis: 80,
                   lineStyle: {
-                    color: '#AC4C44'
+                    color: '#f44336'
                   }
                 },
                 {
@@ -371,32 +372,41 @@
             //  3.寻找 min_v 所在的下标
             const index = this.dataInterval.findIndex((v) => v === min_v);
             //  4.计算该amount在y轴上应该展示的位置
-            // const y_value = ((yxlData[i] - min_v) / (max_v - min_v)) * 20 + index * 20;
+            const y_value = ((yxlData[i] - min_v) / (max_v - min_v)) * 20 + index * 20;
 
-            let y_value = yxlData[i];
-            if(y_value>=0 & y_value<=20){
-              y_value = y_value/20*y_value
+            if(i==35){
+              console.log(yxlData[i],111111111)
+              console.log(min_v,22222222222)
+              console.log(max_v,333333333)
+              console.log(index,4444444444)
+              console.log(y_value)
             }
-            if(y_value>20 & y_value<=40){
-              y_value = y_value/40*y_value
-              // y_value = 1+(y_value-20)/20*y_value
+
+            // let y_value = yxlData[i];
+            // if(y_value>=0 & y_value<=20){
+            //   y_value = y_value/20*y_value
+            // }
+            // if(y_value>20 & y_value<=40){
+            //   y_value = y_value/40*y_value
+            //   // y_value = 1+(y_value-20)/20*y_value
               
-            }
-            if(y_value>40 & y_value<=60){
-              y_value = y_value/60*y_value
-              // y_value = 3 + (y_value-40)/20*y_value
-            }
-            if(y_value>60 & y_value<=80){
-              y_value = y_value/80*y_value
-              // y_value = 5 + (y_value-60)/20*y_value
-            }
-            if(y_value>80 & y_value<=100){
-              y_value = y_value/100*y_value
-            }
+            // }
+            // if(y_value>40 & y_value<=60){
+            //   y_value = y_value/60*y_value
+            //   // y_value = 3 + (y_value-40)/20*y_value
+            // }
+            // if(y_value>60 & y_value<=80){
+            //   y_value = y_value/80*y_value
+            //   // y_value = 5 + (y_value-60)/20*y_value
+            // }
+            // if(y_value>80 & y_value<=100){
+            //   y_value = y_value/100*y_value
+            // }
+
             yxlData2[i] = y_value;
+            // break
           }
-
-          console.log(yxlData2,2222222222222)
+          console.log(yxlData2,666666666666666666)
           // this.pklineOption.series[0].data = res.data.data.pk_ydata
           this.pklineOption.series[0].data = yxlData2
           // this.yxlData2 = yxlData2