address pr

This commit is contained in:
Qiuxia Fan 2022-05-23 12:21:21 +08:00
parent 34110d8bdd
commit cf6c912f4b
3 changed files with 13 additions and 11 deletions

View File

@ -97,7 +97,7 @@ export const ebpfStore = defineStore({
if (res.data.errors) { if (res.data.errors) {
return res.data; return res.data;
} }
this.taskList = res.data.data.queryEBPFTasks.reverse() || []; this.taskList = res.data.data.queryEBPFTasks || [];
if (!this.taskList.length) { if (!this.taskList.length) {
return res.data; return res.data;
} }

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. --> limitations under the License. -->
<template> <template>
<div class="filters"> <div class="filters">
<div class="mb-10"> <div class="mb-10 flex-h">
<Selector <Selector
:value="selectedLabels" :value="selectedLabels"
:options="labels" :options="labels"
@ -24,6 +24,11 @@ limitations under the License. -->
class="inputs mr-10" class="inputs mr-10"
:multiple="true" :multiple="true"
/> />
<div class="mr-5 duration" v-if="duration.length">
<span>{{ duration[0] }}</span>
<span> ~ </span>
<span>{{ duration[1] }}</span>
</div>
</div> </div>
<div class="flex-h"> <div class="flex-h">
<Selector <Selector
@ -35,11 +40,6 @@ limitations under the License. -->
@change="changeAggregateType" @change="changeAggregateType"
class="selector mr-10" class="selector mr-10"
/> />
<div class="mr-5 duration" v-if="duration.length">
<span>{{ duration[0] }}</span>
<span> ~ </span>
<span>{{ duration[1] }}</span>
</div>
<el-popover placement="bottom" :width="680" trigger="click"> <el-popover placement="bottom" :width="680" trigger="click">
<template #reference> <template #reference>
<el-button type="primary" size="small"> <el-button type="primary" size="small">
@ -277,6 +277,6 @@ watch(
} }
.duration { .duration {
line-height: 24px; line-height: 30px;
} }
</style> </style>

View File

@ -36,9 +36,11 @@ limitations under the License. -->
<div class="ell"> <div class="ell">
<span> <span>
{{ {{
i.processLabels.length i.targetType +
? i.targetType + ": " + i.processLabels.join(" ") ": " +
: `All Processes` (i.processLabels.length
? i.processLabels.join(" ")
: `All Processes`)
}} }}
</span> </span>
<a class="profile-btn r" @click="viewDetail = true"> <a class="profile-btn r" @click="viewDetail = true">