feat(F006): APIKey申请结果+详情弹窗显示MCP地址
后端 apply/detail 返回 mcpEndpoint (从 -Dmcp.endpoint 注入), 前端申请弹窗加 MCP地址列, 详情弹窗加 MCP地址行, 用户复制 appId/appSecret/MCP地址 三值到平台助手配置
This commit is contained in:
parent
44fd765aa7
commit
cf00136340
@ -33,6 +33,7 @@ interface ApplyResult {
|
|||||||
customerCode: string
|
customerCode: string
|
||||||
appId: string
|
appId: string
|
||||||
appSecret: string
|
appSecret: string
|
||||||
|
mcpEndpoint: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = defineProps<{ modelValue: boolean }>()
|
const props = defineProps<{ modelValue: boolean }>()
|
||||||
@ -349,7 +350,7 @@ function notifyContact() {
|
|||||||
<!-- Step 3: 生成结果 -->
|
<!-- Step 3: 生成结果 -->
|
||||||
<div v-if="step === 3 && result">
|
<div v-if="step === 3 && result">
|
||||||
<el-alert type="warning" :closable="false" style="margin-bottom: 16px;">
|
<el-alert type="warning" :closable="false" style="margin-bottom: 16px;">
|
||||||
请立即复制 appId 和 appSecret!关弹窗后无法再次查看
|
请立即复制 MCP地址、appId 和 appSecret!关弹窗后 appSecret 无法再次查看
|
||||||
</el-alert>
|
</el-alert>
|
||||||
<p>已为 {{ result.length }} 个客户生成 APIKey:</p>
|
<p>已为 {{ result.length }} 个客户生成 APIKey:</p>
|
||||||
<el-table :data="result" border class="rr-apply-table rr-result-table" size="small">
|
<el-table :data="result" border class="rr-apply-table rr-result-table" size="small">
|
||||||
@ -359,6 +360,11 @@ function notifyContact() {
|
|||||||
<code class="rr-cell-code">{{ row.appId }}</code>
|
<code class="rr-cell-code">{{ row.appId }}</code>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="mcpEndpoint" label="MCP地址" min-width="220" show-overflow-tooltip>
|
||||||
|
<template #default="{ row }">
|
||||||
|
<code class="rr-cell-code">{{ row.mcpEndpoint || '—' }}</code>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="AppSecret" min-width="200">
|
<el-table-column label="AppSecret" min-width="200">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div class="rr-secret-cell">
|
<div class="rr-secret-cell">
|
||||||
|
|||||||
@ -362,6 +362,9 @@ onMounted(() => { load(); loadCustomers() })
|
|||||||
>
|
>
|
||||||
<el-descriptions v-if="currentRow" :column="1" border>
|
<el-descriptions v-if="currentRow" :column="1" border>
|
||||||
<el-descriptions-item label="AppID">{{ currentRow.appId }}</el-descriptions-item>
|
<el-descriptions-item label="AppID">{{ currentRow.appId }}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="MCP地址">
|
||||||
|
<code>{{ (currentRow as any).mcpEndpoint || '—' }}</code>
|
||||||
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="应用名称">{{ currentRow.appName }}</el-descriptions-item>
|
<el-descriptions-item label="应用名称">{{ currentRow.appName }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="客户名称">{{ currentRow.customerName || currentRow.customerCode || '—' }}</el-descriptions-item>
|
<el-descriptions-item label="客户名称">{{ currentRow.customerName || currentRow.customerCode || '—' }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="客户标识">{{ currentRow.customerCode }}</el-descriptions-item>
|
<el-descriptions-item label="客户标识">{{ currentRow.customerCode }}</el-descriptions-item>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user