Jelajahi Sumber

Merge branch 'master' of http://182.44.34.170:8081/jiankun/q-baqd

gaoxizhong 1 tahun lalu
induk
melakukan
340882c734

+ 1 - 1
src/views/allcase/caseViews.vue

@@ -110,7 +110,7 @@
       <!-- status 不存在 意味着不脱敏、医院自助查询 -->
       <template v-if="!$route.query.status">
         <!-- 住院病案质控 -->
-        <CaseQualityBox :data="results" :type="type_v" :height="820" />
+        <CaseQualityBox :data="results" :type="type_v" :width="380" :height="820" />
       </template>
     </div>
   </div>

+ 7 - 2
src/views/allcase/components/CaseQualityBox2.vue

@@ -1,5 +1,5 @@
 <template>
-  <div ref="box" class="box">
+  <div ref="box" class="box" :style="{width: width ? width + 'px' : '100%'}">
 
     <div class="score-box" :class="scoreLevel == '甲'? 'scoreLevel_1' : ( scoreLevel == '乙'?'scoreLevel_2': (scoreLevel == '丙'?'scoreLevel_3':'' ) ) ">
       <div>病案评分<span class="score-f">{{ data.score  }}分</span></div>
@@ -99,6 +99,12 @@
         default() {
           return 0
         }
+      },
+      width: {
+        type: Number,
+        default() {
+          return 0
+        }
       }
     },
     computed: {
@@ -160,7 +166,6 @@
 
 
 .box {
-  width: 380px;
   padding: 16px;
   background: #FFFFFF;
   border-radius: 5px;