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

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

查看文件

@@ -1,6 +1,31 @@
{include file="/shopro/common/script" /}
<style>
.agent-detail {
background: #fff;
height: 100vh;
overflow: hidden;
}
.agent-detail .panel-block {
height: 100%;
}
.agent-detail .detail-header-bar {
padding: 12px 16px;
margin-bottom: 16px;
background: #fff;
border-radius: 6px;
border: 1px solid var(--sa-border);
}
.agent-detail .detail-title-text {
font-size: 15px;
font-weight: 600;
margin-left: 12px;
color: var(--sa-title);
}
.agent-detail .agent-detail-scrollbar>.el-scrollbar__wrap {
overflow-x: hidden;
}
@@ -10,7 +35,8 @@
}
.agent-detail .agent-content {
height: 450px;
min-height: 450px;
height: auto;
line-height: 1;
padding: 20px;
background: var(--sa-table-header-bg);
@@ -136,6 +162,23 @@
<el-container class="panel-block">
<el-main>
<el-scrollbar class="agent-detail-scrollbar" height="100%">
<div class="detail-header-bar sa-flex sa-row-between">
<div class="sa-flex">
<el-button icon="Back" size="small" @click="onBack">返回</el-button>
<span class="detail-title-text">
分销商详情
<template v-if="state.data.user">
- {{ state.data.user.nickname || state.data.user_id }}
</template>
<template v-else-if="state.id">
#{{ state.id }}
</template>
</span>
</div>
<div class="sa-flex">
<el-button icon="RefreshRight" size="small" circle @click="getDetail" title="刷新"></el-button>
</div>
</div>
<el-row :gutter="20">
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
<div class="user-content agent-content">

查看文件

@@ -28,7 +28,7 @@
</el-tabs>
<div class="sa-title sa-flex sa-row-between">
<div class="sa-title-left">
<div class="left-name">分销商</div>
<div class="left-name">成员档案</div>
<sa-filter-condition v-model="state.filter" @filter-delete="onChangeFilter">
</sa-filter-condition>
</div>
@@ -119,7 +119,7 @@
{{ scope.row.status_text }}
</span>
{if $auth->check('shopro/commission/agent/detail')}
<el-button type="primary" link @click="onDetail(scope.row.user_id)">查看</el-button>
<el-button type="primary" link @click="onDetail(scope.row.user_id, scope.row)">查看</el-button>
{/if}
{if $auth->check('shopro/commission/agent/edit')}
<el-button type="primary" link @click="onOpenIdentity(scope.row)">开通身份</el-button>
@@ -176,7 +176,7 @@
</el-button>
{/if}
{if $auth->check('shopro/commission/agent/detail')}
<el-button type="primary" link @click="onDetail(scope.row.user_id)">查看</el-button>
<el-button type="primary" link @click="onDetail(scope.row.user_id, scope.row)">查看</el-button>
{/if}
</div>
</template>
@@ -231,7 +231,7 @@
{/if}
</template>
{if $auth->check('shopro/commission/agent/detail')}
<el-button type="primary" link @click="onDetail(scope.row.user_id)">查看</el-button>
<el-button type="primary" link @click="onDetail(scope.row.user_id, scope.row)">查看</el-button>
{/if}
</div>
</template>

查看文件

@@ -201,7 +201,7 @@
<div class="right sa-flex">
{{ state.detail.voucher_available || '0.00' }}
<el-button v-if="state.detail.has_agent" class="ml-2" type="primary" link
@click="Fast.api.open('shopro/commission/agent/detail/id/'+state.detail.id+'?id='+state.detail.id, '分销商详情')">
@click="onOpenAgentDetail(state.detail.id)">
分销商详情
</el-button>
</div>