feat(weibo): 工作台增加兑换记录查询入口
This commit is contained in:
@@ -945,6 +945,18 @@ export default function WeiboAccountsPage({
|
||||
}
|
||||
};
|
||||
|
||||
const openWorkbenchExchangeRecords = (account: WeiboAccountItem) => {
|
||||
if (!account.is_enabled) {
|
||||
message.warning('账号已停用,请先启用');
|
||||
return;
|
||||
}
|
||||
setFeatureAccount(account);
|
||||
setFeatureTab('exchange');
|
||||
setExchangeResult(null);
|
||||
setFeatureOpen(true);
|
||||
void loadExchangeRecords(account);
|
||||
};
|
||||
|
||||
const loadPointHistory = async (account: WeiboAccountItem) => {
|
||||
setPointLoading(true);
|
||||
try {
|
||||
@@ -2303,6 +2315,16 @@ export default function WeiboAccountsPage({
|
||||
直接兑换
|
||||
</Button>
|
||||
</Popconfirm>
|
||||
<Button
|
||||
block
|
||||
icon={<SearchOutlined />}
|
||||
style={{ marginTop: 8 }}
|
||||
loading={exchangeLoading}
|
||||
disabled={!featureAccount.is_enabled}
|
||||
onClick={() => openWorkbenchExchangeRecords(featureAccount)}
|
||||
>
|
||||
查询兑换记录
|
||||
</Button>
|
||||
</div>
|
||||
{canRecharge && (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user