Browse Source

10月30日,杏康

yq1 2 weeks ago
parent
commit
e46328e5ab
1 changed files with 20 additions and 2 deletions
  1. 20 2
      src/pages/main/template/DialysisPrintOrdereightyone.vue

+ 20 - 2
src/pages/main/template/DialysisPrintOrdereightyone.vue View File

40
             <check-box :checked="receiverTreatmentAccess.condition == 1"></check-box>
40
             <check-box :checked="receiverTreatmentAccess.condition == 1"></check-box>
41
           </div>
41
           </div>
42
         </div>
42
         </div>
43
-        <div class="inline_block" style="flex: 0.9;">
43
+        <div class="inline_block" style="flex: 1;">
44
           病区:
44
           病区:
45
           <div class="under_line" style="width: 50px; text-align: center">
45
           <div class="under_line" style="width: 50px; text-align: center">
46
             <span v-if="receiverTreatmentAccess.condition != 1">{{
46
             <span v-if="receiverTreatmentAccess.condition != 1">{{
1084
                   </div>
1084
                   </div>
1085
                 </div>
1085
                 </div>
1086
                 <div class="inline_block" style="flex: 1">
1086
                 <div class="inline_block" style="flex: 1">
1087
-                  治疗医
1087
+                  治疗医
1088
                   <div class="under_line"
1088
                   <div class="under_line"
1089
                     style="width: 80px; text-align: center"
1089
                     style="width: 80px; text-align: center"
1090
                   >
1090
                   >
1118
 import CheckBox from './option_check_box'
1118
 import CheckBox from './option_check_box'
1119
 import { getDialysisRecord } from '@/api/dialysis'
1119
 import { getDialysisRecord } from '@/api/dialysis'
1120
 import { getDataConfig } from '@/utils/data'
1120
 import { getDataConfig } from '@/utils/data'
1121
+import { EasyScroller } from 'easyscroller'
1121
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1122
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1122
 import LabelBox from '../printItem/LabelBox'
1123
 import LabelBox from '../printItem/LabelBox'
1123
 
1124
 
1246
       },
1247
       },
1247
       lastWeight:{},
1248
       lastWeight:{},
1248
       number_list:[],
1249
       number_list:[],
1250
+      scroller:{},
1249
     }
1251
     }
1250
   },
1252
   },
1251
   methods: {
1253
   methods: {
2233
       this.$message.error('参数不齐')
2235
       this.$message.error('参数不齐')
2234
       return false
2236
       return false
2235
     }
2237
     }
2238
+  },
2239
+  mounted(){
2240
+    const ele = document.querySelector('#dialysis-print-box-1-1');
2241
+    this.scroller = new EasyScroller(ele, {
2242
+      scrollingX: true,
2243
+      scrollingY: true,
2244
+      zooming: true,
2245
+      minZoom: 0.5,    //最小缩放
2246
+      maxZoom: 5,    //最大缩放
2247
+      zoomLevel: 1, //初始值缩放
2248
+      bouncing: false,
2249
+    });
2250
+    console.log('ssssssss',this.scroller);
2251
+  },
2252
+  beforeDestroy(){
2253
+    this.scroller.destroy()
2236
   }
2254
   }
2237
 }
2255
 }
2238
 </script>
2256
 </script>