瀏覽代碼

11月6 检验检查

yq1 1 周之前
父節點
當前提交
b2fca3bb0e
共有 1 個文件被更改,包括 23 次插入9 次删除
  1. 23 9
      src/xt_pages/user/inspection.vue

+ 23 - 9
src/xt_pages/user/inspection.vue 查看文件

@@ -143,11 +143,29 @@
143 143
               >
144 144
                 <template slot-scope="scope">
145 145
                     <div v-if="items[0].value.indexOf('http') < 0">
146
-                      <span v-if="scope.row.value =='阳性'" style="color:red">{{ scope.row.value }}</span>
147
-                      <span v-else>{{ scope.row.value }}</span>
146
+                      <span v-if="scope.row.range_type == 2">
147
+                        <span v-if="scope.row.value=='阳性'" style="color: red"> {{ scope.row.value }}</span>
148
+                        <span v-else> {{ scope.row.value }}</span>
149
+                      </span>
148 150
                       <span v-if="scope.row.range_type == 1">
149
-                    {{ scope.row.value_direction }}
150
-                    </span>
151
+                        <span v-if="scope.row.value < parseFloat(scope.row.range_min) ">
152
+                          {{ scope.row.value }} <span style="color: blue;" v-if="scope.row.value>0">↓</span>
153
+                        </span>
154
+                        <span v-if="parseFloat(scope.row.range_min)<= parseFloat( scope.row.value) && parseFloat(scope.row.value)<= parseFloat(scope.row.range_max) ">
155
+                          {{ scope.row.value }}
156
+                        </span>
157
+                        <span v-if="parseFloat(scope.row.value) >parseFloat(scope.row.range_max) ">
158
+                          {{ scope.row.value }} <span style="color: red;" v-if="scope.row.value>0">↑</span>
159
+                        </span>
160
+                        <span v-if ="scope.row.range_max ==''||scope.row.range_min ==''">
161
+                          {{ scope.row.value }}
162
+                        </span>
163
+                      </span>
164
+                      <!-- <span v-if="scope.row.value =='阳性'" style="color:red">{{ scope.row.value }}</span> -->
165
+                      <!-- <span v-else>{{ scope.row.value }}</span> -->
166
+                      <!-- <span v-if="scope.row.range_type == 1">
167
+                        {{ scope.row.value_direction }}
168
+                      </span> -->
151 169
                     </div>
152 170
                   <div v-else>
153 171
                     <img :src="scope.row.value">
@@ -1331,7 +1349,6 @@ export default {
1331 1349
               
1332 1350
               console.log("item=-----------------",item)
1333 1351
               if (item.item_id > 0) {
1334
-                
1335 1352
                 if (typeof(inspectionsMap[parseInt(items[index].item_id)])  == "undefined") {
1336 1353
                   if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278 || this.org_id == 10702){
1337 1354
                     item.value = inspectionsMap[items[index].id].inspect_value
@@ -1341,7 +1358,7 @@ export default {
1341 1358
                     item.item_name = ""
1342 1359
                   }
1343 1360
                 } else {
1344
-                  item.value = inspectionsMap[items[index].item_id].inspect_value
1361
+                  item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1345 1362
                   item.item_name = inspectionsMap[items[index].item_id].item_name
1346 1363
                 }
1347 1364
 
@@ -1391,9 +1408,6 @@ export default {
1391 1408
               }
1392 1409
 
1393 1410
               console.log("woowwoow",this.isPic)
1394
-
1395
-
1396
-
1397 1411
               console.log("isPicwowowow",this.items)
1398 1412
             }
1399 1413
           }