feat: 同步权限管理、企业成员排行与消费计费明细
- 接入平台与企业角色权限,按权限展示菜单、页面及操作。 - 企业成员排行按需加载,翻页沿用同一榜单快照,保留连续名次与前三名样式。 - 更新消费日志的费用明细、超管指标和官方价格汇率设置,补齐翻译与回归测试。
This commit is contained in:
@@ -207,13 +207,17 @@ export const useMjLogsData = () => {
|
||||
setLoading(true);
|
||||
const { channel_id, mj_id, start_timestamp, end_timestamp } =
|
||||
getFormValues();
|
||||
let localStartTimestamp = Date.parse(start_timestamp);
|
||||
let localEndTimestamp = Date.parse(end_timestamp);
|
||||
const url = isAdminUser
|
||||
? `/api/mj/?p=${page}&page_size=${size}&channel_id=${channel_id}&mj_id=${mj_id}&start_timestamp=${localStartTimestamp}&end_timestamp=${localEndTimestamp}`
|
||||
: `/api/mj/self/?p=${page}&page_size=${size}&mj_id=${mj_id}&start_timestamp=${localStartTimestamp}&end_timestamp=${localEndTimestamp}`;
|
||||
const url = isAdminUser ? '/api/mj/' : '/api/mj/self/';
|
||||
const params = {
|
||||
p: page,
|
||||
page_size: size,
|
||||
mj_id,
|
||||
start_timestamp: Date.parse(start_timestamp),
|
||||
end_timestamp: Date.parse(end_timestamp),
|
||||
};
|
||||
if (isAdminUser) params.channel_id = channel_id;
|
||||
try {
|
||||
const res = await API.get(url, { signal });
|
||||
const res = await API.get(url, { params, signal });
|
||||
if (requestId !== listRequestIdRef.current || signal?.aborted) return;
|
||||
const { success, message, data } = res.data;
|
||||
if (success) {
|
||||
|
||||
Reference in New Issue
Block a user