huangbin 4 år sedan
förälder
incheckning
f34f2b1274

+ 57 - 4
src/views/platinum/platinum_recharge_withdrawal_review/list/recharge/index.vue

@@ -4,16 +4,69 @@
   <!-- 充值审核 -->
   <div class="platinum_recharge_review_tab">
     <Filter />
+    <contextMenu :contextMenuList="forDataBtn">
+      <a-table :columns="columns"
+               class="topTable hiddenFirstCol"
+               :pagination="false"
+               :expandedRowKeys="expandedRowKeys"
+               :customRow="Rowclick"
+               rowKey="key"
+               :data-source="tableList">
+        <!-- 额外的展开行 -->
+        <template #expandedRowRender="{  }">
+          <BtnList :btnList="firstBtn"
+                   @onClick="btnClick" />
+        </template>
+      </a-table>
+    </contextMenu>
   </div>
 </template>
 
 <script lang="ts">
-import { defineComponent } from '@/common/export/table';
-import Filter from '../../compoments/filter/index.vue'
+import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
+import { ErmcpWareHouseInfo } from '@/views/information/warehouse-info/list';
+import Filter from '../../compoments/filter/index.vue';
+import { queryTableList } from '../setup';
 
 export default defineComponent({
     name: 'platinum_recharge_review_tab',
-    components: {Filter},
-    setup() {},
+    components: { Filter, contextMenu, BtnList },
+    setup() {
+        // 表头数据
+        const { columns, registerColumn, updateColumn, filteredInfo } = getTableColumns();
+        // 表格事件
+        const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<ErmcpWareHouseInfo>({});
+        // 表格操作按钮列表
+        const [firstBtn] = _getBtnList('platinum_withdrawal_review_tab', false).value;
+        // 表格列表数据
+        const { loading, tableList, queryTable } = queryTableList('1');
+        initData(() => {
+            // 获取列表数据
+            queryTable();
+            // 注册表头信息 过滤
+            registerColumn('table_pcweb_warehouse', ['warehousetype', 'warehousename', 'address']);
+        });
+
+        // 查询
+        function search(value: any) {
+            filteredInfo.value = value;
+            // 更新表信息
+            updateColumn();
+        }
+
+        return {
+            columns,
+            filteredInfo,
+            expandedRowKeys,
+            selectedRow,
+            Rowclick,
+            firstBtn,
+            loading,
+            tableList,
+            search,
+            queryTable,
+            btnClick,
+        };
+    },
 });
 </script>

+ 0 - 0
src/views/platinum/platinum_recharge_withdrawal_review/list/withdrawal/setup.ts → src/views/platinum/platinum_recharge_withdrawal_review/list/setup.ts


+ 1 - 1
src/views/platinum/platinum_recharge_withdrawal_review/list/withdrawal/index.vue

@@ -24,7 +24,7 @@
 import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
 import { ErmcpWareHouseInfo } from '@/views/information/warehouse-info/list';
 import Filter from '../../compoments/filter/index.vue';
-import { queryTableList } from './setup';
+import { queryTableList } from '../setup';
 
 export default defineComponent({
     name: 'platinum_withdrawal_review_tab',