chore(frontend): clarify namespace auto binding prompts
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<div class="page-head">
|
<div class="page-head">
|
||||||
<div>
|
<div>
|
||||||
<h2>业务线管理</h2>
|
<h2>业务线管理</h2>
|
||||||
<p>平台管理员维护全局业务线</p>
|
<p>新增时自动查找或创建同名 namespace,并完成业务线绑定</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ async function createBusinessLine() {
|
|||||||
newName.value = ''
|
newName.value = ''
|
||||||
await loadAllBusinessLines()
|
await loadAllBusinessLines()
|
||||||
await businessLineStore.loadMine()
|
await businessLineStore.loadMine()
|
||||||
ElMessage.success('已新增业务线')
|
ElMessage.success('已新增业务线,并完成同名 namespace 绑定')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
ElMessage.error(error instanceof Error ? error.message : '新增业务线失败')
|
ElMessage.error(error instanceof Error ? error.message : '新增业务线失败')
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ const operatorStateText = computed(() => {
|
|||||||
})
|
})
|
||||||
const operatorStateDetail = computed(() => {
|
const operatorStateDetail = computed(() => {
|
||||||
if (!canManageBusinessLine.value) return '需要平台管理员或当前业务线管理员'
|
if (!canManageBusinessLine.value) return '需要平台管理员或当前业务线管理员'
|
||||||
if (!wayneNamespaces.value.length) return '先在业务线分配中绑定 Wayne namespace'
|
if (!wayneNamespaces.value.length) return '新增业务线会自动绑定同名 namespace,也可在业务线分配中手动绑定'
|
||||||
if (!hasWayneRoleBindingPermission.value) return '没有 Wayne 角色绑定权限'
|
if (!hasWayneRoleBindingPermission.value) return '没有 Wayne 角色绑定权限'
|
||||||
return `${wayneNamespaces.value.filter((item) => item.can_bind).length} 个 namespace 可授权`
|
return `${wayneNamespaces.value.filter((item) => item.can_bind).length} 个 namespace 可授权`
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user