feat(agent): 分销商详情改为在后台独立新页面选项卡中打开
这个提交包含在:
@@ -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,
|
||||
|
||||
在新工单中引用
屏蔽一个用户