yu jie 4 years ago
parent
commit
7814365c35

+ 71 - 59
src/views/platinum/platinum_recharge_withdrawal_review/list/recharge/index.vue

@@ -1,70 +1,82 @@
 <template>
-  <!-- 充值审核 -->
-  <div class="platinum_recharge_review_tab">
-    <Filter @search="updateColumn" />
-    <contextMenu :contextMenuList="firstBtn">
-      <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>
-    <ControlModal :selectedRow="selectedRow" />
-  </div>
+    <!-- 充值审核 -->
+    <div class="platinum_recharge_review_tab">
+        <Filter @search="updateColumn"/>
+        <contextMenu :contextMenuList="firstBtn">
+            <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>
+                <!-- 账户类型 -->
+                <template #userinfotype="{ record }">
+                    <a>{{ record.userinfotype === 1 ? "个人" : "企业" }}</a>
+                </template>
+            </a-table>
+        </contextMenu>
+        <ControlModal :selectedRow="selectedRow"/>
+    </div>
 </template>
 
 <script lang="ts">
-import { defineComponent, initData, getTableColumns, getTableEvent, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
-import { QhjAccountOutInApply } from '@/services/go/ermcp/qhj/interface';
-import Filter from '../../compoments/filter/index.vue';
-import { queryTableList } from '../setup';
-import ControlModal from './compoments/controlModal/index.vue';
+    import {
+        defineComponent,
+        initData,
+        getTableColumns,
+        getTableEvent,
+        contextMenu,
+        BtnList,
+        _getBtnList
+    } from '@/common/export/table';
+    import {QhjAccountOutInApply} from '@/services/go/ermcp/qhj/interface';
+    import Filter from '../../compoments/filter/index.vue';
+    import {queryTableList} from '../setup';
+    import ControlModal from './compoments/controlModal/index.vue';
 
-export default defineComponent({
-    name: 'platinum_recharge_review_tab',
-    components: { Filter, contextMenu, BtnList, ControlModal },
-    setup() {
-        // 表头数据
-        const { columns, registerColumn, updateColumn } = getTableColumns();
-        // 表格事件
-        const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<QhjAccountOutInApply>({});
-        // 表格操作按钮列表
-        const [firstBtn] = _getBtnList('platinum_recharge_review_tab', true).value;
-        // 表格列表数据
-        const { loading, tableList, queryTable } = queryTableList('in');
-        initData(() => {
-            // 获取列表数据
-            queryTable();
-            // 注册表头信息 过滤
-            registerColumn('table_pcweb_qhj_recharge_review', ['accountcode', 'updatetime']);
-        });
+    export default defineComponent({
+        name: 'platinum_recharge_review_tab',
+        components: {Filter, contextMenu, BtnList, ControlModal},
+        setup() {
+            // 表头数据
+            const {columns, registerColumn, updateColumn} = getTableColumns();
+            // 表格事件
+            const {expandedRowKeys, selectedRow, Rowclick, btnClick} = getTableEvent<QhjAccountOutInApply>({});
+            // 表格操作按钮列表
+            const [firstBtn] = _getBtnList('platinum_recharge_review_tab', true).value;
+            // 表格列表数据
+            const {loading, tableList, queryTable} = queryTableList('in');
+            initData(() => {
+                // 获取列表数据
+                queryTable();
+                // 注册表头信息 过滤
+                registerColumn('table_pcweb_qhj_recharge_review', ['accountcode', 'updatetime']);
+            });
 
-        return {
-            columns,
+            return {
+                columns,
 
-            expandedRowKeys,
-            selectedRow,
-            Rowclick,
-            firstBtn,
-            loading,
-            tableList,
-            updateColumn,
-            queryTable,
-            btnClick,
-        };
-    },
-});
+                expandedRowKeys,
+                selectedRow,
+                Rowclick,
+                firstBtn,
+                loading,
+                tableList,
+                updateColumn,
+                queryTable,
+                btnClick,
+            };
+        },
+    });
 </script>
 
 <style lang="less">
-.platinum_recharge_review_tab {
-}
+    .platinum_recharge_review_tab {
+    }
 </style>;

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

@@ -1,64 +1,77 @@
 <template>
-  <!-- 提现审核 -->
-  <div class="platinum_withdrawal_review_tab">
-    <Filter @search="updateColumn"></Filter>
-    <contextMenu :contextMenuList="firstBtn">
-      <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>
-    <ControlModal :selectedRow="selectedRow" />
-  </div>
+    <!-- 提现审核 -->
+    <div class="platinum_withdrawal_review_tab">
+        <Filter @search="updateColumn"></Filter>
+        <contextMenu :contextMenuList="firstBtn">
+            <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>
+                <!-- 账户类型 -->
+                <template #userinfotype="{ record }">
+                    <a>{{ record.userinfotype === 1 ? "个人" : "企业" }}</a>
+                </template>
+
+            </a-table>
+        </contextMenu>
+        <ControlModal :selectedRow="selectedRow"/>
+    </div>
 </template>
 
 <script lang="ts">
-import { defineComponent, initData, getTableColumns, getTableEvent, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
-import { QhjAccountOutInApply } from '@/services/go/ermcp/qhj/interface';
-import Filter from '../../compoments/filter/index.vue';
-import { queryTableList } from '../setup';
-import ControlModal from './compoments/controlModal/index.vue';
+    import {
+        defineComponent,
+        initData,
+        getTableColumns,
+        getTableEvent,
+        contextMenu,
+        BtnList,
+        _getBtnList
+    } from '@/common/export/table';
+    import {QhjAccountOutInApply} from '@/services/go/ermcp/qhj/interface';
+    import Filter from '../../compoments/filter/index.vue';
+    import {queryTableList} from '../setup';
+    import ControlModal from './compoments/controlModal/index.vue';
 
-export default defineComponent({
-    name: 'platinum_withdrawal_review_tab',
-    components: { Filter, contextMenu, BtnList, ControlModal },
-    setup() {
-        // 表头数据
-        const { columns, registerColumn, updateColumn } = getTableColumns();
-        // 表格事件
-        const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<QhjAccountOutInApply>({});
-        // 表格操作按钮列表
-        const [firstBtn] = _getBtnList('platinum_withdrawal_review_tab', true).value;
-        // 表格列表数据
-        const { loading, tableList, queryTable } = queryTableList('out');
-        initData(() => {
-            // 获取列表数据
-            queryTable();
-            // 注册表头信息 过滤
-            registerColumn('table_pcweb_qhj_withdrawal_review', ['accountcode', 'updatetime']);
-        });
+    export default defineComponent({
+        name: 'platinum_withdrawal_review_tab',
+        components: {Filter, contextMenu, BtnList, ControlModal},
+        setup() {
+            // 表头数据
+            const {columns, registerColumn, updateColumn} = getTableColumns();
+            // 表格事件
+            const {expandedRowKeys, selectedRow, Rowclick, btnClick} = getTableEvent<QhjAccountOutInApply>({});
+            // 表格操作按钮列表
+            const [firstBtn] = _getBtnList('platinum_withdrawal_review_tab', true).value;
+            // 表格列表数据
+            const {loading, tableList, queryTable} = queryTableList('out');
+            initData(() => {
+                // 获取列表数据
+                queryTable();
+                // 注册表头信息 过滤
+                registerColumn('table_pcweb_qhj_withdrawal_review', ['accountcode', 'updatetime']);
+            });
 
-        return {
-            columns,
-            updateColumn,
-            expandedRowKeys,
-            selectedRow,
-            Rowclick,
-            firstBtn,
-            loading,
-            tableList,
-            queryTable,
-            btnClick,
-        };
-    },
-});
+            return {
+                columns,
+                updateColumn,
+                expandedRowKeys,
+                selectedRow,
+                Rowclick,
+                firstBtn,
+                loading,
+                tableList,
+                queryTable,
+                btnClick,
+            };
+        },
+    });
 </script>