zhangyu 4 éve
szülő
commit
59011daca0

+ 1 - 1
src/components/assetDetail/RepairMaintenance.vue

@@ -265,7 +265,7 @@ export default {
         color: #666666;
         font-size: 14px;
         .title {
-          height: 20px;
+          // height: 20px;
           font-size: 14px;
           font-weight: 500;
           color: #333333;

+ 7 - 2
src/views/AssetDetail.vue

@@ -162,8 +162,13 @@ export default {
     // 查询设备信息/维修/维保数据
     getData() {
       if (this.active === 1) {
-        //维保
-        this.getMaintenanceData();
+        if (!isMaintenanceShow && this.isRepairShow) {// 如果没有维保有维修
+          //维修
+          this.getRepairData();
+        } else {
+          //维保
+          this.getMaintenanceData();
+        }
       } else if (this.active === 2) {
         //维修
         this.getRepairData();