浏览代码

BUG修复

seimin 3 年之前
父节点
当前提交
7c646f0fff
共有 1 个文件被更改,包括 105 次插入38 次删除
  1. 105 38
      src/views/AppIndex.vue

+ 105 - 38
src/views/AppIndex.vue

@@ -458,7 +458,7 @@
458 458
           <h2 class="title">
459 459
             <div class="operateTitle">
460 460
               标本详情
461
-              <div class="operate">
461
+              <div class="operate checkbox">
462 462
                 <label>
463 463
                   <input type="checkbox" value="332" v-model="speState" /><span
464 464
                     >未收取</span
@@ -609,16 +609,22 @@
609 609
           <h2 class="title">
610 610
             <div class="operateTitle">
611 611
               患者检查详情
612
-              <div class="operate">
612
+              <div class="operate radio">
613 613
                 <label>
614
-                  <input type="radio" value="666" v-model="inspectState" /><span
615
-                    >所有检查</span
616
-                  >
614
+                  <span>所有检查</span
615
+                  ><input
616
+                    type="radio"
617
+                    value="666"
618
+                    v-model="inspectState"
619
+                  /><i></i>
617 620
                 </label>
618 621
                 <label>
619
-                  <input type="radio" value="307" v-model="inspectState" /><span
620
-                    >待检查</span
621
-                  >
622
+                  <span>待检查</span
623
+                  ><input
624
+                    type="radio"
625
+                    value="307"
626
+                    v-model="inspectState"
627
+                  /><i></i>
622 628
                 </label>
623 629
               </div>
624 630
             </div>
@@ -1018,9 +1024,12 @@ export default {
1018 1024
       console.log(item);
1019 1025
       clearTimeout(this.timer5);
1020 1026
       clearTimeout(this.timer55);
1021
-      this.inspectState = "666";
1022 1027
       this.currentInspectDept = item;
1023 1028
       this.detailSpeModel = true;
1029
+      this.getDetailByInspect(this.currentInspectDept);
1030
+      if (this.inspectState !== "666") {
1031
+        this.inspectState = "666";
1032
+      }
1024 1033
     },
1025 1034
     // 获取检查详情(病房患者视图)
1026 1035
     getDetailByInspect(item) {
@@ -1557,39 +1566,97 @@ export default {
1557 1566
           position: absolute;
1558 1567
           top: 0;
1559 1568
           left: 100%;
1560
-          label {
1561
-            cursor: pointer;
1562
-            margin-left: 8px;
1563
-            display: inline-flex;
1564
-            align-items: center;
1565
-            span {
1566
-              margin-left: 4px;
1569
+          &.checkbox {
1570
+            label {
1571
+              cursor: pointer;
1572
+              margin-left: 8px;
1573
+              display: inline-flex;
1574
+              align-items: center;
1575
+              span {
1576
+                margin-left: 4px;
1577
+              }
1578
+              // 多选框
1579
+              input[type="checkbox"] {
1580
+                cursor: pointer;
1581
+                position: relative;
1582
+                width: 15px;
1583
+                height: 15px;
1584
+                font-size: 15px;
1585
+              }
1586
+
1587
+              input[type="checkbox"]:checked::after {
1588
+                position: absolute;
1589
+                overflow: hidden;
1590
+                background-color: #49b856;
1591
+                border: 1px solid #767676;
1592
+                color: #fff;
1593
+                width: 15px;
1594
+                height: 15px;
1595
+                border-radius: 4px;
1596
+                line-height: 0.8;
1597
+                display: inline-block;
1598
+                content: "\e618;";
1599
+                font-size: 15px;
1600
+                font-family: "icon_transport" !important;
1601
+                font-style: normal;
1602
+                -webkit-font-smoothing: antialiased;
1603
+                -moz-osx-font-smoothing: grayscale;
1604
+              }
1567 1605
             }
1568
-            input[type="checkbox"] {
1606
+          }
1607
+          &.radio {
1608
+            label {
1569 1609
               cursor: pointer;
1610
+              margin-left: 8px;
1611
+              display: inline-flex;
1612
+              align-items: center;
1570 1613
               position: relative;
1571
-              width: 15px;
1572
-              height: 15px;
1573
-              font-size: 15px;
1574
-            }
1614
+              font-weight: 400;
1615
+              color: #767676;
1616
+              padding-left: 16px;
1617
+              span {
1618
+                margin-left: 4px;
1619
+              }
1620
+              input[type="radio"] {
1621
+                position: absolute;
1622
+                left: -9999px;
1623
+              }
1575 1624
 
1576
-            input[type="checkbox"]:checked::after {
1577
-              position: absolute;
1578
-              overflow: hidden;
1579
-              background-color: #49b856;
1580
-              border: 1px solid #767676;
1581
-              color: #fff;
1582
-              width: 15px;
1583
-              height: 15px;
1584
-              border-radius: 4px;
1585
-              line-height: 0.8;
1586
-              display: inline-block;
1587
-              content: "\e618;";
1588
-              font-size: 15px;
1589
-              font-family: "icon_transport" !important;
1590
-              font-style: normal;
1591
-              -webkit-font-smoothing: antialiased;
1592
-              -moz-osx-font-smoothing: grayscale;
1625
+              input[type="radio"] + i {
1626
+                display: block;
1627
+                position: absolute;
1628
+                left: 0;
1629
+                width: 14px;
1630
+                height: 14px;
1631
+                outline: 0;
1632
+                border: 1px solid #0c4757;
1633
+                background: transparent;
1634
+                border-radius: 50%;
1635
+                transition: border-color 0.3s;
1636
+                -webkit-transition: border-color 0.3s;
1637
+              }
1638
+              input[type="radio"]:checked + i {
1639
+                border-color: #49b856;
1640
+              }
1641
+
1642
+              input[type="radio"] + i:after {
1643
+                position: absolute;
1644
+                content: "";
1645
+                top: 50%;
1646
+                left: 50%;
1647
+                width: 8px;
1648
+                height: 8px;
1649
+                border-radius: 50%;
1650
+                background-color: #49b856;
1651
+                transform: translate(-50%, -50%);
1652
+                opacity: 0;
1653
+                transition: opacity 0.1s;
1654
+                -webkit-transition: opacity 0.1s;
1655
+              }
1656
+
1657
+              input[type="radio"]:checked + i:after {
1658
+                opacity: 1;
1659
+              }
1593 1660
             }
1594 1661
           }
1595 1662
         }