Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
134 lines
3.4 KiB
TypeScript
134 lines
3.4 KiB
TypeScript
import type { VxeGridProps } from '#/adapter/vxe-table';
|
|
|
|
import {getSettlementItemsList, getSettlementList} from '#/views/finance/withdrawal/api/settlement';
|
|
|
|
interface RowType {
|
|
id: string;
|
|
nick_name: string;
|
|
email: string;
|
|
avatar: string;
|
|
roles: { name: string }[];
|
|
open_id: string;
|
|
code: string;
|
|
platform_id: string;
|
|
phone: string;
|
|
desc: string;
|
|
created_at: string;
|
|
}
|
|
|
|
export const gridOptions2: VxeGridProps<RowType> = {
|
|
checkboxConfig: {
|
|
highlight: true,
|
|
labelField: '',
|
|
},
|
|
columnConfig: {
|
|
useKey: true,
|
|
},
|
|
rowConfig: {
|
|
useKey: true,
|
|
},
|
|
columns: [
|
|
{ type: 'checkbox', width: 60 },
|
|
{ field: 'id', align: 'left', title: 'ID', width: 100 },
|
|
{ field: 'order.order_no', title: '订单号' },
|
|
{ field: 'user_id', title: '名称', slots: { default: 'user_id' } },
|
|
{ field: 'money', title: '分账金额' },
|
|
{ field: 'fee_type_txt', title: '费用类型' },
|
|
{ field: 'status_txt', title: '结算状态' },
|
|
{ field: 'created_at', title: '创建时间' },
|
|
{ type: 'html', title: '操作', slots: { default: 'action' } },
|
|
],
|
|
keepSource: true,
|
|
pagerConfig: {},
|
|
proxyConfig: {
|
|
ajax: {
|
|
// 请求后端接口方法
|
|
query: async ({ page }, formValues) => {
|
|
return await getSettlementItemsList({
|
|
page: page.currentPage,
|
|
pageSize: page.pageSize,
|
|
...formValues,
|
|
});
|
|
},
|
|
},
|
|
},
|
|
// height: 'auto',
|
|
border: false,
|
|
toolbarConfig: {
|
|
// 是否显示搜索表单控制按钮
|
|
// @ts-ignore 正式环境时有完整的类型声明
|
|
search: true,
|
|
refresh: true, // 刷新
|
|
print: false, // 打印
|
|
export: false, // 导出
|
|
// custom: true, // 自定义列
|
|
zoom: true, // 最大化最小化
|
|
slots: {
|
|
buttons: 'toolbar-buttons',
|
|
},
|
|
custom: {
|
|
// 自定义列-图标
|
|
icon: 'vxe-icon-menu',
|
|
},
|
|
},
|
|
showOverflow: false,
|
|
};
|
|
|
|
export const gridOptions3: VxeGridProps<RowType> = {
|
|
checkboxConfig: {
|
|
highlight: true,
|
|
labelField: '',
|
|
},
|
|
columnConfig: {
|
|
useKey: true,
|
|
},
|
|
rowConfig: {
|
|
useKey: true,
|
|
},
|
|
columns: [
|
|
// { type: 'checkbox', width: 60 },
|
|
// { field: 'id', align: 'left', title: 'ID', width: 100 },
|
|
{ field: 'order_no', title: '订单号' },
|
|
{ field: 'user_id', title: '名称', slots: { default: 'user_id' } },
|
|
{ field: 'money', title: '分账金额' },
|
|
// { field: 'fee_type_txt', title: '费用类型' },
|
|
// { field: 'status_txt', title: '结算状态' },
|
|
{ field: 'created_at', title: '创建时间' },
|
|
{ type: 'html', title: '操作', slots: { default: 'action' } },
|
|
],
|
|
keepSource: true,
|
|
pagerConfig: {},
|
|
proxyConfig: {
|
|
ajax: {
|
|
// 请求后端接口方法
|
|
query: async ({ page }, formValues) => {
|
|
return await getSettlementList({
|
|
page: page.currentPage,
|
|
pageSize: page.pageSize,
|
|
...formValues,
|
|
});
|
|
},
|
|
},
|
|
},
|
|
// height: 'auto',
|
|
border: false,
|
|
toolbarConfig: {
|
|
// 是否显示搜索表单控制按钮
|
|
// @ts-ignore 正式环境时有完整的类型声明
|
|
search: true,
|
|
refresh: true, // 刷新
|
|
print: false, // 打印
|
|
export: false, // 导出
|
|
// custom: true, // 自定义列
|
|
zoom: true, // 最大化最小化
|
|
slots: {
|
|
buttons: 'toolbar-buttons',
|
|
},
|
|
custom: {
|
|
// 自定义列-图标
|
|
icon: 'vxe-icon-menu',
|
|
},
|
|
},
|
|
showOverflow: false,
|
|
};
|