style(audit): simplify asset list interactions
This commit is contained in:
@@ -407,7 +407,7 @@ th,
|
||||
td {
|
||||
padding: 14px 12px;
|
||||
border-bottom: 1px solid #edf2f7;
|
||||
text-align: left;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
color: #334155;
|
||||
font-size: 12px;
|
||||
@@ -425,6 +425,11 @@ tbody tr {
|
||||
transition: background 180ms ease;
|
||||
}
|
||||
|
||||
th:first-child,
|
||||
td:first-child {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background: #f8fbff;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user