refactor: 调整开放模块

This commit is contained in:
2026-08-19 15:40:29 +08:00
parent 650774ba22
commit 5de538c8f4
27 changed files with 219 additions and 199 deletions
@@ -162,7 +162,7 @@ defineExpose({
<Alert
v-if="permissionOptions.length === 0"
class="mb-4"
message="当前公司尚未分配 open:scope:* 开放权限,请先在「公司权限分配」中配置。"
message="当前公司尚未分配开放接口权限(open:* 叶子 api),请先在「公司权限分配」中配置。"
show-icon
type="info"
/>
@@ -26,10 +26,9 @@ const loading = ref(false);
const createModalRef = ref<InstanceType<typeof CreateApiKeyModal>>();
const permissionLabelMap: Record<string, string> = {
'open:scope:order:import': '订单导入',
'open:scope:order:read': '订单字段',
'open:scope:import_task:read': '导入任务',
'open:scope:meta:read': '元数据',
'open:product:adfee': '商品广告费',
'open:shop:pdd:read': '拼多多店铺',
'open:extension:feature:read': '扩展功能',
};
function formatExpireAt(cellValue?: null | string) {