feat: 同步权限管理、企业成员排行与消费计费明细

- 接入平台与企业角色权限,按权限展示菜单、页面及操作。
- 企业成员排行按需加载,翻页沿用同一榜单快照,保留连续名次与前三名样式。
- 更新消费日志的费用明细、超管指标和官方价格汇率设置,补齐翻译与回归测试。
This commit is contained in:
qiubaishen
2026-11-25 21:08:24 +08:00
parent ed693a450a
commit 870b51d054
134 changed files with 20354 additions and 4133 deletions
+11 -8
View File
@@ -295,7 +295,6 @@ export const useChannelsData = () => {
const { searchKeyword, searchGroup, searchModel } = getFormValues();
if (searchKeyword !== '' || searchGroup !== '' || searchModel !== '') {
setLoading(true);
await searchChannels(
enableTagMode,
typeKey,
@@ -305,20 +304,24 @@ export const useChannelsData = () => {
idSort,
signal,
);
setLoading(false);
return;
}
const reqId = ++requestCounter.current;
setSearching(false);
setLoading(true);
const typeParam = typeKey !== 'all' ? `&type=${typeKey}` : '';
const statusParam = statusF !== 'all' ? `&status=${statusF}` : '';
try {
const res = await API.get(
`/api/channel/?p=${page}&page_size=${pageSize}&id_sort=${idSort}&tag_mode=${enableTagMode}${typeParam}${statusParam}`,
{ signal },
);
const res = await API.get('/api/channel/', {
signal,
params: {
p: page,
page_size: pageSize,
id_sort: idSort,
tag_mode: enableTagMode,
type: typeKey === 'all' ? undefined : typeKey,
status: statusF === 'all' ? undefined : statusF,
},
});
if (
res === undefined ||