This commit is contained in:
PC-202306242200\Administrator
2024-09-20 14:15:05 +08:00
parent 0744635890
commit 271a499def
48 changed files with 94 additions and 64 deletions

View File

@@ -15,7 +15,7 @@ const LogTableList: React.FC = () => {
const [tempFormModal, setTempFormModal] = useState(false);
const [shopOption, setShopOption] = useState([]);
const [searchParams, setSearchParams] = useState(null);
const access = useAccess()
@@ -228,11 +228,11 @@ const LogTableList: React.FC = () => {
defaultCollapsed: false,
}}
toolBarRender={() => [
<Button type="primary" onClick={async () => {
<Button hidden={!access.hasPerms('/api/userspoints/points/extract/export')} type="primary" onClick={async () => {
let _res = await withdrawExtract(searchParams)
exportData(_res, '提现记录')
}}></Button>,
<Button icon={<UploadOutlined />} onClick={async () => {
<Button hidden={!access.hasPerms('/api/userspoints/importUsersPointsExtract')} icon={<UploadOutlined />} onClick={async () => {
setTempFormModal(true)
}}></Button>
]}