Browse Source

[Fix 0000] 修复瓦斯巡检任务管理明细选择时的选择集合逻辑错误

ruienger 2 days ago
parent
commit
7f0187c31f
1 changed files with 8 additions and 20 deletions
  1. 8 20
      src/views/vent/gas/gasInspect/index2.vue

+ 8 - 20
src/views/vent/gas/gasInspect/index2.vue

@@ -43,7 +43,7 @@
         <a-space class="search-area mb-10px">
           <div class="item-text">巡检地址:</div>
           <a-input style="width: 240px" v-model:value="searchParams3.deviceName" placeholder="请输入巡检地址" />
-          <a-button type="primary" preIcon="ant-design:search-outlined" class="ml-10px" @click="reload()">查询</a-button>
+          <a-button type="primary" preIcon="ant-design:search-outlined" class="ml-10px" @click="tableContext3.reload()">查询</a-button>
           <a-popconfirm title="确认操作" ok-text="确定" cancel-text="取消" @confirm="handlePatch('add')">
             <a-button type="primary" preIcon="ant-design:plus-outlined">添加</a-button>
           </a-popconfirm>
@@ -160,7 +160,7 @@
   });
   const [registerTable1, tableContext1] = tx1;
   const [registerTable2, tableContext2] = tx2;
-  const [registerTable3, { reload }, { rowSelection, selectedRows }] = tx3;
+  const [registerTable3, tableContext3, { rowSelection, selectedRows }] = tx3;
   const [registerModal1, modalContext1] = useModal();
   const [registerModal2, modalContext2] = useModal();
   const [registerModal3, modalContext3] = useModal();
@@ -192,6 +192,9 @@
   function handleManage(record) {
     selectedRow.value = record;
     modalContext3.openModal();
+    nextTick(() => {
+      tableContext3.clearSelectedRowKeys();
+    });
   }
 
   // 详情管理
@@ -213,7 +216,9 @@
       }),
     }).then(() => {
       message.success('操作成功');
-      reload();
+      tableContext3.clearSelectedRowKeys();
+      tableContext3.reload();
+      tableContext1.reload();
     });
   }
 
@@ -276,21 +281,4 @@
       color: #fff !important;
     }
   }
-
-  :deep(.zxm-table-thead > tr > th:last-child) {
-    border-right: 1px solid #91e9fe !important;
-  }
-
-  :deep(.zxm-picker-input > input) {
-    color: #fff;
-  }
-
-  :deep(.zxm-select:not(.zxm-select-customize-input) .zxm-select-selector) {
-    border: 1px solid #3ad8ff77 !important;
-    background-color: #ffffff00 !important;
-  }
-
-  :deep(.zxm-select-selection-item) {
-    color: #fff !important;
-  }
 </style>