huangbin 4 tahun lalu
induk
melakukan
ccba7ded2f
1 mengubah file dengan 9 tambahan dan 2 penghapusan
  1. 9 2
      src/views/platinum/platinum_agreement/list/tab/index.vue

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

@@ -25,7 +25,7 @@
       </a-table>
     </contextMenu>
     <ControlModal :selectedRow="selectedRow"
-                  @refresh="update" />
+                  @refresh="getData" />
   </div>
 </template>
 
@@ -49,14 +49,21 @@ export default defineComponent({
         const [firstBtn, secondBtn] = _getBtnList('platinum_agreement_tab', true).value;
         // 表格列表数据
         const { loading, tableList, queryTable } = queryTableList<QhjAgreementConfig>();
-        initData(() => {
+
+        function getData() {
             // 获取列表数据
             queryTable(queryAgreementConfig);
+        }
+
+        initData(() => {
+            // 获取列表数据
+            getData();
             // 注册表头信息 过滤
             registerColumn('table_pcweb_agreement', ['agreementno', 'agreementtype']);
         });
 
         return {
+            getData,
             columns,
             secondBtn,
             expandedRowKeys,