增加信息

This commit is contained in:
PC-202306242200\Administrator
2024-09-11 14:32:54 +08:00
parent 538f0d7731
commit fe72625bce
75 changed files with 1281 additions and 423 deletions

View File

@@ -1,9 +1,9 @@
import { variationPage } from '@/services/finance/index';
import { variationPage, recordExtract } from '@/services/finance/index';
import { exportData } from '@/utils/func';
import React, { useRef, useEffect,useState } from 'react';
import React, { useRef, useEffect, useState } from 'react';
import { useIntl, useAccess } from '@umijs/max';
import { message, Tag, Select } from 'antd';
import { message, Tag, Select, Button } from 'antd';
import { ActionType, PageContainer, ProTable } from '@ant-design/pro-components';
import moneyType from '@/assets/json/moneyType.json'
import { usersPage } from '@/services/user/user';
@@ -11,7 +11,7 @@ import { usersPage } from '@/services/user/user';
const LogTableList: React.FC = () => {
const actionRef = useRef<ActionType>();
const [searchParams, setSearchParams] = useState(null);
const [shopOption, setShopOption] = useState([]);
const searchShop = async (value) => {
@@ -143,9 +143,15 @@ const LogTableList: React.FC = () => {
labelWidth: 120,
defaultCollapsed: false,
}}
toolBarRender={() => [
<Button type="primary" onClick={async () => {
let _res = await recordExtract(searchParams)
exportData(_res, '积分变动记录')
}}></Button>,
]}
request={async (params, sorter, filter) => {
params.pointType = 1
setSearchParams(params)
let { data } = await variationPage(params)
return {
data: data?.records || [],

View File

@@ -1,9 +1,9 @@
import { variationPage } from '@/services/finance/index';
import { variationPage,recordExtract } from '@/services/finance/index';
import { exportData } from '@/utils/func';
import React, { useRef, useEffect, useState } from 'react';
import { useIntl, useAccess } from '@umijs/max';
import { message, Tag, Select } from 'antd';
import { message, Tag, Select,Button } from 'antd';
import { ActionType, PageContainer, ProTable, ProFormSelect } from '@ant-design/pro-components';
import moneyType from '@/assets/json/moneyType.json'
import { usersPage } from '@/services/user/user';
@@ -14,6 +14,10 @@ import { usersPage } from '@/services/user/user';
const LogTableList: React.FC = () => {
const actionRef = useRef<ActionType>();
const [shopOption, setShopOption] = useState([]);
const [searchParams, setSearchParams] = useState(null);
const searchShop = async (value) => {
const { success, data } = await usersPage({
@@ -144,8 +148,15 @@ const LogTableList: React.FC = () => {
labelWidth: 120,
defaultCollapsed: false,
}}
toolBarRender={() => [
<Button type="primary" onClick={async () => {
let _res = await recordExtract(searchParams)
exportData(_res, '积分记录')
}}></Button>,
]}
request={async (params, sorter, filter) => {
params.pointType = 2
setSearchParams(params)
let { data } = await variationPage(params)
return {
data: data?.records || [],

View File

@@ -1,6 +1,6 @@
import { withdrawPage } from '@/services/finance/index';
import { withdrawPage, withdrawExtract } from '@/services/finance/index';
import { usersPage } from '@/services/user/user';
import { exportData } from '@/utils/func';
import React, { useRef, useEffect, useState } from 'react';
import { useIntl, useAccess } from '@umijs/max';
@@ -13,8 +13,11 @@ import TempFormModal from './components/TempFormModal';
const LogTableList: React.FC = () => {
const actionRef = useRef<ActionType>();
const [tempFormModal, setTempFormModal] = useState(false);
const [shopOption, setShopOption] = useState([]);
const [searchParams, setSearchParams] = useState(null);
const searchShop = async (value) => {
const { success, data } = await usersPage({
@@ -225,14 +228,16 @@ const LogTableList: React.FC = () => {
defaultCollapsed: false,
}}
toolBarRender={() => [
<Button type="primary" onClick={() => {
window.location.href = exportLink(searchParams, '/admin/withdraw/export1');
<Button type="primary" onClick={async () => {
let _res = await withdrawExtract(searchParams)
exportData(_res, '提现记录')
}}></Button>,
<Button icon={<UploadOutlined />} onClick={() => {
<Button icon={<UploadOutlined />} onClick={async () => {
setTempFormModal(true)
}}></Button>
]}
request={async (params, sorter, filter) => {
setSearchParams(params)
let { data } = await withdrawPage(params)
return {
data: data?.records || [],