feat(agent): 分销商详情改为在后台独立新页面选项卡中打开

这个提交包含在:
chen
2026-09-17 08:21:36 +08:00
父节点 23fe197bff
当前提交 64a9563779
共有 7 个文件被更改,包括 312 次插入 和 13 次删除

查看文件

@@ -214,6 +214,20 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
});
}
function onOpenAgentDetail(id) {
const url = `shopro/commission/agent/detail/id/${id}?id=${id}`;
const title = `分销商详情 #${id}`;
if (typeof Backend !== 'undefined' && Backend.api && typeof Backend.api.addtabs === 'function') {
Backend.api.addtabs(url, title);
} else if (top && top.Backend && top.Backend.api && typeof top.Backend.api.addtabs === 'function') {
top.Backend.api.addtabs(url, title);
} else if (Fast && Fast.api && typeof Fast.api.addtabs === 'function') {
Fast.api.addtabs(url, title);
} else {
window.location.href = Fast.api.fixurl(url);
}
}
const log = reactive({
tabActive: 'money',
data: [],
@@ -286,6 +300,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
onSave,
onChangeParentUser,
onRecharge,
onOpenAgentDetail,
log,
getLog,
pagination,