huangbin 4 лет назад
Родитель
Сommit
2949cd7b34

+ 1 - 0
src/common/setup/table/event.ts

@@ -27,6 +27,7 @@ export function getTableEvent<T>(param: TableEventCB) {
             },
         };
     }
+    // 处理表格展开行 数据不会及时更新问题
     function btnClick(record: T) {
         selectedRow.value = record
     }

+ 2 - 1
src/views/platinum/platinum_agreement/list/tab/index.vue

@@ -16,7 +16,8 @@
                :data-source="tableList">
         <!-- 额外的展开行 -->
         <template #expandedRowRender="{  }">
-          <BtnList :btnList="secondBtn" />
+          <BtnList :btnList="secondBtn"
+                   @click="btnClick" />
         </template>
         <!-- 协议类型-->
         <template #agreementtype="{ record }">