style(audit): simplify asset list interactions

This commit is contained in:
caoxiaozhu
2026-05-11 06:33:46 +00:00
parent 83286712e5
commit 0b63be2d39
3 changed files with 12 additions and 10 deletions

View File

@@ -37,6 +37,7 @@ const TYPE_META = {
createButtonLabel: '技能已接入',
hintText: '技能页签已接到真实资产 API可查看输入、输出、依赖和场景信息。',
searchPlaceholder: '搜索技能名称、编码或负责人',
showMetricColumn: false,
tableColumns: {
name: '技能名称',
category: '业务域',
@@ -44,7 +45,7 @@ const TYPE_META = {
scope: '适用场景',
runtime: '输入摘要',
version: '当前版本',
metric: '输出摘要'
metric: ''
}
},
mcp: {
@@ -886,6 +887,7 @@ export default {
const createButtonLabel = computed(() => activeMeta.value.createButtonLabel)
const hintText = computed(() => activeMeta.value.hintText)
const tableColumns = computed(() => activeMeta.value.tableColumns)
const showMetricColumn = computed(() => activeMeta.value.showMetricColumn !== false)
const selectedSkillIsRule = computed(() => selectedSkill.value?.type === 'rules')
const canManageSelected = computed(() => isAdmin.value && Boolean(selectedSkill.value))
const canEditMarkdown = computed(() => canManageSelected.value && selectedSkillIsRule.value)
@@ -1253,6 +1255,7 @@ export default {
hintText,
searchPlaceholder,
tableColumns,
showMetricColumn,
visibleSkills,
loading,
errorMessage,