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

@@ -566,9 +566,8 @@
<th>{{ tableColumns.runtime }}</th>
<th>{{ tableColumns.version }}</th>
<th>状态</th>
<th>{{ tableColumns.metric }}</th>
<th v-if="showMetricColumn">{{ tableColumns.metric }}</th>
<th>最近更新</th>
<th>操作</th>
</tr>
</thead>
<tbody>
@@ -593,13 +592,8 @@
<td>{{ skill.model }}</td>
<td>{{ skill.version }}</td>
<td><span class="status-pill" :class="skill.statusTone">{{ skill.status }}</span></td>
<td>{{ skill.hitRate }}</td>
<td v-if="showMetricColumn">{{ skill.hitRate }}</td>
<td>{{ skill.updatedAt }}</td>
<td>
<button class="row-action" type="button" @click.stop="openAssetDetail(skill)">
查看详情
</button>
</td>
</tr>
</tbody>
</table>

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,