fix:agent细节调整

This commit is contained in:
zhangyu
2022-02-17 18:38:47 +08:00
parent 0f2a774957
commit 3fbe06e638
3 changed files with 15 additions and 15 deletions

View File

@@ -121,7 +121,7 @@ export default {
label: this.$t('project.module.module'),
prop: 'moduleNum',
show: true,
width: 100,
width: 120,
sortable: 'custom'
}, {
label: this.$t('project.endpoint.endpoint'),

View File

@@ -38,24 +38,24 @@
<template v-else-if="item.prop === 'lastScrape'">{{scope.row.lastScrape}}</template>
<template v-else-if="item.prop === 'labels'" class="labels">
<span v-for="(item, i) in labelsSort(scope.row.labels)" :key="i">
<span
@mouseenter="labelHover(scope.row, item.label, true, $event)"
@mouseleave="labelHover(scope.row, item.label, false)">
<span>
<!-- @mouseenter="labelHover(scope.row, item.label, true, $event)"-->
<!-- @mouseleave="labelHover(scope.row, item.label, false)"-->
<nz-alert-tag
v-if="item.label !== 'alertname' && item.label !== 'severity'" :key="item.label" :cursor-point="tagType(item.label) !== 'info'"
:label="item.label"
:type="tagType(item.label)"
:type="'info'"
style="margin: 5px 0 5px 5px;"
>
{{item.value}}
</nz-alert-tag>
</span>
<alertLabel
v-if="(item.label === 'asset' ||item.label === 'module' || item.label === 'project' || item.label === 'dc' ||item.label === 'endpoint' ||item.label === 'cpu' ||item.label === 'user' ||item.label === 'parent_asset') && scope.row[item.label] && scope.row[item.label].loading"
:id="scope.row[item.label].id"
:that="scope.row[item.label]"
:type="item.label"
></alertLabel>
<!-- <alertLabel-->
<!-- v-if="(item.label === 'asset' ||item.label === 'module' || item.label === 'project' || item.label === 'dc' ||item.label === 'endpoint' ||item.label === 'cpu' ||item.label === 'user' ||item.label === 'parent_asset') && scope.row[item.label] && scope.row[item.label].loading"-->
<!-- :id="scope.row[item.label].id"-->
<!-- :that="scope.row[item.label]"-->
<!-- :type="item.label"-->
<!-- ></alertLabel>-->
</span>
</template>
<template v-else-if="item.prop === 'health'">