Jelajahi Sumber

设备状态调整

tianxinyu 2 minggu lalu
induk
melakukan
1fb97bd973

+ 0 - 4
src/views/system/jbdScan/goods/deviceTag.vue

@@ -282,10 +282,6 @@ export default {
   margin: 10px 0px;
 }
 
-.bg {
-  // height: auto;
-}
-
 .tagBox {
   width: 250px; // 300  240 231
   position: relative;

+ 3 - 3
src/views/system/jbdScan/goods/deviceTagTemplateThree.vue

@@ -20,11 +20,11 @@
                     <div class="container">
                       <div
                         :class="
-                          item.deviceStatus === '合格'
+                          item.deviceStatus === '正常使用'
                             ? 'triangle'
-                            : item.deviceStatus === '停用'
+                            : item.deviceStatus === '停止使用'
                             ? 'triangleRed'
-                            : item.deviceStatus === '用'
+                            : item.deviceStatus === '暂停使用'
                             ? 'triangleYellow'
                             : 'triangleGray'
                         "

+ 3 - 14
src/views/system/jbdScan/goods/deviceTagTemplateTwo.vue

@@ -51,11 +51,11 @@
                           <span
                             :style="{
                               background:
-                                (item[e.field] === '合格'
+                                (item[e.field] === '正常使用'
                                   ? '#008000'
-                                  : item[e.field] === '停用'
+                                  : item[e.field] === '停止使用'
                                   ? '#ff0000'
-                                  : item[e.field] === '用'
+                                  : item[e.field] === '暂停使用'
                                   ? '#ffff00'
                                   : '#909399') + '!important',
                               color: '#fff !important',
@@ -292,19 +292,10 @@ export default {
   text-align: center;
   margin: 10px 0px;
 }
-// .mid{
-//     display: flex;
-//     justify-content: center;
-//     flex-wrap: wrap;
-// }
-.bg {
-  // height: auto;
-}
 
 .tagBox {
   width: 330px; // 300  240 231
   position: relative;
-  // border: 1px solid #000000;
   border-top: 0px;
   display: inline-block;
   background-color: #fff;
@@ -351,7 +342,6 @@ export default {
   display: flex;
   align-items: center;
   margin: 0 2px;
-  // border-bottom: 1px solid #000000;
   .borderSty {
     border-bottom: 1px solid #000;
     text-align: left;
@@ -419,7 +409,6 @@ export default {
 }
 
 .left-triangle {
-  /* border-top: 100px solid transparent; */
   border-right: 100px solid black;
   border-bottom: 50px solid rgb(217, 217, 233);
   top: 0;

+ 9 - 7
src/views/system/jbdScan/goods/deviceVerificationTag.vue

@@ -20,9 +20,9 @@
                     <div class="container">
                       <div
                         :class="
-                          item.deviceStatus === '合格'
+                          item.deviceStatus === '正常使用'
                             ? 'triangle'
-                            : item.deviceStatus === '停用'
+                            : item.deviceStatus === '停止使用'
                               ? 'triangleRed'
                               : 'triangleYellow'
                         "
@@ -221,7 +221,7 @@ export default {
     switchProve(status) {
       switch (status) {
         case '正常使用':
-          return '合格证'
+          return '正常使用证'
         case '暂停使用':
           return '暂停使用证'
         case '停止使用':
@@ -233,11 +233,13 @@ export default {
     switchSlogan(status) {
       switch (status) {
         case '正常使用':
-          return 'PASS'
+          return 'normal'
         case '暂停使用':
-          return 'STOP'
+          return 'paused'
+        // case '限用':
+        //   return 'RESTRICT'
         case '停止使用':
-          return 'RESTRICT'
+          return 'stopped'
         default:
           return 'TEST'
       }
@@ -346,7 +348,7 @@ export default {
   position: relative;
   top: -45px;
   left: -50px;
-  font-size: 24px;
+  font-size: 20px;
   font-weight: bold;
   color: #000000;
 }